The digital Light sensor that we are going to interface with ATmega32 microcontroller is a dual output sensor i.e. the sensor gives both analog and digital output signal.
In this project, we will learn How to interface the digital output of the digital light sensor with AVR ATmega32 microcontroller. Here, we will detect the change in digital output of the digital light sensor and we will display the status of sensor in a 16X2 alphanumeric LCD. The microcontroller will read the digital output of the digital light sensor through any of its IO pin and it will display the status of the digital light sensor in the 16X2 alphanumeric LCD as “Sensing” when the sensor senses light infront of it and “Not Sensing” when the sensor do not senses light infront of it. Before doing experiment with digital output of digital light sensor, set the reference voltage through the on-board trimpot in digital light sensor. Now, turn On and Off a torch infront of the sensor and see the changes in the 16X2 alphanumeric LCD.
The step-by-step connection guide for Digital Light Sensor Interfacing with ATmega32 and LCD Display-Digital Output is as follows
Steps - 1 ( 0f 10 )
Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.
Steps - 2 ( 0f 10 )
Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.
Steps - 3 ( 0f 10 )
Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.
Steps - 4 ( 0f 10 )
Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.
Steps - 5 ( 0f 10 )
Connect the VCC, GND & DO pins of Digital Light Sensor header to VCC, GND and PA0 pins of PortA header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.
Steps - 6 ( 0f 10 )
Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.
Steps - 7 ( 0f 10 )
Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.
Steps - 8 ( 0f 10 )
Switch on the power with the help of Power Switch of AVR Trainer Board-100.
Steps - 9 ( 0f 10 )
Download the Digital Light Sensor Interfacing with ATmega32 and LCD Display-Digital Output Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.
Steps - 10 ( 0f 10 )
Turn On and Off a torch in-front of the Digital Light Sensor and see the change in output.
Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.
Steps - 1 ( 0f 10 )
Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.
Steps - 2 ( 0f 10 )
Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.
Steps - 3 ( 0f 10 )
Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.
Steps - 4 ( 0f 10 )
Connect the VCC, GND & DO pins of Digital Light Sensor header to VCC, GND and PA0 pins of PortA header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.
Steps - 5 ( 0f 10 )
Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.
Steps - 6 ( 0f 10 )
Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.
Steps - 7 ( 0f 10 )
Switch on the power with the help of Power Switch of AVR Trainer Board-100.
Steps - 8 ( 0f 10 )
Download the Digital Light Sensor Interfacing with ATmega32 and LCD Display-Digital Output Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.
Steps - 9 ( 0f 10 )
Turn On and Off a torch in-front of the Digital Light Sensor and see the change in output.
Steps - 10 ( 0f 10 )
Downloads
Digital Light Sensor Interfacing with ATmega32 and LCD Display-Digital Output Project File
9 downloads
0
Kb
Downloads
Digital Light Sensor Interfacing with ATmega32 and LCD Display-Digital Output Project File
Post a Comment