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

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
pplotton
Normal user
Posts: 6
Joined: 27 Nov 2018, 13:00

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

#1 Post by pplotton » 27 Nov 2018, 13:20

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
Attachments
esp8266-wemos-d1-mini-GPIO.png
esp8266-wemos-d1-mini-GPIO.png (616.67 KiB) Viewed 1195 times
Montage.jpg
Montage.jpg (1.3 MiB) Viewed 1195 times
Main2.jpg
Main2.jpg (1.8 MiB) Viewed 1195 times
Logs.jpg
Logs.jpg (129.98 KiB) Viewed 1195 times
Device.jpg
Device.jpg (58.16 KiB) Viewed 1195 times
Config2.jpg
Config2.jpg (1.84 MiB) Viewed 1195 times

User avatar
grovkillen
Core team member
Posts: 3152
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

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

#2 Post by grovkillen » 27 Nov 2018, 13:36

You're using a very old version of ESP Easy.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

pplotton
Normal user
Posts: 6
Joined: 27 Nov 2018, 13:00

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

#3 Post by pplotton » 27 Nov 2018, 13:55

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

Domosapiens
Normal user
Posts: 280
Joined: 06 Nov 2016, 13:45

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

#4 Post by Domosapiens » 27 Nov 2018, 15:55

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?
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

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

#5 Post by papperone » 27 Nov 2018, 16:14

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).
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

Shardan
Normal user
Posts: 1105
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

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

#6 Post by Shardan » 27 Nov 2018, 20:02

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.
Regards
Shardan

pplotton
Normal user
Posts: 6
Joined: 27 Nov 2018, 13:00

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

#7 Post by pplotton » 28 Nov 2018, 10:17

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
Attachments
Screenshot_20181127-212337_Chrome.jpg
Screenshot_20181127-212337_Chrome.jpg (131.31 KiB) Viewed 1145 times
Screenshot_20181127-212301_Chrome.jpg
Screenshot_20181127-212301_Chrome.jpg (74.29 KiB) Viewed 1145 times
Screenshot_20181127-212102_Chrome.jpg
Screenshot_20181127-212102_Chrome.jpg (72.71 KiB) Viewed 1145 times
Screenshot_20181127-212033_Chrome.jpg
Screenshot_20181127-212033_Chrome.jpg (101.45 KiB) Viewed 1145 times
20181127_080914.jpg
20181127_080914.jpg (487.52 KiB) Viewed 1145 times

Shardan
Normal user
Posts: 1105
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

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

#8 Post by Shardan » 28 Nov 2018, 14:32

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.
Regards
Shardan

Domosapiens
Normal user
Posts: 280
Joined: 06 Nov 2016, 13:45

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

#9 Post by Domosapiens » 28 Nov 2018, 17:01

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
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

pplotton
Normal user
Posts: 6
Joined: 27 Nov 2018, 13:00

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

#10 Post by pplotton » 28 Nov 2018, 17:27

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

pplotton
Normal user
Posts: 6
Joined: 27 Nov 2018, 13:00

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

#11 Post by pplotton » 28 Nov 2018, 20:58

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

Domosapiens
Normal user
Posts: 280
Joined: 06 Nov 2016, 13:45

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

#12 Post by Domosapiens » 28 Nov 2018, 22:03

Top :D
You can close the subject :mrgreen:
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

pplotton
Normal user
Posts: 6
Joined: 27 Nov 2018, 13:00

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

#13 Post by pplotton » 29 Nov 2018, 07:18

I would like but not found how... thx

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests