Hi,
After all soldering, it's time to load some software. But I seem to fail at getting the right structure for the Arduino sketch and it's libraries. I keep getting 'send_rf_data' as error when I try to upload the emonTx_Pulse sketch.
My folder structure is now like this:
~/Documents/Arduino/emonTx_Pulse/emonTx_Pulse.ino
~/Documents/Arduino/emonTx_Pulse/emontx_lib/emontx_lib.ino
~/Documents/Arduino/libraries/ElsterMeterReader
~/Documents/Arduino/libraries/EmonLib
~/Documents/Arduino/libraries/JeeLib
Anyone some insights? I'm pretty new to Arduino, and have no experience yet.
Re: Correct layout of folders for sketch
emontx_lib.ino should be one folder up, in the same folder as your sketch. And it should appear on a tab in the IDE.
(There should be a comment at the top of the main sketch file that says this, if it's recently downloaded).
Re: Correct layout of folders for sketch
You might have already tried this, but...
The Arduino Application needs to be restarted to "see" / load any new libraries.
If the library files are being read you should see the examples associated with the libraries under File>Examples>"nameoflibrary"
Re: Correct layout of folders for sketch
Finally got it, both 'emontx_lib.ino' and 'emonTx_Pulse.ino' should go into an folder named emonTx_Pulse, that lives in the root Arduino folder.
Re: Correct layout of folders for sketch
Not necessarily - I keep all the "project" files in a completely different place to the IDE and its libraries. The important thing is to keep all the true libraries with the IDE, and the sketch in a folder of the same name together with its dependencies.
(So you could move the folder named emonTx_Pulse and its contents anywhere, and all should still be OK. You might want to set the Sketchbook location in the IDE).
But if that setup works for you, stay with it.