Welcome to Mario's Ideas
2:02
6 ай бұрын
Пікірлер
@miguelangelpereyrabogarin2174
@miguelangelpereyrabogarin2174 5 сағат бұрын
Hi... could you check what happened to the page where the Arduino code for your alarm clock is, because I can't access it? Or could you send me the project by email, I'd like to be able to make the alarm clock. Thanks.
@markusbFPV
@markusbFPV 9 сағат бұрын
I think you have to check in code if the shaft was turned a full click in the same direction. Example: First CLK goes low (interrupt trig) and DT is still high. When DT goes low you know the specific direction you turn, but first you wait for CLK to go high again and then check for DT to go high. When that happens you change your counter. And vice versa for the other direction. I got this principle to work with help from chatGPT but the code was much more advanced. After implementing this it worked great but it was only an example when I learned about rotary encoders so the extra code did not matter to me.
@GerryWhatever
@GerryWhatever 5 күн бұрын
Brother, you have no idea how much you have helped me, i've been for some days already trying to figure this out and you were able to explain it very clearly, thanks for your video.
@marios_ideas
@marios_ideas 5 күн бұрын
Glad i was of help. Consider supporting my channel:)
@catmeow2633
@catmeow2633 6 күн бұрын
Thank you so much, I've been puzzed a lot seeing Arduino docs, not knowing what on earth pull-up/down resistor and built-in pull-up resistor are, now I know it clearly.
@jonathansebastianbuitragod4783
@jonathansebastianbuitragod4783 8 күн бұрын
Hola me ayudas con unas dudas por favor
@marios_ideas
@marios_ideas 7 күн бұрын
Ask
@Isenka235
@Isenka235 8 күн бұрын
Thanks a lot for this amazing explanation and hands on experiments. Interesting that video has 5k+ views and zero answers to the question 😃 If I understand this correctly, the photo resistor is connected to ground in the “prebuilt sensor” , where in the manual implementation we had photo resistor connected on the 5v side. Therefore the readings go up when the light turns off and go up with more light. So it works in reverse and we had to change the logic from “< threshold” to “> threshold”
@am1manTravel
@am1manTravel 9 күн бұрын
Mario, old friend, I made this about a year ago and just fired it up again the other day. Still keeping good time! So I decided to tweak the sketch so it would show in Fahrenheit. No problem. Then I need to slightly move some of the digits, etc. Thought I'd better update my Libraries too. Did that and then troubles! Getting error msgs when I tried to validate the sketch. Had to change "clock" to "clock1" and then got other errors about RTC, etc. So now the OLED looks ok but every time I plug it in it just goes back to the same time and date every time. Tried many different tweaks in the sketch but no go. I think something happened when I updated my Libraries. Checked the battery in the DS3231 and it is fine. Perhaps , if you would be so kind, you could go back and update it. Would be most appreciated. By the way, I don't remember when I got the "OLED clock using DS3231 RTC module with the memory problem fix" mentioned in an earlier comment a year ago.
@marios_ideas
@marios_ideas 9 күн бұрын
Paste the setup function from the code you are trying to load
@am1manTravel
@am1manTravel 8 күн бұрын
@@marios_ideas Is this what you want? Also getting error: 'RTCDateTime' does not name a type; did you mean 'DateTime'? void setup() { Serial.begin(9600); Clock1.begin(); // Set sketch compiling time Clock1.setDateTime(__DATE__, __TIME__); // SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3D for 128x64 Serial.println(F("SSD1306 allocation failed")); for (;;); // Don't proceed, loop forever } display.display(); // Display initial Adafruit logo delay(2000); // Clear the buffer display.clearDisplay(); display.display(); }
@marios_ideas
@marios_ideas 8 күн бұрын
@@am1manTravel You said you loaded the code after you upgraded library and the clock does not work. But now you say you get compile error so you couldn't load the code with error in code. Also the library I was using in this code is an old library which is not further developed so where did you get the update. There are other libraries written by other people with the same name so maybe you installed different library
@am1manTravel
@am1manTravel 8 күн бұрын
@@marios_ideas Well, I think I fixed the multiple DS3231 libraries and got the one you recommended, the latest version, in there. Still the same problem with the time.
@am1manTravel
@am1manTravel 8 күн бұрын
Sorry for all the msgs. Think I fixed it with ChatGPT help. Uncomment the clock1.setDateTime(__DATE__, __TIME__); line. Upload the sketch to set the time to the current compilation time. Comment out the clock1.setDateTime(__DATE__, __TIME__); line again. Re-upload the sketch so it doesn't reset the time every time it powers on.
@pramodk1390
@pramodk1390 12 күн бұрын
Full diagram miloge
@marios_ideas
@marios_ideas 9 күн бұрын
Miloge?
@davadoff
@davadoff 13 күн бұрын
2:00 master reset resets the shift register to zeros & does not affect the output. So what you said was wrong.
@davadoff
@davadoff 13 күн бұрын
To “reset all outputs as low” you need to latch it after a master reset. Or use output enable to turn off the outputs (high-z).
@marios_ideas
@marios_ideas 13 күн бұрын
You are right.I should have said it resets the register not the output .
@mohamednazeel
@mohamednazeel 14 күн бұрын
NO😊
@fuzion5467
@fuzion5467 15 күн бұрын
Thank you Mario. But our Matrix is in another castle!
@pinoypooltv
@pinoypooltv 15 күн бұрын
Thank you for this great vid! Can I ask how do you control the button's LED light programmatically using Arduino? For example, when a user has inserted enough coins in a coin slot (also connected to Arduino), the LED light turns on, signifying that it can already be pressed. Looking forward to your response, thank you so much!
@MarcoMaldonado-r1p
@MarcoMaldonado-r1p 15 күн бұрын
Love your videos
@TomášJežík-i5l
@TomášJežík-i5l 17 күн бұрын
I have got ARDUINO MEGA 2560
@dimebag2486
@dimebag2486 19 күн бұрын
very good job
@ilredelletenebre958
@ilredelletenebre958 20 күн бұрын
Alimento a muro Arduino uno R4 wifi con SD montata come hai descritto ma mi dà errore di scrittura. Alimentato da PC via USB funziona tutto. Hai idea del perché? Stesso cavo, codice, posto di Arduino sulla scrivania, tutto uguale insomma. Cambio solo l'alimentazione. Fa la stessa cosa con powerbank o alimentato col connettore barrel (nero).
@marios_ideas
@marios_ideas 20 күн бұрын
What exact error do you get
@SamanMadhushanka-yl2uw
@SamanMadhushanka-yl2uw 23 күн бұрын
❤❤❤❤usefull😮😮❤
@werneroostendorp1154
@werneroostendorp1154 25 күн бұрын
Hi Mario, many thanks for this tutorial. What is the best way to control a 12 volt PWM fan do you think? I already searched for so many tutorials but i am not sure how to build a circuit and control the fan via a gpio pin
@easy_3d
@easy_3d 27 күн бұрын
Add two hall sensor in opposite directions beside each other and read both the values. So magnet in any direction would work
@HpsMexico-STmx
@HpsMexico-STmx Ай бұрын
Hi , great video !! I see in the title you say are using ssd1309 oled but in the xode you are using ssd1306 library , are compatible or was just a mistake ? I need to do work a ssd1309 display 2.42 inch so im.looking some references Thank you so much
@marios_ideas
@marios_ideas Ай бұрын
It is ssd1306. Thank you for spotting this. Funny nobody spotted this mistake before
@klausziegler60
@klausziegler60 Ай бұрын
Excellent review
@DavidHernandez-lp1oc
@DavidHernandez-lp1oc Ай бұрын
Was it just me? but PIN D8 was never shown at the connection scheme??? What is connected there? D5 - SCK D2 - SDA D6 - RES D1 - DC Where is D8??? (3:12)
@marios_ideas
@marios_ideas Ай бұрын
No it is not just you:) There is a whole section of this video talking about this module not having chip select pin. Whoever wrote the library did not forsee that somebody would jjust choose to to have it. So I need to declare a pin to be able to declare the display. If I had a different module then I would be connecting D8 to CS. In this case regardless of what D8 pin is set to the CS is allways acrive as this is the way it is connected internally in the module. And because of that this module cannot be used together with other SPI devices as you cannot switch active device as this display is always active
@DavidHernandez-lp1oc
@DavidHernandez-lp1oc Ай бұрын
@@marios_ideas you say connect D2 to SDA and then define "TFT_RST D2".... Sorry but I'm very lost, could you be so kind to illustrate me on how to connect and how to define the pins.... I still can't make My ESP8266 to work with ST7789 displaying a T. Sensor. My Screen is just Black Conections ST7789 - ESP8266 SCL - D5 SDA - D2 RES - D6 DC - D1 Can you give me hand??
@marios_ideas
@marios_ideas Ай бұрын
​@@DavidHernandez-lp1ocWhatever you see in the diagram is the proper connectivity SCL - D5 SDA - D7 RES - D2 DC - D1 Not sure How I messed up the despriptions. I think I used different ports. D6 which is MISO Master in Slave OUT does not have to be used as display (slave) does not send anything back to microcontroller (master)
@samithetechsavvy6485
@samithetechsavvy6485 Ай бұрын
thank you very much
@KW-ei3pi
@KW-ei3pi Ай бұрын
Good information Mario. Thanks! Also, the light blue background in coding and info segments is welcome and appreciated. Most YT creators don't understand how blinding a white background can be. Thank you! Regards.
@marios_ideas
@marios_ideas Ай бұрын
I gradually found my style. if you check my first videos they were all over the polace in terms of style
@steverileyretired
@steverileyretired Ай бұрын
Very Good, thank you for explaing it, is it easy to take some parts of another library and make your own, I want to use some Audio parts but not all of it as it is very big library
@samwillard5688
@samwillard5688 Ай бұрын
I am all in for the ancient stuff; I want to restore a radio from 1920's
@VolumeSkies
@VolumeSkies Ай бұрын
Look at my project! That i bought
@rudigerritzberger9161
@rudigerritzberger9161 Ай бұрын
Hallo, vielen Dank für die tolle Erklärung!!! noch eine frage bitte, kann man den Code 1:1 auch bei Arduino Uno verwenden? vielen Dank
@marios_ideas
@marios_ideas Ай бұрын
Arduino Uno and nano are the same . The code would work 1:1 all you need is to compile it on Arduino Uno in Arduino IDE. Consider supporting my channal:)
@tobalkamal5723
@tobalkamal5723 Ай бұрын
Thanks, very clear!
@MrBobWareham
@MrBobWareham Ай бұрын
Thank you, that was very interesting experiment
@elektron2kim666
@elektron2kim666 Ай бұрын
I made some apps where I set the RTC with GPS. You still have UTC time or the time in China to deal with, so have 2 buttons for such on top (which you could use otherwise, but the date is also something.) The RTC modules can move, so you have many options.
@elektron2kim666
@elektron2kim666 Ай бұрын
My first one didn't light up and I'm stuck. Now I have a test board for those and a good app. The micro controller is like a TTL interface with GPS (taking time data out) and I could use it for the u-blox software. My Cardputer is more fancy with this and I can type through it and get a clock on that display. My little oscilloscope show that the signals are fine, so I will buy a few more TM1637 modules to see what happens.
@TruthWielders
@TruthWielders Ай бұрын
In the code, why don't you go "secondsON_OFF = 1-secondsON_OFF ;" Instead of "secondsON_OFF ? secondsON_OFF = 0 : secondsON_OFF = 1;" The later seems less efficient (a bit) ? The ?: construct is cute but not always the best option ! Or am I missing something ? Thanks a lot ! I've put the blinking colon at the right of the hour instead of left of seconds ! Can I stop the little yellow led blinking on the board each time the display changes ?
@johan78jlg
@johan78jlg Ай бұрын
This must be the best video on clock to oled I have seen to date, thanks!!!!
@queenidog1
@queenidog1 Ай бұрын
very good video. Well explained, good visuals.
@agahgokdag1845
@agahgokdag1845 Ай бұрын
You explained the lesson like a "white swan" dancing on the lake,thank you Sir...
@PawanKumar-ct9qe
@PawanKumar-ct9qe Ай бұрын
Great video Can you let me know where i can bough thei coin acceptor
@marios_ideas
@marios_ideas Ай бұрын
On Aliexpress. Sample link pl.aliexpress.com/item/1005006080235293.html
@Nouryas
@Nouryas Ай бұрын
great job , but it could be more useful if you test lora for looooong distance between tx and rx ( the distance between them in the video is a couple of cntimeters.
@marios_ideas
@marios_ideas Ай бұрын
I will make this video eventually. I wanted to do a custom PCB with the display to show received and lost packet But I have never seem to find time to do it
@markanthonynilo9198
@markanthonynilo9198 Ай бұрын
Hello Sir Mario I am always Thankful for your video. I really don't know about coding but I hope you may answer my question. Can someone who is proficient in coding record the Counted Value of a 4 Digit 7 segment LED driver that is driven by a MAX7219. Because as you said it can only store 4 bytes at a time, will a SD card on a SD card reader make an extended version of EEPROM without limit to its read and write count? I have a lot of questions,I wish I can understand as fast as possible. Thank You Sir keep those great videos coming.
@monahanz
@monahanz Ай бұрын
First decent video for SD cards. Wish the was a way to R/W individual sectors. (Want to make CPM3 SD cards)
@Heron31415
@Heron31415 Ай бұрын
thank for your video. I think you forget to tel that the bridge not only converts the voltage level of the signal but inverts it too
@marios_ideas
@marios_ideas Ай бұрын
The one I reviewed does not invert the signal.
@ganeshp7557
@ganeshp7557 Ай бұрын
Can in have source code for the the reciver part
@ReddypagaBalakrishna
@ReddypagaBalakrishna Ай бұрын
Iink
@marios_ideas
@marios_ideas Ай бұрын
Link is in the description
@Matrix_Tate1
@Matrix_Tate1 Ай бұрын
i am not understanding C1 in set led active row function
@MrBobWareham
@MrBobWareham Ай бұрын
From the UK, thank you for your clock, it looks very nice. I would like to make one using your clock code. But I think I need to dim the display for nighttime. Thanks again for sharing your hard work, I have been to your link for the project, but it is not available. Bob
@strayangel3210
@strayangel3210 Ай бұрын
Specs on the light u used please
@robbierodion93
@robbierodion93 Ай бұрын
Hi. Your reed sensor is no good ! I have designed a home security system with high quality Littelfuse proximity reed sensors. They come in a small rectangular form factor and can be easily mounted on doors and windows. I purchased them from Mouser Electronics, a renowned online supplier.
@drmlnr5872
@drmlnr5872 2 ай бұрын
helped so much thanks
@NicholasWong-vv1nn
@NicholasWong-vv1nn 2 ай бұрын
Can someone help explain how to choose the right mosfet for a high voltage pwm project without using jargon words?
@BasitMirzaChannel
@BasitMirzaChannel 2 ай бұрын
Hi. Can you program for me for a weight machine kindly?