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.

QuantumPhysGuy

Member Since 20 Sep 2012
Offline Last Active Apr 06 2014 01:03 PM
-----

Posts I've Made

In Topic: Something new is brewing in the Secret Labs

05 November 2012 - 08:45 PM

Nicky and Nevyn:

Thank you for the additional details. We've created an updated firmware release for Netduino Go, and will be posting it on Thursday.

Chris


Maybe a GO! Firmware update?

In Topic: Documentation

17 October 2012 - 06:39 PM

Xmldoc is newer embedded in the dll files, you write it in the source, as comments.. I guess you know that?
The compiler will extract that as xml files placed next to the dll file, so you can get inline docs, or create chm docs.


Yes I know that. NETMF doesn't support, all the way, the embedding of the XML comments due to size. Just had that issue. So I am telling the VS2010 compiler, by checking "XML Documentation File" in the Build properties of each SecretLabs project, then using Sand Castle to compile it all to an CHM format and HTML format.

In Topic: Documentation

17 October 2012 - 06:22 PM

Are you really going to create bolt-on documentation?, if documentation was done in the sourcecode using xmldoc, then it could be extracted, and since secretlabs don't have any public repo, you need to do it on your own copy of the source, and loose it with next version..
But it would have been nice if it was there..


That's currently what I am doing. Major problem is NETMF doesn't support XMLDoc imbedded in the DLLs fully due to size. So, I'm have to have VS2010 generate the xml files per library and import them into sandcastle.

It should be easy to migrate each exported XML over to the new versions of the SDK when they are released. Sandcastle would then flag which methods aren't documented and I can fix from there.

In Topic: ADC Question / Issue

14 October 2012 - 03:59 AM

Ok, now that I made the change. My readings are off by 3.5°. Here is my code:

    	private static AnalogInput aiTemp;
...

Suggestions?


Maybe I should check circuits before asking questions.

I added a 0.1uF ceramic disk capacitor on the out pin of the TMP36 and my readings match the multimeter...

Thanks for the help Chris and Gutworks.

In Topic: ADC Question / Issue

14 October 2012 - 03:56 AM

If you read this post over, you will see some of the work carb has done using this sensor and a Touch Display. A little further down I converted his sample to C#. Hopefully you can find a couple hints or useful snippets to help you along the way, such as the formula used and a way to average the sample to filter out some of the ADC noise.


Ok, now that I made the change. My readings are off by 3.5°. Here is my code:

    	private static AnalogInput aiTemp;

    	public static void Main()
    	{
        	ShieldBase shieldBase = new ShieldBase(GoSockets.Socket8);
        	SevenSegmentDisplay ssDisplay = new SevenSegmentDisplay(GoSockets.Socket2);
        	Double dTemp;

        	aiTemp = new AnalogInput(shieldBase.AnalogChannels.ANALOG_PIN_A0);
        	
        	while (true)
        	{
            	dTemp = GetAverageTemperature() * 9 / 5 + 32;
            	ssDisplay.SetValue(dTemp.ToString("N1") + "F");
            	Thread.Sleep(1500);
        	}
    	}

    	private static Double GetAverageTemperature()
    	{
        	Double dTotalTemp = 0;
        	Double dAverageTemp;

        	for (Int32 i = 0; i <= 19; i++)
        	{
            	dTotalTemp += GetTemperature(aiTemp.Read());
            	Thread.Sleep(50);
        	}

        	dAverageTemp = dTotalTemp / 20;

        	return dAverageTemp;
    	}

    	private static Double GetTemperature(Double dReadValue)
    	{
        	Double voltage = dReadValue * 3.3;
        	Double temp = voltage - 0.5;

        	return temp * 100;
    	}

Suggestions?

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.