Electrodragon AI-Thinker battery powered sensor board

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
arjenw
Normal user
Posts: 10
Joined: 17 Jun 2016, 22:34

Electrodragon AI-Thinker battery powered sensor board

#1 Post by arjenw » 22 Jun 2016, 22:30

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

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: Electrodragon AI-Thinker battery powered sensor board

#2 Post by kr0815 » 23 Jun 2016, 07:56

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

arjenw
Normal user
Posts: 10
Joined: 17 Jun 2016, 22:34

Re: Electrodragon AI-Thinker battery powered sensor board

#3 Post by arjenw » 23 Jun 2016, 08:21

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

arjenw
Normal user
Posts: 10
Joined: 17 Jun 2016, 22:34

Re: Electrodragon AI-Thinker battery powered sensor board

#4 Post by arjenw » 04 Jul 2016, 08:33

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??

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Electrodragon AI-Thinker battery powered sensor board

#5 Post by costo » 04 Jul 2016, 18:40

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.

arjenw
Normal user
Posts: 10
Joined: 17 Jun 2016, 22:34

Re: Electrodragon AI-Thinker battery powered sensor board

#6 Post by arjenw » 04 Jul 2016, 22:11

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??

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Electrodragon AI-Thinker battery powered sensor board

#7 Post by costo » 06 Jul 2016, 15:49

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

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: Electrodragon AI-Thinker battery powered sensor board

#8 Post by kr0815 » 06 Jul 2016, 18:58

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

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 113 guests