Go Down

Topic: Bluetooth Arduino Project - *$ for Hire $* (Read 415 times) previous topic - next topic

tazmojo



"Whom amongst you is the bravest ? Ready, willing & able to answer the call to test the very limits of your imagination."


                                 Brief Description

(3) Sensors trigger a solenoid closed automatically via CH-05 modules.



                                Partial Parts List
 
CH-05, Uno, pro mini, solenoid, { (temp sensor), (liquid sensor), (flow sensor) }




                          More Detailed Description
 
(Temp sensor) triggers solenoid closed @ xxF.
(Liquid sensor) triggers solenoid closed when liquid detected.
(Flow sensor) triggers solenoid closed when flow detected.
Uno -  triggers solenoid open/closed manually -override.



                        CH-05 Communication Path

Temp sensor   > Solenoid
Liquid sensor  > Solenoid
Flow sensor    > Solenoid
Uno            < > Solenoid (signal led) green-open / red-closed



If you have additional questions, such as power supply, etc… send me a PM.

wvmarle

So basically:

Code: [Select]

if (temp > xxF || haveLiquid() || haveFlow()) {
  closeSolenoid();
  digitalWrite(RED_LED, HIGH);
  digitalWrite(GREEN_LED, LOW);
}
else {
  openSolenoid();
  digitalWrite(RED_LED, LOW);
  digitalWrite(GREEN_LED, HIGH);
}


OK, not totally complete, I didn't allow for a hysteresis for the temperature probe. But other than that, this is basically what you're saying, right? (LEDs wired to be lit when the pin is set to HIGH).
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

bitbank

Your description is missing a few things. Are there HC-05 bluetooth modules connected to 2 Arduinos? I assume that one Arduino has the sensors and the other one controls the solenoid, correct? How far apart are they? Does the solenoid get told to switch states when the conditions which closed it reverse? Is there a minimum amount of time to average samples together so that the solenoid is not toggling too quickly?
Library? We don't need no stinkin' library...we write our own

Go Up