Page 1 of 1

[solved] ESP8266(ESP-12E) et DS18B20 error

Posted: 27 Nov 2018, 13:20
by pplotton
Bonjour à tous, j'ai lu qu'on pouvait posté sur ce forum en français, donc je tente ma chance ... Tout nouvel utilisateur du firmware espeasy R120 sur un module ESP8266 (ESP-12E) D1 mini, je souhaite fabriquée une sonde de température afin de rentrer dans ce nouveau monde pour moi ... (et ensuite commencer mon vrai projet une sonde double pour T°c piscine + T° c extérieure dans une solution domotique : JEEDOM ) . Mais ça on verra dans un deuxième temps car pour le moment je n'en suis pas là ...
Voici un résumé :
J'ai réalisé à l'aide d'une breadboard, une résistance 4,7k, quelques fils Dupont,mon module D1 mini et une sonde étanche DS18B20 un montage que l'on trouve beaucoup sur internet.
Voici en grande lignes les étapes effectuées :
Etape 1 - Flasher mon ESP-12E avec espeasy --> Aucun pb
Etape 2 - Intégrer à mon réseau wifi --> Aucun pb
Etape 3 - réalisation du montage --> fait
Etape 4 - Paramétrage ESPeasy --> Fait sauf que quand je sélectionne le GPIO-2 (=D4 sur D1 mini) -->aucune adresse MAC de ma sonde n’apparaît
Etape 5 - Visu des logs --> erreur DS : Temperature: Error! (0-0-0-0-0-0-0-0)

J'ai fait et refais le montage, le paramétrage espeasy,
J'ai également repris à 0 avec une deuxième carte identique et une deuxième sonde identique et j'ai exactement le même résultat.

Si vous pouvez me dire ce que j'ai mal fait ? car je ne sais plus ou chercher ...

Merci beaucoup pour votre aide, ci joint la photo du montage, le croquis du d1-mini et les capture d'écran des différents onglets ESPEASY. N’hésitez pas à me contacter si il vous manque des infos

Bonne journée

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 27 Nov 2018, 13:36
by grovkillen
You're using a very old version of ESP Easy.

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 27 Nov 2018, 13:55
by pplotton
Ok when i search for my project, i go to this page :
https://www.letscontrolit.com/wiki/index.php/ESPEasy
and found R120 firmware ... current stable version

Can you send me a link for new version ?

I found mega version and V2.0 version, what is the différence and which version is for my D1 mini (ESP-12E) ?

https://github.com/letscontrolit/ESPEasy/releases

Release mega-20181127 is the last one ?



thank you very much for you help, i try to upgrade my espeasy and test again my project.

Thx and sorry for my poor english :-)

Have a googd day

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 27 Nov 2018, 15:55
by Domosapiens
D4=GPIO2 is a more complicated port, used at boot (has internal Pull-Up)
Try to start with simple ports that should work:
D5=GPIO14
or
D6=GPIO12
or
D7=GPIO13

There are a number of problems reported with "fake" Wemos D1 mini's and the 5V to 3V3 conversion (minimalistic design).
Make sure you use a strong power supply and in case of USB, a good cable.
Add an ElCo of 47uF close to the DS18B20 connection between Vcc and GND (check ElCo polarity!)

I'm not sure if your pull-up resistor is 4K7 it looks like 4K (no problem), you can lower it for test to 2K2
Is the yellow wire connected correctly?

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 27 Nov 2018, 16:14
by papperone
I think you should power the sensor with 3V3 and not 5V, you can damage ESP8266 gpios (despite someone says it's doable, espressif datasheet states gpios are 3v3 tolerant).

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 27 Nov 2018, 20:02
by Shardan
Hello,

did you chose a DS18B20 at all?

1Wire is a bit different with configuration. You may have several devices on one data line.

So with setting up a task for the sensor it needs two setup steps.
First set up a task for DS18B20 as you already did.
Save it, maybe restart the ESP/WeMos a with the old version

Then edit the task again, look for "Device Nr", open the menu.
It should present a xx-xx-xx-xx-xx-xx-xx-xx number, the "street number" of this device.
Click that number, save the task again.
You haven't chosen any device on the 1Wire bus atm, so you get "No Result from 00-00-00-00...."

If everything is connected correctly (TD-er is right, GPIO-2 isn't the best idea... 12,13,14 might work better),
you should get results.

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 28 Nov 2018, 10:17
by pplotton
Hello Friends an d thank you all for your help,

@Domosapiens: Is Azdelivery D1 mini fake wemos D1 mini ? https://www.amazon.fr/gp/product/B01N9R ... UTF8&psc=1

Yesterday after work I do some actions :

1 - Change the GPIO-2 to GPIO-13(D7) --> always same pb @Shardan and @Domosapiens, i select the GPIO-13, submit and reboot my d1-mini but no result ... always blank in Device Nr (Old and New firmware)
2 - Change the sensor from 5v to 3,3v --> always same pb @papperone
3 - do one more time the cabling --> always same pb
4 - Change Firmware to last one : mega 2018-1127 found on github , do the configuration in new interface --> always the same pb except that in log i don't have record with temperature error @Grovkillen

I read somehere that device resoltuion for DS18B20 is 12 Bit but i couldn't change 9 Bit, I change to 12 Bit and submit but when i return it'a always 9 bit, is it normally ?

Perhaps it's harware pb ? azdelivery d1 mini ? Waterproof ds18b20 (i used 2 different yesterday for the same result) ?

Is it possible to test :
D1 mini GPIO ?
Waterproof DS18B20 ?

Thanks for all, have a good day

Patrice

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 28 Nov 2018, 14:32
by Shardan
Hello,

I just did a quick check on breadboard:
- WeMos D1 mini
- firmware 1128 (last one)
- just a blank DS18b20 breakout

It worked just out of the box.
So I assume something is broken with your setup.

First thing ! suggest:
Do not trust breadboards! Do not trust the jumper cables!
I'm working with breadboards for long time now - they are indeed usefull but they cause alot of problems.
The cheap jumper cables tend to have no contact, another reason for many problems.

Use a multimeter and check if everything has connection!
Check from the WeMos-Pin to the screw terminal if all wiring has real connection.

If all parts are OK, it is very likely that some connection is missing.

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 28 Nov 2018, 17:01
by Domosapiens
Your board is not a Wemos, but a clone.

It has a a 4A2D voltage convertor (150mA) some work, some don't.
https://images-na.ssl-images-amazon.com ... L1500_.jpg
There seems to be good and bad suppliers from that chip.

I also recently experienced problems with a batch of #5 DS1B20
See also https://www.letscontrolit.com/forum/vie ... 088#p33267

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 28 Nov 2018, 17:27
by pplotton
Ok thank you all for quick and good help on this forum, today i order a true Wemos D1 mini V2 (https://www.ebay.fr/itm/152055978028)
and a new DS18B20 (no waterproof) for my test (https://www.ebay.fr/itm/112124583733)
I will test with this products and hope that i can't go to next step of my first projet.

I received near 5th december, a little week to stand... during this week, i try to test actual material (breadboard, "fake" wemos and waterproof DS18B20).

Thx

Patrice

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 28 Nov 2018, 20:58
by pplotton
Hello every body, just one word to tell you that i found the pb ... it's the bread board, I test all one by one and the same config, the same mounting without breadboard and all is ok... now i can go to step 2 : send to my automation software : Jeedom

My fisrt project is to make a connect sensor temperature for my swimming pool .... other problems in perspective :D (battery, waterproof ...)



thanks for all

Patrice

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 28 Nov 2018, 22:03
by Domosapiens
Top :D
You can close the subject :mrgreen:

Re: ESP8266(ESP-12E) et DS18B20 error

Posted: 29 Nov 2018, 07:18
by pplotton
I would like but not found how... thx

Re: [solved] ESP8266(ESP-12E) et DS18B20 error

Posted: 23 Sep 2019, 12:16
by Arbani
Merci pour ce sujet!