Page 1 of 1
Electrodragon AI-Thinker battery powered sensor board
Posted: 22 Jun 2016, 22:30
by arjenw
Dear Forum,
I found this and i wanted to give it a try.
http://www.tinytronics.nl/shop/ESP8266- ... erijhouder
At first there was a problem flashing th ESP, but after getting the correct wiring on my FTDI232 i was able to flash ESPEASY on it with Node MCU Flasher.
Connecting to the wireless network was as as with other boards.
The Luminocity sensor configured into Domoticz with a blink of the Eye.
But... I searching now for the right setup to monitor my battery power.
Someone any idea on this??
Thanks for reading and replies in advance.
ArjenW
Re: Electrodragon AI-Thinker battery powered sensor board
Posted: 23 Jun 2016, 07:56
by kr0815
I use many of these boards, in my opinion a very good alternative to the NodeMCU
But the battery status you can´t monitor with it as it is - the board has a build-in voltage regulator that makes 3.3V, so the ESP doesn´t see the battery voltage directly
Another thing you may get problems:
When connecting Sensors like DS18B20, you have to remove the LED or Resistor of this GPIO
Re: Electrodragon AI-Thinker battery powered sensor board
Posted: 23 Jun 2016, 08:21
by arjenw
Thank you kr0815 for your reply and additional information.
For now if have a AM2302 temp and humidity sensor connected on GPIO-0.
Monitoring this in Domoticz is a pleasure measuring and registring information.
Do you know if its possible to disable the blue LED when the device is powered on?
with regards
ArjenW
Re: Electrodragon AI-Thinker battery powered sensor board
Posted: 04 Jul 2016, 08:33
by arjenw
Lux / luminocity sensor is not giving the right values.
There is a constant value of 54612 showed in Domoticz.
Is there a way to get this right configured??
Re: Electrodragon AI-Thinker battery powered sensor board
Posted: 04 Jul 2016, 18:40
by costo
You can monitor the battery.
You have to use the ADC pin, be sure no other components (LDR?) are connected to the ADC pin. Then use a resistor divider: 100k between ADC-pin and ground and 330k from ADC-pin to the V+ of battery.
Maybe with completely full battery the ADC measures full scale but when battery voltage drops you can measure the voltage. Just multiply it by ca. 4.3 to read real battery value. You need to check (calibrate) the multiplication factor with a known good voltagemeter for accuracy better than 5%-10%.
I had readings like 54612 with a lux meter before.
Maybe the sensor is not connected in the right way.
Check with I2C scanner if you see the sensor's I2C address, maybe data and clock are reversed. Use pull-up resistors of about 10k on data and clock.
Other reason may be that you keep the sensor in direct light. The sensor will give maximum value which is 54612. Keep the sensor away from direct light, use diffuse light or a filter.
Re: Electrodragon AI-Thinker battery powered sensor board
Posted: 04 Jul 2016, 22:11
by arjenw
Costo,
Thank for the advices given.
How can i find out if LDR is correct connect? My I2C-Scan gives no respons on GPIO-4 and GPIO-5, default config.
Is there any experience with this board concerning the GPIO for the LDR??
Re: Electrodragon AI-Thinker battery powered sensor board
Posted: 06 Jul 2016, 15:49
by costo
LDR will be connected somehow to the ADC-pin. Maybe by a jumper on a header or directly.
Either measure it with a multimeter or look at the traces.
I do not own this board so do your own investigations.
There are enough articles about this board on the web.
search like this:
https://www.google.nl/search?q=esp8266+ ... gA&dpr=1.2
Re: Electrodragon AI-Thinker battery powered sensor board
Posted: 06 Jul 2016, 18:58
by kr0815
On these boards, the LDR is connected to the ADC pin, but the resistors are wrong, so you don´t get changing values if you want to measure daylight
Add a 10KOhm Resistor between ADC Pin and +3.3V, then it should work