LDR example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-02-25 11:53 AM
What is LDR?
JW- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-02-25 12:08 PM
Light Dependent Resistor
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-02-25 4: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?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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... JW- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-02-26 1: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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
