Fatal error: DS3231.h while trying to upload Version 48 to Arduino Uno

More
5 months 1 week ago #7919 by Paul
Hi, a newbie trying to change the code on his Rev3.

I've downloaded the Ver 48 firmware from GitHub (ArdunixNix6-master.zip) and unzipped the file. Downloaded and installed the Arduino 1.8.3 IDE and connected the Arduino Uno to my pc.

I opened ardunixFade9_6_digit.ino in the IDE and tried to upload the code to the Uno.
That didn't work out.
Got the following error message. Does anyone know what I'm doing wrong here?

Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Temp\ArdunixNix6-master\ardunixFade9_6_digit\ardunixFade9_6_digit.ino:20:20: fatal error: DS3231.h: No such file or directory

#include <DS3231.h>

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.


So the file DS3231.h seems to be missing. Which is strange, because it it is where it seems to belong, in the folder libraries. It tried copying the file DS3231.h to the folder where ardunixFade9_6_digit.ino is located, but as suspected that didn't help. By lack of knowledge, that leaves me out of ideas...

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #7920 by Ty_Eeberfest
Did you just copy the DS3231.h file to the libraries directory or did you properly install the library into the IDE?

www.arduino.cc/en/Guide/Libraries

If not installed, the IDE probably won't be able to find it.

Look into it later when the dust is clearing off the crater.

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago - 5 months 1 week ago #7922 by Ian
Another little trick, at the end of the compilation, the IDE tells you where it is pulling various libraries from:
Using library EEPROM at version 2.0 in folder: /home/ian/.arduino15/packages/arduino/hardware/avr/1.6.19/libraries/EEPROM 
Using library DS3231 in folder: /opt/arduino-1.6.8/libraries/DS3231 (legacy)
Using library Wire at version 1.0 in folder: /home/ian/.arduino15/packages/arduino/hardware/avr/1.6.19/libraries/Wire 
Using library Time at version 1.5 in folder: /opt/arduino-1.6.8/libraries/Time

You can have a look in the locations that are listed there.

Ty's answer is the right though. Follow the guide on the Arduino site from the link that he wrote.
Last Edit: 5 months 1 week ago by Ian.

Please Log in or Create an account to join the conversation.

More
5 months 6 days ago #7925 by Paul
I seemed to have managed to include DS3231.h :-)
And even to upload the code to the Arduino Uno...
Thx guys!
The following user(s) said Thank You: Ian

Please Log in or Create an account to join the conversation.

Moderators: AccutronTy_EeberfestIan
Time to create page: 0.029 seconds

Search

Tube Suppliers

Go to top
JSN Boot template designed by JoomlaShine.com