Arduino Forum

Using Arduino => Sensors => Topic started by: trancedus1 on Oct 19, 2017, 12:23 am

Title: Sensor calibration
Post by: trancedus1 on Oct 19, 2017, 12:23 am
I tried to use the example->analog->calibration.
I wanted to make my LED to dim by using photoresistors.
Like when i enter calibration mode while holding down the button, it should indicate a bright yellow light. I also determined min and max values for the sensors readings...

i tried with this code but doesnt work: https://pastebin.com/frJS1jy6
someone help
Title: Re: Sensor calibration
Post by: PaulS on Oct 19, 2017, 11:11 am
If you want help on the rubbish bin site, post your question there.

If you want help here, post your code HERE in code tags!

"it doesn't work" tells us NOTHING. The code does SOMETHING. Tell us what it actually does.

You expect it to do something. "calibrate a sensor" doesn't tell us near enough.
Title: Re: Sensor calibration
Post by: MarkT on Oct 19, 2017, 12:08 pm
In other words read the instructions for how to post here in the sticky threads, then we won't be
wasting everyone's time...