Arduino 2 ldr with 1 led in proteus

preview_player
Показать описание
This is simple arduino project; turn on LED when it's dark and turn off when is light.

Step 1: LED Connection
* LED attach to board
* Resistor (220 ohm) one leg attach to LED long leg
* The green wire attach to resistor's empty leg
* The brown wire attach o LED short leg

Step 2: LDR Connection
* LDR attach to board
* Resistor (10k ohm) attach to LDR one leg
* The purple wire attach to LDR other (empty) leg
* The yellow wire attach to LDR and resistor same column
* The white wire attach to resistor empty leg

Step 3: Arduino Connections
* The green wire connect to digital 13 from resistor leg
* The brown wire connect to GND from LED short leg
* The purple wire connect to +5V from LDR
* The yellow wire connect to A0
* The white wire connect to GND

Step 4: Code
Рекомендации по теме
Комментарии
Автор

Can i connect 2 ldr and 2 led? And how?

alistairagut