Arduino SMD RGB LEDSOURCE CODE: const int blue = 3;//set blue to pin 3 const int red = 5;//set red to pin 5 const int green = 6;//set green to pin 6 void...
Arduino Fire AlarmSOURCE CODE: const int flameSens = A0;//set flame sensor to pin A0 const int speaker = 8;//set speaker to pin 8 int flameVal;//set up...
Motor Control with Arduino and Adafruit Motor ShieldSOURCE CODE: #include <AFMotor.h> //include motor shield library AF_DCMotor motor(1); // set motor to motor pin 1 void setup() { ...
Arduino Water Detection AlarmSOURCE CODE: const int waterSens = A0;//define water sensor to pin A0 const int speaker = 8;//define speaker to pin 8 int...
Arduino with SpeakerSOURCE CODE: --------------------------------------------------------------------------------------- //Simple Tones int SpeakerPin = 8;...
Arduino Water Sensor and ServoSOURCE CODE: #include <Servo.h> //include servo library Servo myservo; //define servo as servo const int waterSens = A0;//set water...