Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

bill.french's Content

There have been 260 items by bill.french (Search limited from 03-July 23)


By content type

See this member's


Sort by                Order  

#5508 What's the status of Onewire?

Posted by bill.french on 30 November 2010 - 01:20 AM in Netduino 2 (and Netduino 1)

Any suggestions on a chip? I'm having trouble finding anything. Closest I could find was this: DS2480B but DIP would be much easier for me. Thanks!



#5963 What's the status of Onewire?

Posted by bill.french on 10 December 2010 - 03:17 AM in Netduino 2 (and Netduino 1)

Got it working! http://forums.netdui...-using-onewire/



#6235 netduino+ Sous Vide Test Egg 1

Posted by bill.french on 19 December 2010 - 05:49 AM in Project Showcase

Can you post your PID code? What form are you using? (Ideal, parallel, etc)

LOL WUT?**

I am basically using a variation of this:
http://www.codeproje...ecipes/PID.aspx

...with the variation being for the integral i only remember the last 20 readings. At this point only P and I are doing much of anything, since the heating process is pretty slow, D doesn't really come into play very much with how I have it tuned currently.

**If you could direct me to a web page that explains pids and whatever ideal and parallel is, I would love to read it. Everything I've found (and there's quite a bit of it out there) seems to use technical vocabulary that I am not comfortable with. I feel like I've figured the essence of PIDs out, but it was a tough journey to wrap my mind around it since everything I was reading was not very approachable in my opinion.



#6267 netduino+ Sous Vide Test Egg 1

Posted by bill.french on 20 December 2010 - 01:36 AM in Project Showcase

Water circulation is definitely necessary. I didn't believe it at first, but the temperature differential between top,bottom, and middle of the water can be significant, as much as 5 degrees I was noticing, which is a big deal apparently, with hots spots at the bottom from the element, and a hot spot up top where the hot water rises. Also, the pot will set up pretty solid water currents from the convection, which now makes hot and cold spots horizontally. I do need to do something with the motor. I keep forgetting about that part of the project. Right now it's just a motor with the wand part of a baby bottle stirrer stuck on the end. It's super effective, too effective, really - it keeps moving the food around and sucks it into a votex and into the blades. An air bubbler would be easier, i think. I'm not quite at "version 1" yet, it's more proof of concept. I am going to now work pretty steadily towards etching my own PCB and get it into a shield form factor so that it will actually be usable and not require and hour of setup. Also, a lcd and interface are needed. Right now, changing the target temperature requires visual studio. I definitely want it to be easily multi-channel, as that's about all that really differentiates it from a $35 pid controller. I also need to test and build in some kind of safety so it doesn't burn my house down. Ultimate end-goal would be a professional produced "shield" product. I've always wanted to make and sell a product -- if one person buys it, that would be awesome and a check on my bucket list. The key for that is going to be getting it arduino compatible, and probably also make it useful for other things, such as environmental controls. It is basically a sophisticated thermostat. Once the netduino supports onewire out of the box, the game changes quite a bit. Thanks for asking, by the way. My family camps up in Alfred, ME pretty much every year. I'll have to invite you over for sous vide steaks finished on a camp fire.



#6198 netduino+ Sous Vide Test Egg 1

Posted by bill.french on 18 December 2010 - 03:23 AM in Project Showcase

Of course! Thursdays are the "open hack nights" so there's usually some folks there doing something interesting for guests. Let me know when you're coming, I'll netduino up some steaks and print you a netduino t-shirt on our silkscreen press! We'll use bottle openers printed on our makerbot to open some Fubrew.



#6196 netduino+ Sous Vide Test Egg 1

Posted by bill.french on 18 December 2010 - 03:01 AM in Project Showcase

After a long journey trying to get reliable temperature readings using thermistors, I was finally able to test out my Sous Vide project using actual food last night using a Dallas DS18B20 OneWire temperature sensor and a onewire controller.

The basic setup at this point uses a netduino+, the onewire controller, the DS18B20 for reading the temperature, a PowerSwitchTail controlling a cheapo walmart electric pot and an electric motor for agitating the water. What will be kind of a unique feature of my setup (besides network control and monitoring, which is in and of itself very cool) is that I can us this setup to manage up to 6 Sous Vide devices, so that there could be a meat, veggies, sides, dessert, and even the next days meat all going at once.

I still need to tune the PID algorithm, but looking at the graph, I am very close to a very stable temperature (it was set to 173F):
Posted Image

The goal was a (very) hardboiled egg, without any green on the yolk, and I was successful:
Posted Image

This is a picture of the setup, taken at Fubar Labs, my local hackerspace.
Posted Image

Next up: Chicken Breasts!



#8121 How can I get instant (or close to) data from http...?

Posted by bill.french on 22 January 2011 - 10:08 PM in Netduino Plus 2 (and Netduino Plus 1)

Not entirely sure I understand what you're looking for?
1. How to get your javascript to get live data w/o refreshing the whole page?
2. Or a different way to get data from the netduino?

For #2, I don't know what you're going for.

For #1, check out jquery and the load command: (this would go in your refresh function once you have jquery included)

$('#myDiv').load('data.htm');

(to add jquery, use:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
in your <head>)

... in your program.cs: (i have not tested this, so it's more of an idea than anything)

namespace NetduinoPlusWebServer
{
    public class Program
    {
        public static void Main()
        {
            Listener webServer = new Listener(RequestReceived);

            OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
            while (true)
            {
                // Blink LED to show we're still responsive
                led.Write(!led.Read());
                Thread.Sleep(500);
            }

        }


        private static void RequestReceived(Request request)
        {
          if (request.URL == "data.htm")
          {
          request.SendResponse("some kind of data");
          }


        }


    }
}



#8173 How can I get instant (or close to) data from http...?

Posted by bill.french on 23 January 2011 - 02:53 PM in Netduino Plus 2 (and Netduino Plus 1)

Yup, *Note to self: "srtw"* (http://www.stopreinventingthewheel.com)


LOL... i added the quote to that page. I think I'll start a collection.

Have you tried playing with my example above? I think it should work.

jquery is definitly the place to start (and probably end) for ajax, i think VS is has intellisense for it?



#8178 How can I get instant (or close to) data from http...?

Posted by bill.french on 23 January 2011 - 04:00 PM in Netduino Plus 2 (and Netduino Plus 1)

...wait, so my example worked??? with a netduino?



#8087 1-WIRE

Posted by bill.french on 22 January 2011 - 02:27 AM in Netduino Plus 2 (and Netduino Plus 1)

I have had very good luck with this unit: http://www.phanderso...mp/onewire.html



#4590 External buttons problem

Posted by bill.french on 07 November 2010 - 05:43 PM in General Discussion

can you post your complete source code?



#6737 A project suggestion - for Netduino, Plus, or mini.

Posted by bill.french on 31 December 2010 - 05:32 AM in General Discussion

I got the phanderson controller working -- check my links above.



#6411 A project suggestion - for Netduino, Plus, or mini.

Posted by bill.french on 23 December 2010 - 12:25 AM in General Discussion

You say "no internet" -- does that mean "no network"? My sous vide controller basically does what you describe, and sends the temp back via debug and network. There is an extra piece in the form of a onewire>rs232 controller, since the netduino doesn't support onewire directly, yet. Some links: Reading temp from DS18B20: http://forums.netdui...ch__1#entry5962 Graphing data over the network: http://forums.netdui...ch__1#entry4637 My sous vide thread: http://forums.netdui...ch__1#entry6196 The DS18B20 is a very cool chip. Once onewire is supported in the netduino, it will be a piece of cake to use.



#6433 A project suggestion - for Netduino, Plus, or mini.

Posted by bill.french on 23 December 2010 - 02:24 PM in General Discussion


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



#7454 StepGenie (An EE's Best friend?)

Posted by bill.french on 11 January 2011 - 02:09 PM in Netduino 2 (and Netduino 1)

Hey there. I just noticed your private message, sorry! I also stumbled across my step genie still setup w/ LEDs in a breadboard; i will post a picture tonight for you.



#7509 StepGenie (An EE's Best friend?)

Posted by bill.french on 12 January 2011 - 12:10 PM in Netduino 2 (and Netduino 1)

OK, here's a video of the stepgenie in action using LEDs:
http://www.youtube.com/watch?v=KjkVbNI8YBI
The code looks like this:
        public static void Main()
        {
            OutputPort d0 = new OutputPort(Pins.GPIO_PIN_D0, false);
            while (true)
            {
                d0.Write(true); //send a "step" to the StepGenie -- basically just a pulse
                d0.Write(false);
                Thread.Sleep(250);

            }
        }

It's wired up like this:
pins 1,2,12 -> 5v (from netduino)
pins 3,13,14 -> ground (from netduino)
pins 5,6,7,8 -> 220ohm resistor -> led -> ground
pin 11 -> D0 on the netduino

With this setup, you can move pin 12 from 5v to Gnd to switch directions; pins 2,3 can be moved to try different modes. Or, connect them up to digital ios on the netduino and change them through programming.

Hard to follow picture of the circuit: (I ran out of 220 ohm resistors so I used a blue potentiometer on one of the leds...)
Posted Image



#7024 StepGenie (An EE's Best friend?)

Posted by bill.french on 04 January 2011 - 11:44 PM in Netduino 2 (and Netduino 1)

Cool, thank you.



#7053 StepGenie (An EE's Best friend?)

Posted by bill.french on 05 January 2011 - 03:56 AM in Netduino 2 (and Netduino 1)

Ok... I'm still stuck on the fact that your wife got you a StepGenie for Christmas. That's awesome!!

Did she get you the full demo board or just the chip itself?


LOL... she was very grateful to receive a Google spreadsheet with part numbers from me this year. I was grateful to receive fewer sweaters. :D



#6979 StepGenie (An EE's Best friend?)

Posted by bill.french on 04 January 2011 - 01:13 PM in Netduino 2 (and Netduino 1)

I got a stepgenie for Christmas, my wife said it came quickly, and it was packed very well. Strange. You can definitely use the digital ios to set the various values high or low (1 or 0). To test it, i would start with LEDs. Tie pins 1,2,3 to +5v -- 13,14 to Gnd. 11 and 12 to digital ios, and 5,6,7,8 to leds through resistors and LEDs (no mosfets). Everything else (4,9,10) can be left open. This should put you in "Hi-torque" mode. Depending on pin 12 (DIR), if it is high or low, the lit leds should shift "up" or "down" when you toggle pin 11 (STEP). I didn't save my code, but i just toggled a digital io and paused 200ms so I could see it. Then, I played with pins 2 and 3 to try out the different modes. One lesson I learned (which was the point, really!) was the difference between unipolar and bi-polar steppers. I got a bi-polar stepper for Christmas, but the stepgenie is designed for unipolar...



#7000 StepGenie (An EE's Best friend?)

Posted by bill.french on 04 January 2011 - 08:43 PM in Netduino 2 (and Netduino 1)

No, you'd hook a unipolar (with 6 wires) up to pins 5,6,7,8. The remaining two wires go to your powersource, possible through a power resistor first.



#6992 StepGenie (An EE's Best friend?)

Posted by bill.french on 04 January 2011 - 04:24 PM in Netduino 2 (and Netduino 1)

for testing, i wouldn't put the modes on a digital IO yet, it would be one more complicating factor. I think 4 wires means bipolar and it won't work (easily) with the step genie, you want a 6-lead. http://www.probotix....ipolar_bipolar/



#7007 StepGenie (An EE's Best friend?)

Posted by bill.french on 04 January 2011 - 08:57 PM in Netduino 2 (and Netduino 1)

I'm looking myself! My wife got me a bi-polar for Christmas, so... I either need to find a unipolar, or build the circuit to handle the bi-polar using a h-bridge.



#4295 .Net, Fred's webserver, and me

Posted by bill.french on 28 October 2010 - 02:22 AM in Netduino Plus 2 (and Netduino Plus 1)

I think my question is more technical than it might have come across. My oop is pretty good, i am weak on threading, and building disposers in the context of a GC is mysterious to me.

My understanding about why you might build your own disposers is when you're dealing with unmanaged code, or threading issues, or if you want to dispose of stuff in particular order for particular reasons -- otherwise the garbage collector takes care of its business pretty well.

So, in short, while I can read and understand the IDisposable interface, i'm struggling to understand why people use it in fully managed code situations outside netmf, and particularly with our nd+, what about the listener.cs code calls for the use of IDisposable?



#4362 .Net, Fred's webserver, and me

Posted by bill.french on 30 October 2010 - 12:39 AM in Netduino Plus 2 (and Netduino Plus 1)

Awesome, thank you, sir. Maybe in a couple weeks I can buy you a roast beef, mutz, and gravy sandwich when i'm in hoboken next.



#4293 .Net, Fred's webserver, and me

Posted by bill.french on 27 October 2010 - 11:26 PM in Netduino Plus 2 (and Netduino Plus 1)

Fred (and Others) Web Server

As someone who understands but tries to avoid ternary operators, because they scare when I try to read code, I think I am really close to understanding everything that is happening in the listener.cs file -- any suggestions on how to work through it? I need the "dummies" version before I can tackle the MSDN version that deal with the concepts. I feel like I need some help getting to the next level with .Net. I think my questions mostly deal with IDisposable and/or disposing of objects. Even suggesting a class from MS where this stuff can be learned would be appreciated.

My basic questions:
1. What is IDisposable all about? I see here that it's important to know about it
2. What's up with the ~Listener piece? Here's a fun discussion of the tilde. Reading that made me say: WUT JUST HAPPENED HERE?
3. I have heard before that using() (as in, using (ClientSocket)) does something special, like disposes of the object when it is done, is that true?
4. "#region IDisposable Members" -- what is up with the #region stuff?
5. Why are we dealing so explicitly with disposal of stuff at all? Is it for performance reasons? Or should we not trust things to get disposed of on their own?

Forgive me if these questions are dumb. I've been working with .net for years now, and basically avoiding these questions. The basic stuff I've done over the years works, and I can't figure out how or why to learn about this stuff -- but the smarter folks all seem to do it so it must be important, and not just stylistic choices. I've done some pretty cool things over the years but I'm guessing my code looks like it's written by a 4 year old. Thank you!




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.