General

Ecoduino flower watering kit software does not compile.

userHead engguy 2012-10-03 16:38:31 18019 Views17 Replies
I downloaded the Ecoduino Auto flower watering kit sample code. The 'flowerwatering.pde' is now in my Arduino 'Sketchbook.' I also copied the files sunflower.h & sunflower.cpp into the sketckbook as well. The problem is that when I try to run flowerwatering.pde/ino, I get the error:
'sunflower' does not name a type.

I am missing something very fundamental. Can't anyone point me in the right direction? Thanks.
2012-10-18 05:30:56 So the AFWS controller board sample code that is downloadable for system A:

https://www.dfrobot.com/wiki/index.php/A ... U:KIT0003)

is using that code only not sufficient?

I thought i could get connect the components as given and then run the sample code on the microcontroller and the system would start working as mentioned? is such not the case?

Do you have any proper manual available for use for a novice who wants to learn about how to set up this system at home?
userHeadPic anonymous_fz
2012-10-18 05:30:56 So the AFWS controller board sample code that is downloadable for system A:

https://www.dfrobot.com/wiki/index.php/A ... U:KIT0003)

is using that code only not sufficient?

I thought i could get connect the components as given and then run the sample code on the microcontroller and the system would start working as mentioned? is such not the case?

Do you have any proper manual available for use for a novice who wants to learn about how to set up this system at home?
userHeadPic anonymous_fz
2012-10-17 17:00:49 @anonymous_fz,


a *.PDE is a sketch for Arduino IDE V0023 or lower (The sketch book). An *.INO is for Arduino IDE V1.0 and above.


The *.H/*.CPP files should be copied to a folder in the Arduino IDE's folder called "Libraries" all Arduino libraries are stored in this folder. You need to place them in a folder with the same name as the *.h file.


so: sunflower.h goes into: /Arduino-0023/libraries/sunflower/


Once you copy these files to the appropriate folder, it is imparative to re-start the Arduino IDE if you had it open. Otherwise it will not recognize the new libraries.






@Louks,


SOrry, let me get some clarification on the functions of the Micro, I will write later with more info.
userHeadPic Hector
2012-10-17 17:00:49 @anonymous_fz,


a *.PDE is a sketch for Arduino IDE V0023 or lower (The sketch book). An *.INO is for Arduino IDE V1.0 and above.


The *.H/*.CPP files should be copied to a folder in the Arduino IDE's folder called "Libraries" all Arduino libraries are stored in this folder. You need to place them in a folder with the same name as the *.h file.


so: sunflower.h goes into: /Arduino-0023/libraries/sunflower/


Once you copy these files to the appropriate folder, it is imparative to re-start the Arduino IDE if you had it open. Otherwise it will not recognize the new libraries.






@Louks,


SOrry, let me get some clarification on the functions of the Micro, I will write later with more info.
userHeadPic Hector
2012-10-17 16:12:54 Thanks Hector for helping me, i use pin 5 and 6 but when i Connect the pump to the motor terminal on the board (purple to Motor+, blue to Motor-) doesn't work. I noticed that when i put the pupm's probes on any analogin pin 3 4 5 6 7********** its--> (purple to -, blue to + ), but i have only this

void loop ()
{
        digitalWrite(6,HIGH);
        digitalWrite(5,HIGH);
}

on my code.  What is the mistake that i do? Thanks and sorry if i bother you
userHeadPic Louks
2012-10-17 07:41:27 what is the flowering.pde? The Arduino IDE is Arduino sketchbook? How do i copy the sunflower.h and sunflower.ccp into the sketchbook?

And compiling with the older Arduino IDE version 0022, the system works?
userHeadPic anonymous_fz
2012-10-17 07:41:27 what is the flowering.pde? The Arduino IDE is Arduino sketchbook? How do i copy the sunflower.h and sunflower.ccp into the sketchbook?

And compiling with the older Arduino IDE version 0022, the system works?
userHeadPic anonymous_fz
2012-10-16 21:19:38
I believe you need to enable pins 5 and 6 for the pump to work. I would suggest using a voltmeter and testing the terminals when you switch these pins on.


You might want to take a look at the schematics and the included sample libraries.
userHeadPic Hector
2012-10-16 21:19:38
I believe you need to enable pins 5 and 6 for the pump to work. I would suggest using a voltmeter and testing the terminals when you switch these pins on.


You might want to take a look at the schematics and the included sample libraries.
userHeadPic Hector
2012-10-16 16:57:50 I had the same problem with you engguy, but i can't solve it
so i decided to write my own code for ecoduino, but i don't know how to start the pump. I wrote a simple code, but i am not sure which output is for the pump. Can anyone help me?
Thanks
userHeadPic Louks
2012-10-11 18:36:37 Sorry for late reply.  The whole china was on holiday in last 8 days. 

We have updated our wiki to address the version.
userHeadPic R2D2C3PO
2012-10-11 18:36:37 Sorry for late reply.  The whole china was on holiday in last 8 days. 

We have updated our wiki to address the version.
userHeadPic R2D2C3PO
2012-10-10 22:26:02 Hi,
Sorry for the late reply. Offices were closed due to holidays.
userHeadPic Lauren
2012-10-10 22:26:02 Hi,
Sorry for the late reply. Offices were closed due to holidays.
userHeadPic Lauren
2012-10-09 13:26:16 I was disappointed in the lack of response to my question.  Apparently, the root cause is that the DFRobot software does not work with the latest Arduino IDE, Version 1.0.1.  After downloading the older IDE (Version 0022), it seemed to compile.  Why couldn't they make this very basic fact known to their customers? userHeadPic engguy
2012-10-09 13:26:16 I was disappointed in the lack of response to my question.  Apparently, the root cause is that the DFRobot software does not work with the latest Arduino IDE, Version 1.0.1.  After downloading the older IDE (Version 0022), it seemed to compile.  Why couldn't they make this very basic fact known to their customers? userHeadPic engguy
2012-10-03 16:38:31 I downloaded the Ecoduino Auto flower watering kit sample code.  The 'flowerwatering.pde' is now in my Arduino 'Sketchbook.'  I also copied the files sunflower.h & sunflower.cpp into the sketckbook as well.  The problem is that when I try to run flowerwatering.pde/ino, I get the error:
    'sunflower' does not name a type.

I am missing something very fundamental.  Can't anyone point me in the right direction?  Thanks.
userHeadPic engguy