I've played with simple programs, moddifying examples and just learning at a basic level.
I tried adding the time library; Arduino Playground - Time but the IDE does not recognize "setTime(17,7,0,16,8,12)" I know it usually changes functions and certain words different colours, but setTime stays black and the program does not compile.
I just unzipped the time folder and the recommended UDPbitewise library and just threw it into the arduino-1.0.1/libraries folder. I get a warning that the bjorn.arduino...UDPbitwise thing can not be used as a valid folder so I'm guessing I did that wrong. Reading through the folder it doesn't look like I really need it for hard setting the time. Ethernet and String?
I wouldn't think I'd have to set the time to my arduino uno using one of the examples before I could re-set the time for my own purposes, but it might be easier to just do that instead. I was hoping just setting the time myself would be easier but now I just want to get it working before moving on to something else.
Ultimately I want to get my arduino to weekly take a reading of analog inputs and log them (humidity and temperature) and once I build the set up, test water quality with mixing water with test solutions, using a few servos and a small water pump. I want the arduino to daily feed fish with a simple feeder, one servo. But I want it to go off consistently... I know I have enough pins I just need a consistent time keeper and I was hoping a free in-the-arduino solution would be awesome.
Thank you for any help.
What, exactly, happens when "the program does not compile"? Does it give an error message? If so, what does it say?
Also, see Libraries - Arduino Reference on how to install libraries. They don't go in the Arduino program folder.
The link you gave me; " Open your Arduino sketchbook folder. If there is already a folder there called libraries, place the library folder in there."
Is what I did. then to add to a sketch it just inserts "#include <Time.h>" which I had. Is the sketchbook folder something other than the arduino-1.0.1 download folder? I thought they were one and the same.
The error is "setTime is not declared in this scope". I have it in the void_setup, I've tried moving it to the void_loop just to try and I get the same thing...
Is the sketchbook folder something other than the arduino-1.0.1 download folder?
Yes, it is. Look in preferences to see where your sketchbook folder is.
dxw00d:
Is the sketchbook folder something other than the arduino-1.0.1 download folder?
Yes, it is. Look in preferences to see where your sketchbook folder is.
Also, you have to close and reopen the IDE to update the examples menu and libraries menu. Or maybe no if you use my MOD version with a Library Manager feature
Make sure you put the Time, TimeAlarms and DS1307RTC subfolders from the Time.zip in the Arduino/libraries folder. And not the complete Time folder as it comes unpacked with the 3 folders within.
Also come back to this thread if you have a solution for your problem. Thanks.
GOOD
Arduino
- libraries
-- Time
--- Time.h
--- Time.cpp
NOT GOOD
Arduino
- libraries
-- Time
--- Time
---- Time.h
---- Time.cpp
Hi All,
I am having this same problem. I did all the above things listed and the new error simply says: Error Compiling. I was just using this example code:
http://arduino-time.googlecode.com/svn/trunk/TimeAlarms/readme.txt
I also tried the first code example on this link:
http://www.arduino.cc/playground/Code/Time
and I get the same "Error Compiling" message.
Any ideas?
Thank you!
and I get the same "Error Compiling" message.
But you are not going to tell it what it is. I home to have my crystal ball fixed by the end of the year. Hope you can wait that long.
Thread is old, but no one ever said "I had this problem and here is what worked."
Well, I had this problem and this post was the solution that made it work. Thanks.
DA
hcpl:
Make sure you put the Time, TimeAlarms and DS1307RTC subfolders from the Time.zip in the Arduino/libraries folder. And not the complete Time folder as it comes unpacked with the 3 folders within.Also come back to this thread if you have a solution for your problem. Thanks.
GOOD
Arduino
- libraries
-- Time
--- Time.h
--- Time.cppNOT GOOD
Arduino
- libraries
-- Time
--- Time
---- Time.h
---- Time.cpp
Bonsoir, je réactive le problème j'ai ce message d'erreur à la compilation
"Documents\Arduino\airspeed_alt_vario192x64_ver9.5\airspeed_alt_vario192x64_ver9.5.ino:406:29: error: 'setTime' was not declared in this scope
setTime(0, 0, 0, 0, 0, 0); // set the timer to 0" <----------- ligne du programme en erreur
La compilation se fait avec l' IDE arduino 1.6.6 et pour une carte Teensy3.1
Dans les autres cas testés, la compilation est OK pour les cartes arduino méga (le programme est écrit pour cette carte à la base) et teensy++2.
Je comptais utiliser la Teensy3.1 qui se rapprochait le plus de l'Arduino mega en terme de puissance processeur, avec l'avantage de la miniaturisation.
Michel