- Netduino Forums
- → bill.french's Content
bill.french's Content
There have been 260 items by bill.french (Search limited from 03-July 23)
#5508 What's the status of Onewire?
Posted by bill.french on 30 November 2010 - 01:20 AM in Netduino 2 (and Netduino 1)
#5963 What's the status of Onewire?
Posted by bill.french on 10 December 2010 - 03:17 AM in Netduino 2 (and Netduino 1)
#6235 netduino+ Sous Vide Test Egg 1
Posted by bill.french on 19 December 2010 - 05:49 AM in Project Showcase
LOL WUT?**Can you post your PID code? What form are you using? (Ideal, parallel, etc)
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
#6198 netduino+ Sous Vide Test Egg 1
Posted by bill.french on 18 December 2010 - 03:23 AM in Project Showcase
#6196 netduino+ Sous Vide Test Egg 1
Posted by bill.french on 18 December 2010 - 03:01 AM in Project Showcase
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):
The goal was a (very) hardboiled egg, without any green on the yolk, and I was successful:
This is a picture of the setup, taken at Fubar Labs, my local hackerspace.
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)
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)
#8087 1-WIRE
Posted by bill.french on 22 January 2011 - 02:27 AM in Netduino Plus 2 (and Netduino Plus 1)
#4590 External buttons problem
Posted by bill.french on 07 November 2010 - 05:43 PM in General Discussion
#6737 A project suggestion - for Netduino, Plus, or mini.
Posted by bill.french on 31 December 2010 - 05:32 AM in General Discussion
#6411 A project suggestion - for Netduino, Plus, or mini.
Posted by bill.french on 23 December 2010 - 12:25 AM in General Discussion
#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.
#7454 StepGenie (An EE's Best friend?)
Posted by bill.french on 11 January 2011 - 02:09 PM in Netduino 2 (and Netduino 1)
#7509 StepGenie (An EE's Best friend?)
Posted by bill.french on 12 January 2011 - 12:10 PM in Netduino 2 (and Netduino 1)
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...)
#7024 StepGenie (An EE's Best friend?)
Posted by bill.french on 04 January 2011 - 11:44 PM in Netduino 2 (and Netduino 1)
#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.
#6979 StepGenie (An EE's Best friend?)
Posted by bill.french on 04 January 2011 - 01:13 PM in Netduino 2 (and Netduino 1)
#7000 StepGenie (An EE's Best friend?)
Posted by bill.french on 04 January 2011 - 08:43 PM in Netduino 2 (and Netduino 1)
#6992 StepGenie (An EE's Best friend?)
Posted by bill.french on 04 January 2011 - 04:24 PM in Netduino 2 (and Netduino 1)
#7007 StepGenie (An EE's Best friend?)
Posted by bill.french on 04 January 2011 - 08:57 PM in Netduino 2 (and Netduino 1)
#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)
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)
#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)
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!
- Netduino Forums
- → bill.french's Content
- Privacy Policy