Are you referring to the picture in the tutorial? All the jumpers there are M,M. The Arduino power leads are actually a mixture, but the end result is M,M. The RTC and LCD have F,F adapters because they use a different style connector: if they are not included with the product then you will need to order them separately.
With the precision clock, when you press the buttons (red,yellow or blue) will the time show up? and when your finger is not on the button will it not show? Can you explain the use of the buttons please
My best guess from looking at the code.
Date Time is displayed all the time.
Pressing P1 steps through changing date / time.
Hour then Minute then Year then Month then Day.
P2 & P3 step the value up or down.
The code does not have a blank display feature.
Cheers
Jim
The time is displayed whenever the device is powered up.
void loop()
{
// in which subroutine should we go?
if (menu==0)
{
DisplayDateTime(); // void DisplayDateTime
}
Button 1 is pressed and held to adjust the hour, minute, year, month and day in turn and released to finish the setting, Buttons 2 and 3 adjust the selected item up or down.
int P1=6; // Button SET MENU'
int P2=7; // Button +
int P3=8; // Button -
When I put in the first code, it says that theres an error compiling for Arduino Uno
If that is the only message that appears at the end it indicates that you have selected the wrong processor in the Tools / Board menu item. Make sure it is set to UNO.
If that’s not the problem look back through the display output and find the detailed message and post it in full.
I used the 2nd sketch that you provided and It still doesn’t work. Also, the white connector you put in both the screen and the gravity, you only gave me one. I don’t know how I’m supposed to also connect the gravity if I don’t have the white connector. Tell me if It is supposed to have 2 casue I only got one with the package.
I used the 2nd sketch that you provided and It still doesn’t work. Also, the white connector you put in both the screen and the gravity, you only gave me one. I don’t know how I’m supposed to also connect the gravity if I don’t have the white connector. Tell me if It is supposed to have 2 casue I only got one with the package.
Have you fixed the problem with the " Error compiling for Arduino Uno" message?
Firstly, you need to remove the duplicate lines - there should be only one ‘#include’ statement for each library.
The error message shown in your image means that the LCD library has not been installed properly. The instructions for doing this are in the tutorial at the paragraph that starts “Next type in Liquid Crystal_I2C into the Library Manager search bar.” That first description might not work because I think the IDE does not list archived repositories… The second description (“Finally, you will need to include a library through a zip file”) will work, but you need to go to
GitHub - fdebrabander/Arduino-LiquidCrystal-I2C-library: Library for the LiquidCrystal LCD display connected to an Arduino board
select Code, download the ZIP and follow that description for installing a library from ZIP.
If the product you ordered was supposed to come with the cable included then that is a matter you should take up with Core using the email provided with your invoice.
The sketch in the guide definitely does not work, the libraries area needs to be like the graphic below the sketch.
Use the link to the .zip library at the bottom of the guide.
Attachment - Code_and_Zip_Library_Needed.zip.
The correct sketch is there and the DFRobot_LCD library. (DFRobot_LCD-master)
Arduino has an area detailing how to install libraries.
Use the Library Manager instructions to install the RTClib and LiquidCrystal_I2C libraries.
Use the Manual install instructions to copy DFRobot_LCD-master to the libraries area of your Arduino IDE. Use of the .zip files worked for me as I was able to compile the sketch correctly.
Regards
Jim
Hi Stella,
Jeff and Jim have you sorted out for the code.
Could you please send through a photo of your wiring just to confirm you have all of the cables?
There should have been a cable included with the RTC and screen (white on one end and black on the other) - like Jeff said, just send through an email and we’ll sort it out!
Liam
Okay I’ll send it in a few I’m around 30mins till home
For those who are looking for better accuracy, I suggest DS3231. This is also available in core electronics.
One can make simple but more accurate arduino clock like this with DS3231.