DS18B20

Everything about programming the platform and using the Waspmote API
libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: DS18B20

Post by libelium-dev » Tue Jul 19, 2016 8:33 am

Hi jhh,

We can't confirm if this will have any unexpected side effects but there should not be any problem.

Regards

jhh
Posts: 9
Joined: Tue Nov 24, 2015 2:49 pm

Re: DS18B20

Post by jhh » Tue Jul 19, 2016 11:12 am

Why haven't this been changed in the API, a problem that has been around since v010!? I thought the ds18b20 was a pretty common sensor? May the changes in the delayMicroseconds command effect other serial sensors as the sensirion or RS232 interface?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: DS18B20

Post by libelium-dev » Wed Jul 20, 2016 3:48 pm

Hi,

We will study the case to know why this change has not been include in the API.

Regards

ahario
Posts: 1
Joined: Mon Aug 15, 2016 4:58 am

Re: DS18B20

Post by ahario » Mon Aug 15, 2016 5:06 am

Thank you!

After modifying wiring.c everything work as expected.

Please do update the API.

My initial thought is that there is a wiring problem in P&S board.

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: DS18B20

Post by libelium-dev » Tue Aug 16, 2016 10:38 am

Glad to hear you solve it!

We keep in mind this change for our next API release.

Regards

LWMsensoren
Posts: 2
Joined: Wed Jan 14, 2015 3:43 pm

Re: DS18B20

Post by LWMsensoren » Wed Aug 24, 2016 1:46 pm

Our ds18B20 is connected to connectorC from new plug and sense smart agriculture and outputs generally -1000 or 85 or -0.06 and occasionaly a realistic temperature.

Can u explain me how to make changes to wiring.c or give me another simple work around?

Is the new api automaticly downloaded as explained in the waspmote_ide_user_guide?
However, I see version v23 is available and i have ide version 04 and api version 012.

If not automatic, how to change this manually?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: DS18B20

Post by libelium-dev » Wed Aug 24, 2016 4:54 pm

Hi,

What OS you use?

You can download the last API v023 in the following link
http://www.libelium.com/development/was ... NLB-251115

On folder /waspmote-pro-ide-v04-[your OS] delete the folders /examples and /libraries and add the folders /examples and /libraries that you have downloaded.

On folder /waspmote-pro-ide-v04-[your OS]/hardware/waspmote/cores delete the folder /waspmote-api and add the folder /waspmote-api that you have downloaded.

Regards.

mustika
Posts: 5
Joined: Tue May 20, 2014 7:21 pm

Re: DS18B20

Post by mustika » Thu Jan 26, 2017 5:50 am

Hi,

I have the same problem even using the last API v026, waspmote-pro-ide-v05, and using Agriculture Sensor Board Pro. Using or without using 4K7 pullup resistor the result is always -1000. How to fix the problem reading DS18B20 using API v026?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: DS18B20

Post by libelium-dev » Thu Jan 26, 2017 8:49 am

Hi,

Are you working with Waspmote v12? How do you connect the sensor?

Please try replacing the WapsOneWire.cpp library with this one,
http://www.libelium.com/forum/libelium_ ... neWire.zip

Regards

mustika
Posts: 5
Joined: Tue May 20, 2014 7:21 pm

Re: DS18B20

Post by mustika » Thu Jan 26, 2017 7:08 pm

Hi libelium-dev,

Agriculture sensor board PRO is not compatible with Waspmote v1.2 isn't it? I am using Waspmote v1.5 with Agriculture board PRO. The sensor is connected with pin 10 (DS18B20), pin 11 (gnd) and pin 12 (3.3v). 4K7 pull-up resistor is used. Should I replace WapsOneWire.cpp in API 026? Which example I can use since I only found this example http://www.libelium.com/development/was ... r-reading/

By the way, I ordered 7 Agriculture sensor board v3.0. However, I found 2 version of pin tag in the board. The first one is the same as Agriculture sensor board 3.0 documentation where pins 10, 11 and 12 are TMP, GND, and 3V3 respectively. The second version board is slightly different: Pins 10, 11, 12, and 13 are RF3V, GND, TMP, and 3V3. Could you please to explain about this?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest