Hi!I was wondering how to connect an LDR to an Attiny13A microcontroller in order to create a simple light sensor which detects light and makes a LED go on and off.Could somebody write a code for me and show me how to connect the parts?Thank you in advance!I just want to grasp how the analogRead works for Attiny.
@zerogravity:
Take a look here, everything you need is pretty much documented:
http://letsmakerobots.com/node/36698
As a general rule, forum members would not likely write your code for you... this is not in the spirit of education. It's the old give you a fish or teach you to fish thing.
Good luck
Ray
I will post my code a bit later and also an image that will show you how I have conected the parts. I really want to learn how to program the microcontroller to read the analog input.
I solved the problem!!!
I solved the problem!!! smiley
... Might have been nice for others with a similar issue if you has told how the problem was solved and shown the code you used to solve the problem - assuming you took the code route.
Forums are a two-way street...