Analog Input
Moderators: grovkillen, Stuntteam, TD-er
Analog Input
I've set up an analog input
Is it normal?
If I choose the calibration my result is not good...
and when there is no input the value measured is 7 instead of 0Is it normal?
If I choose the calibration my result is not good...
Re: Analog Input
What .bin file do you have installed on that unit? If it has VCC in its name, then the analog input is configured to measure the voltage fed to the ESP, and you can't use it for other purposes.
/Ton (PayPal.me)
Re: Analog Input
You can set the lower value of the calibration for value 7 to be calibrated to 0.
But to be able to explain why it reports "7" as lowest value, I guess we must see how it is connected.
Can you measure the voltage applied when there is no input?
Is it a single wire, with nothing connected to it?
But to be able to explain why it reports "7" as lowest value, I guess we must see how it is connected.
Can you measure the voltage applied when there is no input?
Is it a single wire, with nothing connected to it?
Re: Analog Input
ESP_Easy_mega_20210503_normal_ESP8266_4M1Mbin file do you have installed
with nothing connected for a test => 8see how it is connected
with a battery connected max: 1,3V -> 426 or 225 on A0 (issue with electrical contact?)
min: 0V -> 7 on A0
log
Code: Select all
8289: EVENT: Hauteur#Analog=439
9227: EVENT: Hauteur#Analog=438
66181: EVENT: Hauteur#Analog=198
125083: ADC : Analog value: 7 = 7 (539 samples)
125800: EVENT: Hauteur#Analog=7
185028: ADC : Analog value: 225 = 225 (558 samples)
185970: EVENT: Hauteur#Analog=225
1265241: EVENT: Hauteur#Analog=439
Re: Analog Input
Which pin is connected to the middle pin and which to the + of the battery?
Looks a bit odd that the + of the battery and the middle pin of the potentiometer is connected.
Looks a bit odd that the + of the battery and the middle pin of the potentiometer is connected.
Re: Analog Input
it's like this
-
- Normal user
- Posts: 24
- Joined: 11 May 2020, 17:01
Re: Analog Input
That's not going to work, all the pot is doing is putting resistance in series with the ground, which probably has quite a high impedance. The pot needs to be connected between the voltage source and 0v with the traveller connected to A0.
Re: Analog Input
Thanks for your reply.
I think, in the end, I did it like you said
I think, in the end, I did it like you said
Who is online
Users browsing this forum: No registered users and 90 guests