capteur ds12b20

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
voir64
New user
Posts: 6
Joined: 10 Jan 2020, 14:56

capteur ds12b20

#1 Post by voir64 » 03 Nov 2020, 15:53

bonjour,
je n'arrive pas à avoir d'adresse ni de température sur un wemos .J 'ai changé 5 fois de sondes et 3 fois de wemos, plusieurs port gpio et toujours 0.0.0.0......
si j'essaye les sondes avec un arduino nano j'ai bien et l 'adresse et la température ,J'ai vérifié avec un oscilloscope je vois bien un signal carré sur le fil de data passer dans ses conditions.
Avec esp easy calme plat à 3.3 volts .
Quelqu'un pourrait me dire quel genre de signal je devrais voir sur le gpio
J'ai essayé même de mettre en parallèle le signal du nano et du wemos sur le D5 dans ce cas la je vois bien un signal sur le gpio 14 mais rien en port et en valeur.
Que dois-je faire ?

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: capteur ds12b20

#2 Post by TD-er » 03 Nov 2020, 16:02

Have you tried using a pull-up resistor?

See: https://www.letscontrolit.com/wiki/inde ... as_DS18b20

voir64
New user
Posts: 6
Joined: 10 Jan 2020, 14:56

Re: capteur ds12b20

#3 Post by voir64 » 03 Nov 2020, 16:43

oui bien sur j'ai mis une résistance de 4.7 ko.
J' ai aussi essayé en mettant plusieurs capteurs en parallèle.
J' ai remarqué que dans l'adresse avec le nano il n'y a pas tous les bits par exemple :28.df.94.39.85.0.f5 normal?

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: capteur ds12b20

#4 Post by ThomasB » 03 Nov 2020, 18:59

Could someone tell me what kind of signal I should see on the gpio
The one-wire communication will occur only during a device measurement (example: when a read is requested). So seeing the brief data transmission is best done with a digital o-scope or logic analyzer.
I even tried to put the signal of the nano and the wemos in parallel on the D5 in this case I can see a signal on the gpio 14 but nothing in port and value.
You didn't post screenshots or provide enough information. So I have to ask some basic questions:
- Is the device task enabled? Confirm the checkbox is set.
- Are you using the latest Mega Release? The "official" R120 release is buggy when using one-wire devices, so use the latest Mega from the Github Releases page.
- Did you try a power cycle after submitting the device settings? Sometimes this hard reset will help the one-wire device when it is hanging the bus.
I also tried by putting several sensors in parallel.
For testing, start with only one sensor using very short cable length (<10cm). After it is confirmed working you can methodically advance the testing by adding more one-wire sensors and/or longer wires.
28.df.94.39.85.0.f5 normal?
A single sub-digit ID position is possible. That is because leading zeros are suppressed. In other words,

Code: Select all

28.df.94.39.85.0.f5
is the same as

Code: Select all

28.df.94.39.85.00.f5
- Thomas

voir64
New user
Posts: 6
Joined: 10 Jan 2020, 14:56

Re: capteur ds12b20

#5 Post by voir64 » 04 Nov 2020, 09:52

merci pour toutes ses precisions.
J'ai essaye avec la version mega 2.0.0 et avec la version 120.
Je vais donc chercher la derniere version mega et refaire des essais.
merci

voir64
New user
Posts: 6
Joined: 10 Jan 2020, 14:56

Re: capteur ds12b20

#6 Post by voir64 » 04 Nov 2020, 22:22

ET VOILA ! ça marche
avec la version 20111 aucun problème impeccable merci pour votre aide.

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: capteur ds12b20

#7 Post by TD-er » 04 Nov 2020, 23:39

Please note that the "20111" is not referring to the actual build, but it is referring to the internal settings file version. (which I should change to reflect a date, not an internal arbitrary number)

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests