Please share example .ino with multiple DS18B20?

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Re: Please share example .ino with multiple DS18B20?

Post by michap »

See my post about this new code today:
michap wrote:For debugging via USB edit the line
#define MY_SERIAL Serial
I see still the old line in your code....

#define MY_SERIAL Serial0

Michael
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Please share example .ino with multiple DS18B20?

Post by PoltoS »

DS18B20Scanner is a demo sketch that demonstrates how to read values from multiple DS18B20. You can add multiple Z-Wave channels to it to make what you want. We will make such an example soon.

As for absense of debug output please note the line:
#define MY_SERIAL Serial0
This is UART0. As mentioned by michap, change it to have output in USB:
#define MY_SERIAL Serial
n0ir
Posts: 21
Joined: 17 Nov 2016 16:17

Re: Please share example .ino with multiple DS18B20?

Post by n0ir »

Yeah, I didn't understand much of that. I think I'll just wait for the example sketch...
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Re: Please share example .ino with multiple DS18B20?

Post by michap »

n0ir wrote: I think I'll just wait for the example sketch..
you can try this one (for 2.0.7 only):
z-uno-3_18B20.zip
(1.01 KiB) Downloaded 383 times
Michael
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Please share example .ino with multiple DS18B20?

Post by PoltoS »

We have published on the web site an example: http://z-uno.z-wave.me/examples/multipl ... e-sensors/
Post Reply