Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Photo resistor led project help.

$
0
0

Hello, 

So to start off I have little to no background in programming or wiring.

However I am working a project that will require this controller (MSP 430G2553) to either turn on the red led (when its dark) or the Green led (when it is bright) and at ambient light do nothing.

I have some components 

1 photo resistor

some jumper wires

a breadboard 

and some extra 1k and 10k resistors. 

I was wondering how I can have the controller acquire the resistance of the photo resistor and then turn on the red or green led.  I have taken some measurements with a ohm meter and got that 

Dark is greater than (20k OHM)

Bright is less than (4K OHM)

ambient is 6-10k OHM (but for this project I think ambient or "do nothing" can range from 4-20k OHM

Anyways I was hoping to get some tips for coding and wiring this project. Thanks!


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>