
42
Done uploading the code, you can see your own designed traffic light.
This circuit design is very similar with the one in LED chase effect.
The green light will turn on for 5 seconds, and then off, followed by the
yellow light blinking for 3 times, and then red light turns on for 5 seconds,
circularly and repeatedly.
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...