2014-02-25 11:36 AM
Hello,i'm a beginner in STM32 can someone give me an example of how to use the LDR with STM32F1.
2014-02-25 11:53 AM
What is LDR?
JW2014-02-25 12:08 PM
Light Dependent Resistor
2014-02-25 04:13 PM
''i'm a beginner in STM32''
Do you have any experience with any other microcontroller(s)?Do you understand basic electronics?''can someone give me an example of how to use the LDR with STM32F1''Have you looked at the examples included with the Standard Peripheral Library?2014-02-26 12:56 AM
> Light Dependent Resistor
Ah thanks. So this is how photoresistors are called these days... :) One learns something new every day. Quick googling revealed that there is some - as you say - LDR on some of the EVAL boards, e.g. http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1199/PF259717 , so I guess the accompanying software might contain some examples... JW2014-02-26 01:58 AM
Hi
Follow what Jan says. I just wanted to add that you need to study the circuit for the LDR from the demo project, this is NOT just software! I guess the LDR is being used in a resistor divider. What are you trying to do? Just detect light/no light OR Read the amount of light? The former is quite easy - look up 'threshold' The latter is a lot harder. You need to understand the LDR characteristics, where the linear region is.2014-11-24 10:42 AM
Thanks for your replies,i did like you said i had a long time reading the manuals and now i got a working program,thanks again.