Hi.
Im building a wifi green house automation system where i allready have bought and successfully tested the following parts:
-arduino uno
-adafruit cc3000 breakout shield
-adafruit motor shield v2
-load cells (0-10kg, Zi=1115ohm,Zo=1000)
-CO2 sensor (IC LM393 MG811, 6v working voltage), i have not tested this part since i need 6v.
-DHT11 humidity sensor
-Sparkfun soil humidity sensor
So im thinking of adding the parts and do a setup like shown in the following diagram. Here im adding four 12v DCmotors for driving water pumps. But since i want this project to be as power efficient as possible i thinking of including a TPIC63595 in a way to break power to all parts except one. That way only one sensor/motor will be on at a time. In suggestions on how i can do this?
Im thinking of maybe using a battery and solar panels, is that possible u guys think?
Thx for any help, and plz come with suggestions and improvements:)
BR Kris
But since i want this project to be as power efficient as possible i thinking of including a TPIC63595 in a way to break power to all parts except one. That way only one sensor/motor will be on at a time. In suggestions on how i can do this?
Why not just do that in software?
int motorPin[] = {8,9,5,4};
void startMotor(int motorId) // n = { 0, 1, 2, 3 }
{
if (motorId < 0 || motorId > 4) return; // skip invalid values
stopMotors();
digitalWrite(motorPin[motorId], HIGH);
}
void stopMotors()
{
for (int i=0; i< 4; i++)
{
digitalWrite(motorPin[i], LOW);
}
}
The stopMotors() in the startMotor(x) will be so short that the motor will keep spinning in practice if you start the same motor.
You can improve on this scheme by tracking the current running motor or adding a delay between the soptMotors() and the start of the one you want.
Also you might print an error if the parameter motorId has an invalid value
mkkb4987:
-DHT11 humidity sensor
I bought 5 of those, but they're quite unreliable, temperature-data is reliable up to 2 degrees, but I get a difference in humidity-readings up to 50%. I'd use a second, reliable humidity-sensor, and compare the output at different humidity-levels. That way you can correct the error in software as much as possible.
Thx for reply, yes i agree in your suggestion about how to drive the motors with the software. But how about the sensors, they will constantly draw power even if i measure or not? Or isnt that away round that? Im thinking that only the one sensor im actually measuring with at the time should be on? Anyhow i still want to learn how to use the TPIC6B595. Can use it like in this diagram, just to break a circuit (just coupled in a few of the sensors)? And since i also use the cc3000 shield which are hogging the SPI pins, how do i use them together? I have read shortly about slave select but still doesnt fully understand how to do it.
I will maybe buy another dht11 then, or a dht22, do anyone have some experience with that one?