Monday, 22 August 2016

Lesson 6 - Activity 4 (Automated Light (LDR) & Buzzer )

Activity 4
Automated Light & Buzzer (LDR)

Materials Needed:                                                  
LDR, buzzzer & LED circuit
  • Laptop
  • USB cable
  • Arduino Board
  • Breadboard
  • 1 x Buzzer 
  • 1 x 10kΩ
  • 1 x LDR
  • 1 x LED
  • 1 x 330Ω
  • 8 x Jumper Wires


Codes:
Please figure the codes yourself :)








 
Hint!!

1. Above is the codes for LDR and Buzzer Circuit

2. Please add in the Buzzer Circuit codes into LDR circuit codes
     (Example is on your left (const int buzzer = 9;))

3. Continue for the rest of the buzzer codes.

4. Verify and Upload the code.

5. Good Luck!!!



*Note: If you manage to do it get a stamp from your teacher. 





No comments:

Post a Comment