[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1710008 [View]
File: 15 KB, 1223x482, LightGraph.png [View same] [iqdb] [saucenao] [google]
1710008

could use some advice...
im using an ldr with a variable resistor to make a voltage divider, with the ouput going into an analogue pin on my micro-controller.
The problem im having is the range of light it detects. I currently have it 'tuned' to be around 15 in complete darkness (so i can better log night light from the moon and what not), but with this setting it will max out the analogue input just after dawn breaks. I can tune it so its more sensitive for the sun, but then it will read complete 0 as its setting. Ideally, id like a nice wide range with neither end capping.
Few restrictions - only have 1 analogue input on MC, so using a 2nd sensor isnt an option yet (my china order is still 1-2 months away, but i have analogue mux coming).

Any ideas? I have a feeling its a super simple fix, but cant quite put my finger on it.

Pic related is todays data so far. Not sure what caused the spike just before 1am, but almost certain it wasnt a voltage spike

Navigation
View posts[+24][+48][+96]