Stoplight Controlled by DAQ

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Stoplight Controlled by DAQ

With increase of traffic different related problems are increasing day by day. The increase in number of
vehicles and the limited resources of present infrastructure results in difficult scenarios.

As a solution to such problem data acquisition hardware is to be implemented to automatically control


the lighting system. The hardware that is to be used is NI USB-6008 multifunction input output device. It
interface to the computer via a USB connector.

In total it has in total 8 differential voltage inputs, 2 outputs and 12 channels. These channels can either
be used as digital input or digital output and having resolution of 12 bits.

The reason for the choice of usb device is basic simplicity however various other devices can also be
used for the purpose of data acquisition.

Required items to carry out the project includes

1) NI data acquisition board


2) 3 led’s
3) 3 resistors for led’s
4) Jumper wires for connection
The proposed hardware architecture is presented below
After this we require to build a front panel to show the working on software. The front panel is
developed on virtual instrument. It contain the three led’s as well as a stop control button to
stop the working of structure when required.
A proposed sample of the front panel is shown below to provide the idea of how it should
appear to be

Next step is the implementation of program functionality representing the source code of the
instrument.
The diagram presented above has a while loop and case structure. A shift register is used at the
boundary of while loop having three constants, one for each led. This register is used to shift
values from one iteration to other. For each led one local variable is created which are wired to
Boolean constants. The output from these Boolean constants is transmitted to the digital out of
DAQ device. The output is then accordingly displayed.
The design and implementation will be very useful. The DAQ card and labview would be used to
develop the virtual instrument for such designing

You might also like