UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
226 Views
Registered: ‎01-28-2019

Sir we are doing project on home automation through fpga so we need code to interface LDR sensor with fpga in verilog.so please help us sir.Thanking u.

 
0 Kudos
1 Reply
Adventurer
Adventurer
192 Views
Registered: ‎12-16-2018

Re: Sir we are doing project on home automation through fpga so we need code to interface LDR sensor with fpga in verilog.so please help us sir.Thanking u.

Hi 

The LDR sensor is a analog sensor, no digital. To connect a LDR sensor to a FPGA you need a ADC, to convert from the analog signal domain to digital signal representation of the analog signal and then manipulate this digital signal with a FPGA. Depending on the FPGA that you are using you have options:

1) Use the AMS present inside the FPGA

2) Use a external ADC to the FPGA that digitized the signal from the LDR.

I hope that this information was useful to you. 

Remember mark as accepted solution if you think that this answer is useful, kudos given are accepted.

0 Kudos