
174
Upload Code:
1) Connect the
REV4
Board to a USB port on your computer.
2) Open the program in the code folder- Circuit 15, or directly copy and
paste the code below on the Ardunio IDE.
3) Select UPLOAD to program the sketch on the UNO Board.
#define SensorLED
13
#define SensorINPUT
2
unsigned char state = 0;
void setup()
{
pinMode(SensorLED, OUTPUT);
pinMode(SensorINPUT, INPUT);
attachInterrupt(0, blink, FALLING);//D2 as external interruption 0,
when there is falling trigger and call blink function
}
void loop()
{
if(state!=0)
{
Summary of Contents for KS0436
Page 7: ...7...
Page 10: ...10 Your baseplate is now assembled...
Page 12: ...12 click the Arduino icon to open...
Page 15: ...15...
Page 16: ...16 The Kit contains extensive electronic components Below shows you a part of kit components...
Page 22: ...22...
Page 30: ...30 Check out the wiring below to see how everything is connected Schematics...
Page 31: ...31...
Page 34: ...34 What You Will See...
Page 36: ...36 LED Not Lighting Up Make sure you connect the LED correctly or try other LEDs...
Page 38: ...38...
Page 39: ...39...
Page 49: ...49...
Page 58: ...58...
Page 62: ...62...
Page 65: ...65...
Page 66: ...66...
Page 72: ...72 jumper wire or reverse the buzzer...
Page 75: ...75...
Page 76: ...76...
Page 81: ...81...
Page 88: ...88 In this experiment we use a common cathode display Below is the seven segment pin diagram...
Page 94: ...94...
Page 101: ...101...
Page 103: ...103...
Page 107: ...107 if c 9 b c 0 if b 9 a b 0 if a 9 a 0 b 0 c 0 d 0 void WeiXuan unsigned char n...
Page 121: ...121...
Page 129: ...129...
Page 134: ...134...
Page 137: ...137...
Page 138: ...138...
Page 142: ...142 turns on if greater than 30 red LED turns on...
Page 146: ...146...
Page 149: ...149 Serial println DHT temperature 1 delay 1000 What You Will See...
Page 154: ...154 analog pin As shown below...
Page 156: ...156...
Page 161: ...161 Note that here use a 10K Resistor...
Page 165: ...165...
Page 172: ...172...
Page 173: ...173...
Page 179: ...179...
Page 180: ...180...
Page 184: ...184...
Page 194: ...194 What You Will See...
Page 197: ...197...
Page 201: ...201...
Page 202: ...202...
Page 206: ...206...
Page 207: ...207...
Page 211: ...211...
Page 219: ...219...
Page 223: ...223 What You Will See Move your hand or a large flat object closer and farther away from the...
Page 230: ...230...
Page 232: ...232 Once you re finished it s time to build the circuit...
Page 237: ...237...
Page 238: ...238 Circuit Diagram...
Page 247: ...247...
Page 250: ...250...
Page 258: ...258...
Page 262: ...262...
Page 269: ...269...
Page 272: ...272 Circuit Diagram...
Page 282: ...282...
Page 285: ...285...
Page 293: ...293...
Page 296: ...296 Fennie keyestudio com Thank you in advance...