Presentation is loading. Please wait.

Presentation is loading. Please wait.

Simple LED circuit.

Similar presentations


Presentation on theme: "Simple LED circuit."— Presentation transcript:

1 Simple LED circuit

2 LED + > – (+) Power Source Resistor Diode Earth Anode (+)
Cathode (-) + > –

3 LED  20mA  3 Volts 1.7 Volts 0 Volts Colour Voltage Red 1.7 – 2.7
Orange 1.9 – 2.2 Yellow 2.1 – 2.5 Green 2.2 – 2.5 Blue 3.2 – 4.9

4 LED  20mA  20mA 3 Volts 1.3 Volts 1.7 Volts = 0 Volts

5 220  is a common resistor close to required value
LED Innovator Resistor 220  2 2 x 100 5% 10%

6 LED Innovator Innovator Resistor 220  (+)

7 LED Connected Supply Rail

8 LED Innovator + > –

9 LED Connect to PWR output 2 Innovator

10 LED You’re ready to start programming! Define blink()= Prgm
Send "BEGIN" DelVar iostr.str0 GetStr iostr.str0 Disp iostr.str0 Local n Send "CONNECT LED 1 TO BB 1" For n,1,10 Send "SET LED 1 ON " Wait 1 Send "SET LED 1 OFF " EndFor EndPrgm You’re ready to start programming!

11 LED Save the program: Ctrl + B
Define binary_display(val)= Prgm Send "BEGIN" DelVar iostr.str0 GetStr iostr.str0 Disp iostr.str0 Local n Send "CONNECT LED 1 TO BB 1" For n,1,10 Send "SET LED 1 ON " Wait 1 Send "SET LED 1 OFF " EndFor EndPrgm Save the program: Ctrl + B This command also scans the program code for errors.

12 LED Define binary_display(val)= Prgm Send "BEGIN" DelVar iostr.str0
GetStr iostr.str0 Disp iostr.str0 Local n Send "CONNECT LED 1 TO BB 1" For n,1,10 Send "SET LED 1 ON " Wait 1 Send "SET LED 1 OFF " EndFor EndPrgm


Download ppt "Simple LED circuit."

Similar presentations


Ads by Google