sonoff wifi / analog input
Moderators: grovkillen, Stuntteam, TD-er
sonoff wifi / analog input
Hardware: Sonoff WIFI (without 433MHz module)
Software: ESP Easy Version v2.0.0-dev7
I have configured a device as 'Analog Input' and it gives me readings between 31 and 38 throughout the day.
Since the device is supposed to run on 3.3V, my guess is, that this is Vcc * 10? As the device is in use, I can not
check if there is anything wired to pin A0. According to the official schematics, the pin is not connected?!
Just in case someone on here has also installed v2 on this hardware, please create an 'Analog Input' device
and let me know what - if any - your acquired values are.
Tnx,
data
I have been feeding [%value%/10] to domoticz:
Software: ESP Easy Version v2.0.0-dev7
I have configured a device as 'Analog Input' and it gives me readings between 31 and 38 throughout the day.
Since the device is supposed to run on 3.3V, my guess is, that this is Vcc * 10? As the device is in use, I can not
check if there is anything wired to pin A0. According to the official schematics, the pin is not connected?!
Just in case someone on here has also installed v2 on this hardware, please create an 'Analog Input' device
and let me know what - if any - your acquired values are.
Tnx,
data
I have been feeding [%value%/10] to domoticz:
- Attachments
-
- sonoff-Wifi-Analog_Input-Vcc.jpeg (37.76 KiB) Viewed 13608 times
Re: sonoff wifi / analog input
Yes, I pin is floating, you are not measuring an sensor but EM noise. If you need to measure analog with sonoff you need to use i2c analog expanderdata wrote: ↑01 May 2017, 23:48 Hardware: Sonoff WIFI (without 433MHz module)
Software: ESP Easy Version v2.0.0-dev7
I have configured a device as 'Analog Input' and it gives me readings between 31 and 38 throughout the day.
Since the device is supposed to run on 3.3V, my guess is, that this is Vcc * 10? As the device is in use, I can not
check if there is anything wired to pin A0. According to the official schematics, the pin is not connected?!
Just in case someone on here has also installed v2 on this hardware, please create an 'Analog Input' device
and let me know what - if any - your acquired values are.
Tnx,
data
I have been feeding [%value%/10] to domoticz:
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: sonoff wifi / analog input
So, this means it is 'receiving' approx. 0.1V noise?!
Re: sonoff wifi / analog input
Yes, the pin is definitely not connected, I opened it. There are no traces going to the a0 of esp chip. If you need analog on sonoff u need to be either be a soldering guru (soldering to chip) or use the i2c analog expander (see wiki). You can switch off serial and use rx tx pins (gpio 1+3) a i2c ports
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: sonoff wifi / analog input
No according to your post it is rather 0.05v as a0 of esp is 0-1V only. Wemos and nodemcu have voltage deviders to reduce 3.3v to 1v
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: sonoff wifi / analog input
Thank you, I know how to use i2c.
I was just curious since I got values > 0 on the sonoff.
I was just curious since I got values > 0 on the sonoff.
Re: sonoff wifi / analog input
If you want to use the ADC of a Sonoff switch you have to modify the source and compile it yourself.
Look for this line in the main program module:
and change false to true.#define FEATURE_ADC_VCC false
That wil enable the internal connection so you can measure Vcc of the ESP.
Device is of type System Info and Indicator is Input Vcc.
Re: sonoff wifi / analog input
Just an addition, you can then only use ADC to monitor Vcc. You still can NOT connect an external Analog devicecosto wrote: ↑03 May 2017, 16:06If you want to use the ADC of a Sonoff switch you have to modify the source and compile it yourself.
Look for this line in the main program module:and change false to true.#define FEATURE_ADC_VCC false
That wil enable the internal connection so you can measure Vcc of the ESP.
Device is of type System Info and Indicator is Input Vcc.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Who is online
Users browsing this forum: No registered users and 21 guests