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.

Don King's Content

There have been 30 items by Don King (Search limited from 28-April 23)


By content type

See this member's


Sort by                Order  

#47316 New: Netduino 4.3 SDK and VS2012 support!

Posted by Don King on 18 March 2013 - 03:21 AM in General Discussion

Hi Don,You can get early OneWire support for the gen1 boards today through the special 4.1 release which includes OneWire support.Otherwise, pretend like we're not going to bring CW2's implementation of OneWire to the gen1 boards. Then "if" it comes later, it'll be a pleasant surprise and give you one more thing you can do with your gen1 Netduino. Quite a few community members find it useful to have an extra Netduino to put in their permanent projects.Please note that OneWire support for gen1 will be another one-time-build, so it's a special build we can commit to making for each new version of the Netduino gen1 firmware going forward. The gen2 boards are designed for OneWire support out of the box, with plenty of extra flash (useful since NETMF tends to grow a bit with each new release).Chris

Thanks Chris. I ordered the Netduino Plus 2.



#47234 New: Netduino 4.3 SDK and VS2012 support!

Posted by Don King on 15 March 2013 - 04:12 PM in General Discussion

Can I get some advice on the whole OneWire on 1st Gen thing. Should I just go ahead and get a Netduino Plus 2 so that I can have OneWire support? My reason for getting a Netduino in the first place was to use a OneWire temperature component (honestly did not know at the time, I am not an electronics guy) for a project.

 

I would rather just be told that it will not be included for 1st Gen and move on. So please tell me if you plan to do it or not. I am completely confused at this point with the whole saga.

 

Thanks!

 

Don




#47317 New: Netduino 4.3 SDK and VS2012 support!

Posted by Don King on 18 March 2013 - 03:23 AM in General Discussion

Onewire support is also available on NETMF 4.2 through ToniA's firmware here
There was a problem deploying large software because the watchdog interupted the deploy. ToniA is looking into it and right now I am using the original boot-loader wihich  disables the watchdog.

Thanks for the information. I will research. I am not even familiar with what a "watchdog" is exactly so I am at a disadvantage there.



#34185 Netduino Firmware v4.2.0

Posted by Don King on 25 August 2012 - 02:06 AM in Netduino 2 (and Netduino 1)

I have installed the TinyBooter but now my Netduino is not recognized as Windows can't find a driver. I see it in my Device Manager but it says that drivers for this device are not installed. Any thoughts? I am running Windows 7 64bit. The MFDeploy doesn't see the device either and it did before. Any help is appreciated as I now just have a dead Netduino ;-) Let me know what other information I can provide. Thanks! Don



#51371 Committing File to SD Card

Posted by Don King on 12 July 2013 - 01:12 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi - I just wanted to bump this topic and see if this has been addressed any further. I am more than a little frustrated with Secret Labs right now because they are refusing to answer posts it seems related to the facts that N+2 has issues with I/O to an SD Card. I was going back and forth fine with Chris, even taking his suggestion and buying the exact same card (from the link he provided to Amazon) and trying that. I uninstalled and reinstalled frameworks and all of that. I even had purchased the N+2 (already had the 1st gen card) to get support for One Wire.

 

Here is my interaction in the Visual Studio 2012 thread:

 

http://forums.netdui...-support/page-2

 

Secret Labs - This is really unacceptable to just stop communicating with your user base. I am a software developer and understand there are issues with software that have to be addressed. But part of being a professional shop is acknowledging and communicating about issues. 

 

Please provide some feedback on this issue.

 

Thanks!

 

Don




#47613 Dallas 1-wire support library

Posted by Don King on 27 March 2013 - 02:35 AM in Netduino Plus 2 (and Netduino Plus 1)

 

Hi,

 

I just wanted to share the little support library I created for my temperature sensor application that deals with 1-wire operations. 

 

The library is currently only supporting DS18S20 and DS18B20 temp sensors, but I created the library to be extendable in the future. 

 

I had fun creating it and it seems to work pretty good. Been logging temperature for the past 2 weeks every 5 mins from 3 probes on the same line. (Although now I rewired the NP2 to attempt to get an LCD display working so it's currently offline hehe).

 

Also here is the code I am using to probe the temp:

         OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);        OutputPort oneWirePort = new OutputPort(Pins.GPIO_PIN_D7, false);           try            {                Microsoft.SPOT.Hardware.OneWire wire = new OneWire(oneWirePort);                var devices = wire.FindAllDevices();                DallasOneWireDevices collection = new DallasOneWireDevices();   // Contains type defined devices with helper commands                foreach (byte[] device in devices)                {                    collection.AddDevice(device);   // If supported, it will add as the correct device type it identifies it as.                }                led.Write(true); // Just lights up the led while conducting 1-wire business 
:) // Loop through all devices, and if we find any DS18B20, then we set the resolution to 12-bit. foreach (OneWireTemperatureProbe probe in collection) { DeviceDS18B20 probe2 = probe as DeviceDS18B20; if (probe2 != null) probe2.SetResolution(12, wire); } collection.SendCommandToAll(OneWireDs18b20Reference.CmdConvert, 1050, wire); // Sends the convert command to all devices connected, and waits 1050ms foreach (OneWireTemperatureProbe probe in collection) { probe.ReadScratchPad(wire); // Reads the scratchpad and updates the last temperature property (which is used below) // My code for saving the temp to a textfile on the SD card ... not included in this sample // Logger.Log(probe.DeviceId.GetHex(), probe.LastTemperature.ToString()); Debug.Print(probe.ToString()); } } catch (Exception ex) { Debug.Print(ex.ToString()); } led.Write(false);

 

 

Well done friend. I ended up getting the Netduino Plus 2, fired up your library and it works wonderfully. Thanks so much for providing the code.

 

Thanks!

 

Don




#49273 NotSupportedException while trying to access the SD Card

Posted by Don King on 09 May 2013 - 04:16 AM in Netduino Plus 2 (and Netduino Plus 1)

Okay, that's most likely an "improvement" to the SD card drivers that comes with .NET MF 4.2 QFE2. Hmm. Our resident SD Card expert KodeDaemon is currently wrapping up another cool Netduino-related project; I'll ping him and see if he wants to take a look at a few SD cards and we can coordinate with him to re-integrate all the 4.1 SD enhancements into a new firmware release. Chris

 

Hi Chris - Is there anything new on the SD card issue? An update would be very much appreciated.

 

Thanks!

 

Don




#42051 DS1821 temperature sensor over OneWire on Netduino Plus 2

Posted by Don King on 23 December 2012 - 02:43 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Thomas - Thanks for posting this. I have the DS18B20 One Wire temperature Sensor (https://www.sparkfun.../products/11050) and was wondering if this would work the same for what I have? I am a .NET Developer who is a complete newbie to electornics. Is there a chance you could post how you wired up your temperature sensor to the Netduino Plus if it is not too much trouble. I have the NP 1 but would assume there is not much of a difference? Thanks! Don



#48096 Are there any known issues with SD cards?

Posted by Don King on 05 April 2013 - 08:50 PM in General Discussion

Hi Don,

Here's what we use:
http://www.amazon.co...sk 2gb micro sd

SanDisk 2GB MicroSD. They've worked 100% for us, and are what we use to test every Netduino Plus 2 before it leaves Secret Labs.

Chris

 

Thanks Chris. I have ordered it and will report back the results. Quick question, I usually just format with a PC and do Fat file system w/ default allocation sizes. Is there any steps that you all take differently to format?

 

Thanks!

 

Don




#52129 Are there any known issues with SD cards?

Posted by Don King on 13 August 2013 - 07:19 PM in General Discussion

Just wanted to bump this topic. Is this something that needs to be fixed in the firmware or is there something else I need to try?

 

Hi Don, Here's what we use: http://www.amazon.co...sk 2gb micro sd SanDisk 2GB MicroSD. They've worked 100% for us, and are what we use to test every Netduino Plus 2 before it leaves Secret Labs. Chris

 

Chris - Am I ever going to get some acknowledgement on this? I have been waiting for a few months now. As I stated before, I understand there are issues and time and resources are needed to resolve, but that doesn't mean that you should go dark and not provide an update. Can you please address the issue and what you know about it?

 

Thanks,

 

Don




#48072 Are there any known issues with SD cards?

Posted by Don King on 05 April 2013 - 03:08 PM in General Discussion

Hi Don, The best place to starting diagnosing an issue like this is with a different MicroSD card. Preferably a <=2GB one, to isolate any SDHC issues. And first formatted using a PC. Do you happen to have another MicroSD card there? Chris

 

Hi Chris - I do not. All I have is a couple of 4GB cards. I am however willing to aquire an additional 2GB to test. Can you give me a manufacturer and model # of a card that you currently have working with the NP2? A link would be helpful.

 

Thanks!

 

Don




#48394 Are there any known issues with SD cards?

Posted by Don King on 14 April 2013 - 09:07 PM in General Discussion

Hi Don,

Here's what we use:
http://www.amazon.co...sk 2gb micro sd

SanDisk 2GB MicroSD. They've worked 100% for us, and are what we use to test every Netduino Plus 2 before it leaves Secret Labs.

Chris

 

Hi Chris - I received the new SD card and have the same results as before. ND1 works great and ND2 fails with a corrupt file. Any thoughts on next steps?

 

Thanks!

 

Don




#48032 Are there any known issues with SD cards?

Posted by Don King on 04 April 2013 - 06:20 PM in General Discussion

Hi Don,There were quite a few changes in NETMF 4.3 but I'm not aware of any that would cause this. If you run your code under NETMF 4.2, does it work? Also--if you can create a consistent repro--for either 4.2 RTM or 4.3 beta--we will try to repro it here and dig into the problem. Chris

 

Hi Chris - Sorry this has taken a while but just got back to this today. I uninstalled all v4.3 software and installed v4.2 of the .NETMF and Netduino SDK. I erased and installed the v4.2.2 firmware on my NP2 and my NP has v4.2.0.1.

 

The same behavior happened as described above with my NP2 and corrupt files. The NP works like a champ so I am led to believe that there is an issue with my NP2? I am not sure where to begin figuring out what that might be.

 

If you have any suggestions of things I can provide to help solve this or other things I can try please let me know.

 

Thanks!

 

Don




#48516 Are there any known issues with SD cards?

Posted by Don King on 18 April 2013 - 01:19 PM in General Discussion

Just wanted to bump this topic. Is this something that needs to be fixed in the firmware or is there something else I need to try?

 

Hi Chris - I received the new SD card and have the same results as before. ND1 works great and ND2 fails with a corrupt file. Any thoughts on next steps?

 

Thanks!

 

Don




#48097 Are there any known issues with SD cards?

Posted by Don King on 05 April 2013 - 09:31 PM in General Discussion

Hi Don,There were quite a few changes in NETMF 4.3 but I'm not aware of any that would cause this. If you run your code under NETMF 4.2, does it work?

Also--if you can create a consistent repro--for either 4.2 RTM or 4.3 beta--we will try to repro it here and dig into the problem.

Chris

 

Chris - As a side note, it does appear that some other users are having similar issues with SD Cards and NP2.

 

Thanks!

 

Don




#47868 Are there any known issues with SD cards?

Posted by Don King on 01 April 2013 - 02:45 AM in General Discussion

Hi Chris - I plan to switch back over to NETMF 4.2 so I can see if the issue is still there. I just wanted to check first to see if there were any known issues that were reported.

 

I will let you know the results.

 

Thanks!

 

Don

 

Hi Don,There were quite a few changes in NETMF 4.3 but I'm not aware of any that would cause this. If you run your code under NETMF 4.2, does it work? Also--if you can create a consistent repro--for either 4.2 RTM or 4.3 beta--we will try to repro it here and dig into the problem. Chris




#47734 Are there any known issues with SD cards?

Posted by Don King on 29 March 2013 - 08:35 PM in General Discussion

Are there any known issues with this release and SD cards? I am having a lot of issues with code that worked fine for me in the past (recompiled with the latest .NETMF 4.3 and Netduino 4.3 SDK and using VS 2012 on an NP2). I keep having issues with corrupt files, files that won't write out and then once is a while it seems to work fine but mostly it fails. Below is the simple code I am using to create the file and then the code that I use to append records. My card is a 2GB SanDisk. The behavior has been very strange. I can provide detail if it will help.

 

 

 

using (var filestream = new FileStream(@"SDMY_LED_LOG.CSV", FileMode.Create)){  StreamWriter streamWriter = new StreamWriter(filestream);  streamWriter.WriteLine("Status,DateTime");  streamWriter.Close();} 

 

 

 

 

using (var filestream = new FileStream(@"SDMY_LED_LOG.CSV", FileMode.Append)){ StreamWriter streamWriter = new StreamWriter(filestream); streamWriter.WriteLine(statusText + "," + DateTime.Now.ToString()); streamWriter.Close();} 



#34403 Issue with resolving AnalogInput

Posted by Don King on 30 August 2012 - 01:43 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Don,

Did you upgrade your Netduino Plus to .NET Micro Framework 4.2?

If so, then add SecretLabs.NETMF.Hardware.AnalogInput.dll as a reference to your project.

If not, then you'll want to change the target framework for your application to .NET MF 4.1 in your project properties.

Does this resolve the issue for you? We're here to help.

Chris


That did it! I am at .NETMF 4.2. I added the missing reference and now it works with fully qualfied reference.

var voltagePort = new SecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A1);

Thanks much for your help!

Don



#34397 Issue with resolving AnalogInput

Posted by Don King on 29 August 2012 - 11:48 PM in Netduino Plus 2 (and Netduino Plus 1)

I hope this is the right place to post this. Please let me know otherwise.

I am a .NET Developer but a newbie to micro-controllers and electronics. I have been going through the samples and reading through two books, one of which is Getting Started with the Internet of Things. I am sure that others here are familiar with this. The code below has an issue that I cannot seem to get resolved. When I search the forum I see it mentioned but it seems to be pre release of .NETMF 4.2. The issue is marked below with a comment. I cannot get the 'AnalogInput' class to resolve except through the Microsoft.SPOT.Hardware namespace at which time it wants a type of Cpu.AnalogChannel as an argument. I have tried 'Cpu.AnalogChannel.ANALOG_1' as the argument for this code but it does not work. I am somewhat lost.

I have connected a potentiometer to the Analog In (Pins 0, 1 and 2) but when I run the application the voltage always reads out as 0.00 so either I don't have it hooked up correctly or my code is wrong. I am guessing the latter.

I have seen previous postings where it is mentioned that you should use 'SecretLabs.NETMF.Hardware.AnalogInput' but I am not seeing that class exist. I do notice however that if I use:

var voltagePort = new Microsoft.SPOT.Hardware.AnalogInput(Cpu.AnalogChannel.ANALOG_0);

and then try to declare:

var lowPort = new OutputPort(Pins.GPIO_PIN_A0, false);

I get an error as if the first declaration took the resource on the board and is having a conflict. That makes me think that my code is actually correct and I don't know what I am doing with the potentiometer (that is highly likely).

Below is my current code taken from the book with my mods:

using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;

public class VoltageReader
{
    public static void Main()
    {
        const double maxVoltage = 3.3;
        const int maxAdcValue = 1023;

        //var voltagePort = new AnalogInput(Pins.GPIO_PIN_A1); //THIS HAS AN ISSUE RESOLVING
        var voltagePort = new Microsoft.SPOT.Hardware.AnalogInput(Cpu.AnalogChannel.ANALOG_1); //REPLACED LINE WITH THIS
        var lowPort = new OutputPort(Pins.GPIO_PIN_A0, false);
        var highPort = new OutputPort(Pins.GPIO_PIN_A2, true);

        while (true)
        {
            int rawValue = voltagePort.Read();
            double value = (rawValue * maxVoltage) / maxAdcValue;
            Debug.Print(rawValue + "  " + value.ToString("f"));
            Thread.Sleep(3000);                     // 3 seconds
        }
    }
}
Any help is appreciate to point me in the right direction.

Thanks!

Don



#47726 Prototype works! Now what?

Posted by Don King on 29 March 2013 - 03:38 PM in Netduino Plus 2 (and Netduino Plus 1)

I have finished my first successful prototype and now want to make it a permanent one. If I understand what I have read on the forums correctly, I should be able to use a MakerShield to solder things to permanently and then place it on top of my NP2?

 

Any help, advice, tips, tricks etc. are very welcome. My project is a OneWire temperature probe and so I am certain there are "helper" devices that would allow me to have quick connect and disconnect of components? (e.g. if I don't want the temperature probe to be soldered permanently, I can have something soldered that it can connect to).

 

I appreciate any feedback. This community has been extremely helpful to newbies like me just learning electronics. I hope I can pay it back some day :).

 

Thanks!

 

Don

 

NP2_TempPrototype_DK.jpg




#47729 Prototype works! Now what?

Posted by Don King on 29 March 2013 - 04:27 PM in Netduino Plus 2 (and Netduino Plus 1)

Hey Don,

 

For some of my prototypes I've use the ProtoShields from freetronics. http://www.freetroni...ns/protoshields

 

There are many types of quick connectors that can be used.  Can you give us a little more info on the sensors and the placement of them?  Perhaps we can point you in the right direction.

 

Hi Dave - Thanks so much for the reply. Yes, actually I have attached another image that I got from another member (CW2) that I used to help me wire up my prototype. In fact I followed this pretty much exactly. The only difference is that I don't have the little temp sensor pictured. I have the waterproof DS18B20. One of the issues I have is that it has copper wire that is not really stiff and so can't really seat it down into the breadboard. I ended up having to wrap it around some jumper wires that have the stiff wires on each end. Not a great solution and one of the reasons I am looking for connectors and such.

 

 

ds18b20sample.png




#47917 Prototype works! Now what?

Posted by Don King on 02 April 2013 - 03:02 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks again for all of the advice. One more (hopefully) quick question. I notice that the other board is made in and ships from Australia. I don't have anything against the Aussies but would prefer to buy here and have it shipped from within the US. With that said would this Arduino ProtoShield - Bare PCB and Arduino ProtoShield Kit be pretty similar and serve the same purpose? They also have a nice little tutorial for people like me who are just learning.

 

As a side note, I notice that a commenter mentions a concern with Ethernet jack getting in the way. I wonder if that would be an issue with either of these boards and the NP2.




#47895 Prototype works! Now what?

Posted by Don King on 01 April 2013 - 11:44 PM in Netduino Plus 2 (and Netduino Plus 1)

Wow, very cool pics. And way beyond me at this point but I want to dive in and learn. I agree with your reasoning of cheap boards especially as one is learning to solder. I do have a Weller BP645 pen soldering iron and .062 diameter solder (.50 oz.). It doesn't state a gauge on it.

 

Is there a set of pins or like a components pack that you would recommend as well to go with the boards?

 

Thanks!




#47867 Prototype works! Now what?

Posted by Don King on 01 April 2013 - 02:43 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks for the information. I have a couple of questions:

 

1. What board from the freetronics site would you recommend for this prototype, if any?

 

2. With the screw terminals, I am guessing that I would solder that onto the prototype board and then solder other wires to make my connections for the power, ground and the resistor from that. And then that would fit down on top of my NP2?

 

I hope that these prototype boards come with some information for newbies to understand how components need to be hooked up :)

 

Thanks!

 

Don




#47901 Prototype works! Now what?

Posted by Don King on 02 April 2013 - 12:23 AM in Netduino Plus 2 (and Netduino Plus 1)

Am I looking at the wrong protoboard? They state on the product description:

 

"Note that the ProtoShield Short comes without any extra parts at all: no headers, no reset button. Just a bare PCB, ready for you to fit whatever headers and other parts you happen to have handy."

 

Does that mean nothing extra besides the 4 header connectors?





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.