
http://fabienroyer.w...or-netduino-go/
![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
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.
ErikN's ContentThere have been 89 items by ErikN (Search limited from 09-July 24) #26429 Redacted 00101100
#26296 Redacted 00101100
Based on some hints I had awhile back, all I can say is: I'm very much excited to hear a formal announcement! I don't think anyone will be upset by it.
![]() #25475 Run Code From SD
Sounds like you've got it covered then! #25472 Run Code From SD
Is this a good breakdown of what you're asking?
As for 2, there are a number of discussions on using the SD card as storage space for DLLs but keep in mind, once you load the DLL into memory, you're using the chip memory. You can't execute program space from the SD card directly. The SD card is primarily used to store log or resource files. I wouldn't count on being able to use this when decided on what boards to evaluate for your needs. Side note: all consumer GPS receivers (sold in the US? made in the US? required by license?) have an arbitrary maximum operating altitude above which they will be unusable. Just something to be aware of when designing your project. #24830 My Paranormal Investigation Tool(s) Project
Congrats!
I looked over your project site but I didn't see anything specific about this. I'm curious - what are you using? Custom build? I just picked up a couple of these from Adafruit and I've just started testing them. So far with default configuration I was able to charge a LiPoly battery and blind myself with a 1W LED on the circuit output from a MacBook Pro USB port. The board says it can do 1A but I believe the default is 500mA. I didn't run the LED for very long, I just wanted to test the transition from USB pass-through while charging the LiPoly to running from the LiPoly pack. #24449 Ethernet never works if not connected on boot up?
I thought this was a known issue. I remember seeing a reference in the latest 4.2 firmware that says ethernet can not be plugged in at any time and is no longer required to be connected at boot-up. If I am remembering correctly, this means the 4.1 releases require the connection at boot time.
EDIT: Oops, I didn't realize the latest 4.2 was up to RC4 and since I didn't see an explicit version mentioned, I assumed you were using 4.1 - looking at the error more closely I see you are using 4.2.0.0. Looking over the 4.2 RC4 features and sure enough that's where the first mention of plugging in the ethernet at any time is mentioned.
#24350 .NET Micro Framework 4.2 QFE1
Can't wait!
#24202 My Paranormal Investigation Tool(s) Project
Ah yes, the sledgehammer approach. #23994 Waterproof temperature sensor?
Maybe it'd be a good idea to heat the tube to expel excess moisture in the air and possibly draw a bit of a vacuum when you seal it. That will further reduce the air volume and help eliminate condensation from affecting your board and causing corrosion.
Alternatively maybe you could drop in a desiccant packet from a pill bottle if you don't want to heat blast the tube. Either way, I think it's a good idea to remove as much moisture from the sensor area before you seal it.
#23986 Extend PWM output
I think it depends on your purpose.
For instance if you're trying to PWM some LEDs, you could use an LED driver chip. Most can be programmed with SPI from what I've seen. The chip would then handle the PWM work.
What specific problem are you trying to solve?
#23983 Waterproof temperature sensor?
Is glass not the best option? I would think it would have low-to-no reaction to the water and - assuming the temperature probe were in direct contract with the glass - it should react fairly quickly to temperature change. Maybe you could just get a long test-tube, affix the sensor to the side near the bottom and submerge. Keep the open end above the water line and cork it. Isn't this how most aquarium heaters are built?
For reaction time, I'd try to have the smallest amount of air volume possible - so maybe after affixing the sensor you could use a silicon seal just above the sensor to insulate it from the remaining air column in the tube/vial? This approach should keep everything except the glass completely away from the water for both electronic and fishy health.
-Erik
#23922 event handling issue.
It depends on your need. If you want to wake up from time to time before going back to sleep:
public static void Main() { //Do your event wireup and any other thread work //Then, last thing: while(true) { //Do any periodic work you need executed on the main thread for some reason Thread.Sleep(10000); // 10 seconds or whatever } } If you don't ever need the main thread to wake up to do something then you don't need a loop at all and you can put the thread to sleep forever. Your event threads will continue to process; this is just the main thread which you need to keep active so the whole program doesn't terminate. public static void Main() { //Do your event wireup and any other thread work //Then, last thing: Thread.Sleep(Timeout.Infinite); } #23741 event handling issue.
Everything you need to know was right there in the first error:
This is saying in your application NetduinoPlusApplication1 has an object Program with a function Main which has some instruction that is, under the hood, calling NativeEventDispatcher object's add_OnInterrupt method. That is in turn calling Delegate object's Combine method. From experience, I know when you do <event> += <handler> this uses Combine to join your new handler into the pool of handlers that want to be called when this event is fired. That gives us all the information we need to find the problem. Looking at your code, there's only one place you're doing a handler assignment to an event: while (true) { button.OnInterrupt += new NativeEventHandler(button_OnInterrupt); button.ClearInterrupt(); } We see this is being done in an infinite loop. Basically you're attaching a copy of your event handler again and again and again until the Netduino runs out of memory space. You can read up on Event Based Programming but in short to fix your issue, just move your event wire-up above the while loop (which I assume you have just to keep the main thread alive; in which case you should consider adding a sleep call to put the main thread to sleep when it's not needed.) Hope this helps! -Erik #23538 over run?
I'm going to have to start a list of Scandinavian users! Of which I'll only be an honorary member. -Erik
| ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |