I have done that project and I did a lot of modifications on your set that involved electronically like adding in the volume, treble & bass. I even added on a rechargeable battery and TP4076 module so it can be rechargeable, and I added on more power by using an amplifier PAM8401 5V. Not forgotten I added on the voltmeter to know the level of the battery. The FM radio sounds great.
Next in the same project, I will add in the SD card. But it is just that how to add the new code for sdcard into the previous Arduino nano that has already code FM Radio, Temperature, IR Remote, and Clock. If you could only upload a video on how to add in a multiple codes in a single Arduino c++ code.
And sir, last but not least may I get your permission to use and upload your code and lesson on my next upcoming youtube video? Hopefully, you don't mind as we share your knowledge on the world of Arduino Technology. Thank you
Hi Mr. Anas, I m Andri. It's a great pleasure sir to watch all your lessons especially using Arduino. I have done one of your projects. That is TEA5767 FM Stereo Radio.
Really enjoy this project. I have been researching a way to convert from the 24 hr clock to 12 hrs. Being new to the Arduino world, I may have seen a way to convert but just didn't understand. Do you have any suggestions as to how I could accomplish this conversion. Thanks again for your projects and time to you take to make them available for all to enjoy and learn more about this hobby.
Anas After a lot of research I found an easy way to convert your 24 hour clock to a 12 hour clock. I replaced the attached code to your sketch from lines 111 to 120. I have been running this for a couple of days without any issues. I hope this helps anyone wanting to convert their project clock display. //Convert from 24 hr to 12 hr =================== if(Hour > 12) //ADDED THESE IF STATEMENTS Hour = Hour - 12; if (Hour == 0) Hour = Hour + 12; //============================ { lcd.print(" "); //REMOVED 0 HERE NOT NEEDED FOR 12 HR CLOCK lcd.print(Hour); } // else lcd.print(Hour); REMOVED THIS ELSE STATEMENT NOT NEEDED FOR 12 HR CLOCK
@@AnasKuzechie Hi I'm sorry. I have installed all the libraries. But I did not understand if I got the codes wrong while coding from the page. It gives the following error: Arduino:1.8.13 (Windows 7), Kart:"Arduino Uno" C:\Users\s�n�f\Documents\Arduino\libraries\DS3231\DS3231.cpp: In member function 'void DS3231::setEpoch(time_t, bool)': C:\Users\s�n�f\Documents\Arduino\libraries\DS3231\DS3231.cpp:264:12: error: aggregate 'DS3231::setEpoch(time_t, bool)::tm tmnow' has incomplete type and cannot be defined struct tm tmnow; ^~~~~ C:\Users\s�n�f\Documents\Arduino\libraries\DS3231\DS3231.cpp:266:3: error: 'localtime_r' was not declared in this scope localtime_r(&epoch, &tmnow); ^~~~~~~~~~~ C:\Users\s�n�f\Documents\Arduino\libraries\DS3231\DS3231.cpp:269:3: error: 'gmtime_r' was not declared in this scope gmtime_r(&epoch, &tmnow); ^~~~~~~~ C:\Users\s�n�f\Documents\Arduino\libraries\DS3231\DS3231.cpp:269:3: note: suggested alternative: 'time_t' gmtime_r(&epoch, &tmnow); ^~~~~~~~ time_t exit status 1 Arduino Uno kartı için derleme hatası. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.