Firstly I’d like to say I’m new to Arduino though not microcontrollers having used the PICAXE range before, also I’m new to C/C++ though not programming as I use Object Pascal (freepascal) and Basic (PICAXE) and a tiny bit of Python and even Assembler many years ago.
This started off as another PICAXE project but it became too complex a task to work with basic, especially the lack of functions or strings, so I bought an Arduino Mini and dived in.
I will say though that using the PICAXE usb<>serial cable and it’s stereo socket helped a lot, I could use it at the same time as the Arduino usb<>serial, the Arduino’s for programming and the PICAXE cable to view the output from my program.
Although it’s not completely finished, I’m unlikely to continue any further programming / electronics now that it’s working unless something breaks, that part is ‘complete’., I do have to add lighting though.
Anyway, here’s the link to the youtube video http://www.youtube.com/watch?v=acoH1zqIt2c
I would really like some feedback on the code as I’m new to C and I was having problems with character arrays, I cheated in the end and removed some for loops I was using and just cludged it a bit.
And here is the code, sorry it’s 743 lines / 15,950 chars so the forum has refused it as inline text. See attached instead.
plant.ino (15.6 KB)