WALTER - The Arduino Photovore Insect Robot
What does it do?
[Please excuse my English]
[Please excuse my English]
[Please excuse my English]
[Please excuse my English]
[Please excuse my English]
Connecting a water sensor to an Arduino is a great way to detect a leak, spill, flood, rain etc. It can be used to detect the presence, level, volume and/or the absence of water. While this could be used to remind you to water your plants, there is a better Grove sensor for that. The sensor has an array of exposed traces which will read LOW when water is detected. In this tutorial, we will connect the Water Sensor to Digital Pin 8 on the Arduino, and will enlist the very handy Grove Piezo buzzer and an LED to help identify when the Water sensor comes into contact with a source of water.
1 |
|
If you liked this tutorial - please show your support :
Thats the code that i typed.... The result was red green blue red green-blue red(for a longer period)
And that keeps on repeating.....
But what i actually want is red green blue red-green green-blue red-blue white And this should repeat....
int red=12;
int green=8;
int blue=7;
void setup(){
pinMode(red,OUTPUT);
pinMode(green,OUTPUT);
pinMode(blue,OUTPUT);
}
void loop(){
digitalWrite(red,LOW);
digitalWrite(green,HIGH);