LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino and Dallas DS1820 (one-wire)

Solved!
Go to solution

Wohoooooooooo, yes that was it. I deleted the files you named and Arduino verified completely correct. http://www.jogibaeruniverse.de/kolobok/angeldevil.gifI searched the code the hole time for the duplicates, not the directories. Thank you very much to both of you! http://www.jogibaeruniverse.de/kolobok/smile.gif

Message 101 of 172
(2,593 Views)

Hey all,

I've just had to make a printed circuit board to connect up to12 of the Dallas DS1820's to an Arduino Uno.  (I actually get the first board tomorrow).  Nice sturdy connectors and there are also screw terminals for some of the other Arduino connections, etc.  I don't want to get too much into the details just yet.  What I would like to know is if anyone else is interested in buying some.  I'm not looking at making any money (well, maybe a little).  So... anyone interested?

Thanks.

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 102 of 172
(2,593 Views)

Matt,

I'd be interested in one.  I have about 4 - 6 sensors I'm going to need for my brew rig.  Screw terminal connections for both the sensors and the link back to the Arduino or is it more like a shield?

0 Kudos
Message 103 of 172
(2,593 Views)

I'll post some pics as soon as I put it together.. probably this weekend.  It's supposed to come in tomorrow.  Hopefully, it will work right away (crosses fingers).

The Arduino is going to mount directly on the board.  The pins on the board will connect to the Arduino (so no wires between the Arduino and the board).  The temp sensors will have a nice sturdy (but cheap) connector... I'll post the part number for that, too.

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 104 of 172
(2,593 Views)

After I got so much help here, I want to share my working VI together with the Arduino Firmware which I had never get done without your help, Nathan and PentairDave. The only thing is that I get error 5003 sometimes, but I don't know the reason, this doesn't help. Next step is adding more sensors.

temp.jpg

Download All
0 Kudos
Message 105 of 172
(2,593 Views)

Here is the official documtation for that errors:  http://digital.ni.com/public.nsf/allkb/8D47D6C48D0ABA0A86257884007035F1.  Having just skimmed over this document and your block diagram, I see that your baud rate does not match the default baudrate for the Arduino Mega 2560.  The default baudrate is 9600 (unless you changed it in the firmware).

Also, you typically should open Init the Arduino before the loop starts and then close the Arduino after the loop finishes.

0 Kudos
Message 106 of 172
(2,593 Views)

hi all,

anybody worked with more than one sensor?

regards

0 Kudos
Message 107 of 172
(2,593 Views)

Hello Riky,

Actually, I was going to post something about that this weekend.

I have a board that can accommodate up to 12 sensors.  Everything worked fine until I got up to 5 sensors (using the sketch you can download from this thread).  I wrote a couple of additional commands (one to report the address of the sensor at index 0 and the other to report the temperature of a sensor at a given address).  These functions also worked well.  Once I got above 5 (or sometimes 6), nothing worked.  I could talk a lot about the different resistors we tried and the o-scope traces, but I'm not going to bore you with all of the details.  Because...

I was fortunate to be working across the street from the Maxim facility that supports this sensor (really!).  They were great and helped me debug the problem.  The conclusion was that the problem was in the software, probably in the Dallas Temperature library.  With Maxim's help, I wrote a simple sketch that worked fine but did *not* use that library -- just the onewire library.  The sketch that I wrote simply sends a text block with the address and temperature of each sensor it detects.  If you want, I'll post that sketch (but not until this weekend).  I'll also post pictures of the board and if you want, I will sell them to you -- not trying to make money on it.  It's really nice because the Arduino mounts directly on the board...

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 108 of 172
(2,593 Views)

Sry for my double post but I just want to share the video which shows where the error starts. Anyway, it didn't help me to identify my fault but maybe somebody of you.

http://www.youtube.com/watch?v=rkmu5e6CMXc&feature=youtu.be

0 Kudos
Message 109 of 172
(2,593 Views)

I tried to solve my 5003 problem but I don't get it. My VI works for some seconds and I used some of the ideas by DavePW but I dont know what's my fault.

Anyway, here is the picture, see also attached files and a video. I would be very happy if somebody could help me.

I used this way to read the sensor address of the DS18B20 sensors. http://www.hacktronics.com/Tutorials/arduino-1-wire-address-finder.html

Videolink: http://www.youtube.com/watch?v=rkmu5e6CMXc&feature=youtu.be

123.jpg

0 Kudos
Message 110 of 172
(2,593 Views)