6
S Si imp l le  L L E E D D  P P r r o  j  jec t t  f f o r r  t t h he  E E l l e ec t t r r on i ics  E E x x p p l lo r r e r r B Boa r r d d Revision:  March 10, 2011 Note: This document applies to REV D&E of the board. 1300 NE Henley Court, Suite 3 Pullman, WA 99163 (509) 334 6306 Voice | (509) 334 6300 Fax  Doc: DSD-0000297 page 1 of 6 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.  This project demonstrates some basic features of the Digilent Electronics Explorer Board. Using just a resistor and an LED, the project introduces the Static I/O and Digital Pattern Generator instruments in the WaveForms software. To keep the project simple for new users, only a few features of the software are used. Turn an LED on and off with the Static I/O instrument: 1. Build the schematic below. 10DIO31 GND LED    D    I    G    I    T    A    L    4    P   r   o    t   o    t   y   p   e    B   r   e   a    d    b   o   a   r    d  2. Connect the EE Board to the PC with a USB micro AB cable. 3. Connect the board power supply. 4. Turn the On-Off switch ON. 5. Launch the WaveForms Software.

EE LED Project.pdf

Embed Size (px)

Citation preview

Page 1: EE LED Project.pdf

8/20/2019 EE LED Project.pdf

http://slidepdf.com/reader/full/ee-led-projectpdf 1/6

SSiimmppllee LLEEDD PPr r oo j jeecctt f f oor r tthhee EElleeccttr r oonniiccss EExxpplloor r eer r BBooaar r dd Revision: March 10, 2011

Note: This document applies to REV D&E of the board.1300 NE Henley Court, Suite 3

Pullman, WA 99163(509) 334 6306 Voice | (509) 334 6300 Fax

Doc: DSD-0000297 page 1 of 6

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

This project demonstrates some basic features of the Digilent Electronics Explorer Board. Using just aresistor and an LED, the project introduces the Static I/O and Digital Pattern Generator instruments inthe WaveForms software. To keep the project simple for new users, only a few features of thesoftware are used.

Turn an LED on and off with the Static I/O instrument:

1. Build the schematic below.

10Ω

DIO31

GND

LED

D I G I T A L 4

P r o t o t y p e

B r e a d b o a

r d

2. Connect the EE Board to the PC with a USB micro AB cable.3. Connect the board power supply.4. Turn the On-Off switch ON.

5. Launch the WaveForms Software.

Page 2: EE LED Project.pdf

8/20/2019 EE LED Project.pdf

http://slidepdf.com/reader/full/ee-led-projectpdf 2/6

Page 3: EE LED Project.pdf

8/20/2019 EE LED Project.pdf

http://slidepdf.com/reader/full/ee-led-projectpdf 3/6

Simple LED Project for the Electronics Explorer Board

www.digilentinc.com page 3 of 6

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

9. Push and hold the button, then release.10. Note that the physical LED (on the board) and the virtual LED (in the Static I/O user interface) light

when the button is pressed. Note that a Push Button actively drives Logical HIGH and LOW levels . 11. Set DIO31 as a Push/Pull Switch. Right-click Push Button 31 and select Push/Pull Switch

12. Click or click-and-drag the switch symbol to change it from 1 to 0. Note that the physical andvirtual LEDs light when the switch is 1. Note that a Push-Pull Switch actively drives Logical HIGH(1) and LOW (0) levels.

13. Set DIO31 as Three-State Switch. Turn the Switch to 0, Z, and 1. Note that the physical and virtualLEDs light when the switch is 1. Note that a Three-State Switch actively drives Logical HIGH (1)and LOW (0) levels but can also be in a high impedance (Z) state.

14. Set DIO31 as Open-Source Switch. Turn the Switch to Z and 1. Note that the physical and virtualLEDs light when the switch is 1. Note that an Open-Source Switch actively drives Logical HIGH (1)level but can also be in a high impedance (Z) state. An Open-Source Switch is not able to drive anactive LOW (0) level.

15. Set DIO31 as Open-Drain Switch. Turn the Switch to 0 and Z. Note that the physical and virtualLEDs never light. Notice that an Open-Drain Switch actively drives Logical Low (0) level but canalso be in high impedance (Z) state. An Open-Drain Switch is not able to drive an active High (1)level. How should the schematic change to work with an Open-Drain Switch?

9. turn DIO31

highleft click and hold

10. LED

indicator

sunchronized

with the

physical

LED

9. turn DIO31

lowrelease mouse button

Page 4: EE LED Project.pdf

8/20/2019 EE LED Project.pdf

http://slidepdf.com/reader/full/ee-led-projectpdf 4/6

Simple LED Project for the Electronics Explorer Board

www.digilentinc.com page 4 of 6

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

Make an LED blink with the Digital Pattern Generator:

1. Use same schematic as above.2. Set DIO31 as an LED indicator.

3. Launch the Digital Pattern Generator instrument.4. Configure signal DIO31. First right-click the signal name field.

5. Then select Insert > Signals > Dio31-24 > DIO 31.

4. add a signal

right click

Page 5: EE LED Project.pdf

8/20/2019 EE LED Project.pdf

http://slidepdf.com/reader/full/ee-led-projectpdf 5/6

Simple LED Project for the Electronics Explorer Board

www.digilentinc.com page 5 of 6

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

6. Change Output type from OD (Open Drain) to PP (Push-Pull).

7. Change Type from Undefined to Clock.

8. In the Parameters window, set frequency to 0.5Hz.

9. Make sure that the Apply Continuously checkbox is set.10. In the Digital Pattern Generator window, change Scale to Manual.11. Set Timebase to 1s/div.12. Click Run.13. Note that the physical LED (on the board) and the virtual LED (on the Static I/O user interface)

blink for one second ON, one second OFF. Note that a Push-Pull Output type actively drivesLogical HIGH (1) and LOW (0) levels.

14. Change the Output type of signal DIO31 and note the behavior of Open-Drain (OD) and Open-Source (OS) types. Set the Output type of DIO31 back to Push-Pull (PP).

15. Change the clock frequency.16. To re-open the Parameters window (if necessary), double-click the Info field of the DIO31 signal.

17. In the Parameters window, increase the clock frequency. Click and drag the slider, and type thevalue or select it from drop menu.18. Note the blink frequency for both the physical and virtual LEDs. Above 10Hz (depending on your

USB port loading), the virtual LED lags the physical LED due to USB communication delays.19. In the Parameters window, increase the clock frequency until you see the physical LED lit

continuously.

0.5Hz

8. set

frequency

9. Apply

Continuously

type in select

drag

Page 6: EE LED Project.pdf

8/20/2019 EE LED Project.pdf

http://slidepdf.com/reader/full/ee-led-projectpdf 6/6

Simple LED Project for the Electronics Explorer Board

www.digilentinc.com page 6 of 6

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

20. Note the physical LED behavior when increasing the frequency above 30Hz. The human eyecannot sense individual light pulses. Instead, the pulses are integrated to seem like a luminousintensity average.

21. In the Parameters window, click the Duty Factor slider, then use the mouse scroll wheel or thekeyboard up/down arrow keys to change the duty factor of the clock signal.

22. Note the physical LED behavior when changing the clock duty factor. The LED seems to changethe light intensity.