- Netduino Forums
- → bill.french's Content
bill.french's Content
There have been 260 items by bill.french (Search limited from 01-July 23)
#7383 Wild idea for a group project
Posted by bill.french on 10 January 2011 - 12:57 AM in General Discussion
This is simple and doable. Sign me up. Pick a date!
#7462 Wild idea for a group project
Posted by bill.french on 11 January 2011 - 04:06 PM in General Discussion
@bill.french: To access a Netduino behind a firewall check out http://yaler.org/
That is cool -- i think for this project, that might be cheating -- I think we'd need to get an ND+ playing the role of Yaler.
#7507 Wild idea for a group project
Posted by bill.french on 12 January 2011 - 11:12 AM in General Discussion
My concern with your link is that it involves using an extra server to store and pass data that is not an netduino -- i think we should keep it as purely about the netduino plus as possible.I have'mentioned in the my previous reply, we can get the led params from the link. So why do we even need the firewall stuff??
I am realy busy this week so I guess I'll have to wait couple of days more to get hands on..
Vincent
#7512 Wild idea for a group project
Posted by bill.french on 12 January 2011 - 02:19 PM in General Discussion
#6544 Analog input varying too much on temp sensor (LM335A)
Posted by bill.french on 26 December 2010 - 10:21 PM in General Discussion
#6432 Analog input varying too much on temp sensor (LM335A)
Posted by bill.french on 23 December 2010 - 02:15 PM in General Discussion
http://forums.netdui...ch__1#entry3556
I even went so far as to get an external ADC (MCP3204) and still couldn't get it to work well. I came to the conclusion that something about the netduino is too noisy, or analog circuits are too hard.
That's when I switched to the DS18B20 digital temp sensor.
#7339 Fluent Interop 1.0
Posted by bill.french on 09 January 2011 - 02:33 PM in Project Showcase
You must have something already, but in case it somehow helps you even a little bit with making an 'offline' compiler, I wrote a simple function (wrapped in a console app for testing) that takes in a short[] and outputs text that can be easily cut and pasted into VS. It was fun for me to write, regardless.
using System; using System.Text; namespace ArrayOfShortsToText { class Program { public static string AOStoText(short[] aos, string name = "compiledCode") { string nl = Environment.NewLine; string result = @"private static readonly short[] " + name + "=unchecked(new[] {" + nl; int count = 0; foreach (short i in aos) { result += @"(short)0x" + i.ToString("X4"); count++; if (count < aos.Length) { result += ", "; if ((count % 5) == 0) { result += nl; } } } result += nl + @"});" + nl; return result; } static void Main(string[] args) { short[] compiledCode = unchecked(new[] { (short)0xB5F0, (short)0xB086, (short)0x9005, (short)0x9104, (short)0x9E13, (short)0x9603, (short)0x9E17, (short)0x9602, (short)0x2600, (short)0x9601, (short)0xE027, (short)0x9801, (short)0x1E40, (short)0x9E01, (short)0x4046, (short)0x9600, (short)0x9901, (short)0x2200, (short)0xE019, (short)0x9E00, (short)0x2701, (short)0x1C33, (short)0x403B, (short)0x2B00, (short)0xD00E, (short)0x2701, (short)0x1C0B, (short)0x403B, (short)0x9E02, (short)0x6874, (short)0xB44F, (short)0x9802, (short)0x0080, (short)0x9E08, (short)0x5830, (short)0x9903, (short)0xF000, (short)0xF815, (short)0x1C07, (short)0xBC4F, (short)0x9E00, (short)0x1076, (short)0x9600, (short)0x1049, (short)0x1C52, (short)0x9F05, (short)0x42BA, (short)0xDBE2, (short)0x9E01, (short)0x1C76, (short)0x9601, (short)0x9E01, (short)0x9F04, (short)0x42BE, (short)0xDBD3, (short)0xB006, (short)0xBCF0, (short)0xBC02, (short)0x4708, (short)0x4720 }); Console.WriteLine(); Console.Write(AOStoText(compiledCode, "TEST")); } } }
#3150 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 29 September 2010 - 01:26 AM in Netduino Plus 2 (and Netduino Plus 1)
#3147 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 29 September 2010 - 01:07 AM in Netduino Plus 2 (and Netduino Plus 1)
I've also tried the below code, which uses D0 for the button, instead, so I could still have access to the reset. Reset has no effect on how visual studio acts, however. I can see that the board resets (the net leds and the blue led cycle and then my code resumes) but visual studio is uneffected.
Once VS is stuck, i can only unstick it by unplugging the netduino, plugging it back it, waiting for it to boot, then unplugging it again. My code never stops running except during netduino boot up.
I've tried every combo i can think of involving resetting, power cycling, and deploying to get it to work without erasing. No luck.
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace NetduinoApplication1 { public class Program { public static void Main() { // write your code here OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); InputPort button = new InputPort(Pins.GPIO_PIN_D0, false, ResistorModes.PullUp); while (true) { led.Write(!button.Read()); } } } }
#3186 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 29 September 2010 - 11:23 AM in Netduino Plus 2 (and Netduino Plus 1)
#3080 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 28 September 2010 - 02:35 AM in Netduino Plus 2 (and Netduino Plus 1)
I followed those instructions, then loaded the new firmware on the unit and I am back up and running.
What new firmware did you install? I thought the firmware that came with the netduino plus was the latest available?
I am having the exact same problem.
#3090 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 28 September 2010 - 03:43 AM in Netduino Plus 2 (and Netduino Plus 1)
#3194 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 29 September 2010 - 02:42 PM in Netduino Plus 2 (and Netduino Plus 1)
#3347 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 01 October 2010 - 12:00 PM in Netduino Plus 2 (and Netduino Plus 1)
#3083 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 28 September 2010 - 03:04 AM in Netduino Plus 2 (and Netduino Plus 1)
#3096 Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loadi...
Posted by bill.french on 28 September 2010 - 04:13 AM in Netduino Plus 2 (and Netduino Plus 1)
namespace NetduinoApplication1 { public class Program { public static void Main() { // write your code here OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); bool b = false; while (true) { b = !b; led.Write(B); Thread.Sleep(50); } } } }
#7214 Remote heating regulation
Posted by bill.french on 07 January 2011 - 03:34 PM in Netduino 2 (and Netduino 1)
2. Config storage: this is a little mysterious right now
3. Thermal sensor: I like the DS18B20 but then you'll need a onewire controller - and then you can read 6 sensors easily, here's a thread about it
4. You can always etch your own PCB -- it's pretty easy
#7223 Remote heating regulation
Posted by bill.french on 07 January 2011 - 06:49 PM in Netduino 2 (and Netduino 1)
#7107 Remote heating regulation
Posted by bill.french on 06 January 2011 - 12:19 AM in Netduino 2 (and Netduino 1)
#4637 Graphing Data from Netduino over the network
Posted by bill.french on 08 November 2010 - 05:03 AM in Netduino Plus 2 (and Netduino Plus 1)
public static void Main() { NetLog log1 = new NetLog(); log1.Host = "192.168.1.12"; log1.Port = 8000; log1.Print("100"); Thread.Sleep(500); log1.Print("400"); Thread.Sleep(500); log1.Print("200"); Thread.Sleep(500); log1.Print("500"); Thread.Sleep(500); log1.Print("300"); }...using the Microsoft Charting stuff, produces this graph:
Which makes me happy!
What is weird though is that sometimes, and only from initial boot or by pressing play is VS, the netduino never makes it past sending the first "100" and throws an exception for each of the subsequent sends:
#### Exception System.Net.Sockets.SocketException - CLR_E_FAIL (1) #### #### Message: #### Microsoft.SPOT.Net.SocketNative::connect [IP: 0000] #### #### System.Net.Sockets.Socket::Connect [IP: 001d] #### #### NetLogger.NetLog::Print [IP: 0042] #### #### NDP_SocketSender1.Program::Main [IP: 002d] #### #### SocketException ErrorCode = 10053 #### SocketException ErrorCode = 10053 A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll #### SocketException ErrorCode = 10053 #### SocketException ErrorCode = 10053
When the netduino is unable to connect to the forms app, I am able still able to connect to my forms application using telnet, so I know it's still responding. I am on the latest posted firmware.
I'm sure my code is a train wreck, so any advice would be very much appreciated. I don't doubt I'm doing something fundamentally wrong. My next step is to have the act of sending the data spun off into it's own thread. Here are my solution files:
I've been working up the nerve to take a stab at this for a while, eventually to start graphing data from the analog inputs. I was motivated to action after seeing Corey's 2d motion tracker w/ excel graphs using data cut/pasted from the debugger output... I was hoping I'd end up with something slightly useful for his Avatar motion project!
Thanks! --Bill
#7465 Graphing Data from Netduino over the network
Posted by bill.french on 11 January 2011 - 05:42 PM in Netduino Plus 2 (and Netduino Plus 1)
#4652 Graphing Data from Netduino over the network
Posted by bill.french on 08 November 2010 - 02:58 PM in Netduino Plus 2 (and Netduino Plus 1)
#7596 If you were to get two netduinos to talk to each other, what would you use?
Posted by bill.french on 13 January 2011 - 08:31 PM in Netduino 2 (and Netduino 1)
#7603 If you were to get two netduinos to talk to each other, what would you use?
Posted by bill.french on 13 January 2011 - 09:04 PM in Netduino 2 (and Netduino 1)
#4286 Analog voltage incorrect
Posted by bill.french on 27 October 2010 - 04:49 PM in General Discussion
- Netduino Forums
- → bill.french's Content
- Privacy Policy