![:D](http://forums.netduino.com/public/style_emoticons/default/biggrin.png)
![Photo](http://www.gravatar.com/avatar/a3d48087bab5f34c869ee3d5afaafc79?s=100&d=http%3A%2F%2Fforums.netduino.com%2Fpublic%2Fstyle_images%2Fmaster%2Fprofile%2Fdefault_large.png)
A project suggestion - for Netduino, Plus, or mini.
#1
Posted 22 December 2010 - 09:52 PM
![:D](http://forums.netduino.com/public/style_emoticons/default/biggrin.png)
#3
Posted 22 December 2010 - 10:45 PM
Edit 2011-02-18: Removed the attachment, please refer to the original OneWire post - the archive published there also contains firmware binaries.Project suggestion # 1: Read a DS18B20 sensor.... And it seems to me that between four or five folks on here, it would be quick and simple.
Please note the timing of 1-Wire functions is based on code generated by RealView compiler, it has to be adjusted for other compilers. Additionally, it relies on slow timer and duration of pin state change functions for short delays that slow timer cannot handle, because I was not able to properly calibrate the existing HAL microsecond delay functions.
Enjoy
![Posted Image](http://forums.netduino.com/public/style_emoticons/default/smile.gif)
#4
Posted 23 December 2010 - 12:25 AM
#5
Posted 23 December 2010 - 01:24 AM
#6
Posted 23 December 2010 - 09:29 AM
Yes, of course.I know what you're saying, and I can follow most of the code, but if I'm not comfortable doing that, many others are not going to be either. If I start some questions based on your initial answer, would you help me with some explanations ?
#7
Posted 23 December 2010 - 02:24 PM
So, what to do in the interim. I liked the solution of the Anderson RS232/Onewire converter, but you know, how is that really different or much cheaper, than just buying a Arduino to use with the Netduino? But look at the beginner out there, the first thing he reads is he needs to go out and buy an Arduino, after he's made the choice to go with a Netduino !!
From what I've been reading, OneWire is actually really hard. The timings are very precise. Even the Adruino playground references Dr. Anderson's chip as an alternative that "reduces the workload inside the Arduino". Some sort of interrupt or other delay in the middle of it and you're sunk.
Although I might just be trying to justify my purchases to myself.
![:o](http://forums.netduino.com/public/style_emoticons/default/ohmy.png)
#8
Posted 24 December 2010 - 05:54 PM
From what I've been reading, OneWire is actually really hard. The timings are very precise. Even the Adruino playground references Dr. Anderson's chip as an alternative that "reduces the workload inside the Arduino". Some sort of interrupt or other delay in the middle of it and you're sunk.
Although I might just be trying to justify my purchases to myself.
I've been bouncing around on my thoughts on this one. Part of me started to be a purist, and stay with the Netduino. Then I ordered the package from PhAnderson, for a couple reasons: one, it's under $10 bucks, and two, I was curious. Go read his site, and you can't help but be intrigued!
A week later, I received a small envelope with a sheet of paper, and a plastic envelop inside. I'm at that stage now. You can service 6 DS18B20s with it. As soon as I get my focus back on the hardware end, I'll give it a spin. Upside says it's cheaper than buying an Arduino, and doesn't seem that it will use more I/O pins on the Netduino.
When you say the OneWire is actually really hard, I chuckled. All the more reason to get it running! But, it made me think , is it really hard, or is it a matter of reliablity and stability ? I'd love for some input from others. I tend to build stuff and forget about it. Is OneWire going to be more, or less. stable with different methods?
It does require soldering. And that apparently stops some folks. It shouldn't but I understand the apprehension.
#9
Posted 31 December 2010 - 03:21 AM
I've been bouncing around on my thoughts on this one. Part of me started to be a purist, and stay with the Netduino. Then I ordered the package from PhAnderson, for a couple reasons: one, it's under $10 bucks, and two, I was curious. Go read his site, and you can't help but be intrigued!
A week later, I received a small envelope with a sheet of paper, and a plastic envelop inside. I'm at that stage now. You can service 6 DS18B20s with it. As soon as I get my focus back on the hardware end, I'll give it a spin. Upside says it's cheaper than buying an Arduino, and doesn't seem that it will use more I/O pins on the Netduino.
When you say the OneWire is actually really hard, I chuckled. All the more reason to get it running! But, it made me think , is it really hard, or is it a matter of reliablity and stability ? I'd love for some input from others. I tend to build stuff and forget about it. Is OneWire going to be more, or less. stable with different methods?
It does require soldering. And that apparently stops some folks. It shouldn't but I understand the apprehension.
Were you able to get the OneWire controller working, I also ordered it, but I found the "schematic" less than useful.
When you talk EE use small words, I'm just a Software Developer
My Blog/Site and Everything Else
If my post helped you please consider pressing the "Like This" button in the bottom right-hand corner.
Oh my. So many things, so little money!!
#10
Posted 31 December 2010 - 05:32 AM
#11
Posted 31 December 2010 - 02:14 PM
#12
Posted 31 December 2010 - 05:29 PM
I can see why using the USB when debugging is a problem, but what the code is running without debuging, why can't we use the USB back to a WIndows program?
Actually, you can...it's just tricky. [A community member sent us a sample which turns the Netduino into a mouse of sorts...but then you have to get it back into "debugging mode".]
We've also created an HID comm channel which will work nicely; we'll release it once the Atmel USB glitch is fixed...and then it will be pretty straightforward.
Chris
#13
Posted 18 February 2011 - 05:03 PM
#14
Posted 18 February 2011 - 05:30 PM
Well, the attachment does not contain the firmware binaries, because it is based on rather old source code revision (4.1.0.3), which does not include certain features that are currently under development (e.g. PWM) and also all the bug fixes. If you are interested, I can build it and send it to you, if you don't mind the limitations.I am attempting to give this latest one-wire firmware a run. I am confused because the ER_CONFIG and ER_FLASH files appear to be missing from the attachment in this thread.
#15
Posted 18 February 2011 - 05:48 PM
#16
Posted 18 February 2011 - 08:25 PM
Unfortunately, it is not possible to use any 1-Wire functions with the stock firmware, because it does not contain the native driver. The old firmware will not work with the new source, because assemblies differ (the new one contains more functions), you will get 'invalid checksum' error during deployment.I guess my confusion goes one layer deeper. I am trying to utilize your latest improvement attached in this thread, most notable search. In order to do that I thought I needed to deploy a special build of the firmware. Is it possible to use the search function with the stock firmware? Do the ER_CONFIG and ER_FLASH in the other thread work with the solution in this thread?
I have updated the original OneWire post, the attached archive now contains firmware binaries.If I do need a firmware version that is not present in the forums I would greatly appreciate if you could attach it here.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users