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.

Acumen's Content

There have been 7 items by Acumen (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#717 Problem with Analog Input

Posted by Acumen on 18 August 2010 - 03:51 AM in Netduino 2 (and Netduino 1)

Just got my netduino, trying to figure this thing out.

I get the following output by simply jumping any analog input to ground:

Test: 127
Test: 15
Test: 1023
Test: 1023
Test: 255
Test: 1023
Test: 0
Test: 127
Test: 255
Test: 1023
Test: 127
Test: 0
Test: 0
Test: 255
Test: 63
Test: 0
Test: 255
Test: 1023
Test: 63
Test: 127
Test: 63
Test: 255
Test: 0
Test: 255
Test: 127
Test: 7
Test: 63

namespace Netduino_Test_1
{
    public class Program
    {
        public static void Main()
        {
            // write your code here

            AnalogInput apin0 = new AnalogInput(Pins.GPIO_PIN_A0);

            bool buttonstate = false;
            int test = 0;
            while (true)
            {
                Thread.Sleep(250);
                test = apin0.Read();
                Debug.Print("Test: " + test);
            }

        }

    }
}



#719 Problem with Analog Input

Posted by Acumen on 18 August 2010 - 04:25 AM in Netduino 2 (and Netduino 1)

Ah there we go. Thank you.

Fun little variable speed blinking program to test the analog input.

Potentiometer hooked up to 3V, Ground and A0.
3V hooked up to Aref.

namespace Netduino_Test_1
{
    public class Program
    {
        public static void Main()
        {
            AnalogInput apin0 = new AnalogInput(Pins.GPIO_PIN_A0);
            OutputPort led = new OutputPort(Pins.ONBOARD_LED, true);
            int test = 0;
            bool ledstate = true;

            while (true)
            {
                ledstate = !ledstate;

                led.Write(ledstate);

                test = apin0.Read();
                Debug.Print("Test: " + test); 

                Thread.Sleep(test/5);
            }

        }

    }
}



#810 Reading Serial Connection

Posted by Acumen on 18 August 2010 - 11:07 PM in Netduino 2 (and Netduino 1)

Saw some related topics but none seemed to solve my problem. I am trying to receive data from an RFID reader (the common parallax). I can not seem to find the correct constructor and library for the "SerialPort" datatype. I included System.IO.Ports, which did not seem to have it or I am not correctly referencing. Any help is appreciated.



#1054 Reading Serial Connection

Posted by Acumen on 22 August 2010 - 02:44 PM in Netduino 2 (and Netduino 1)

Awesome. Thank you. Starting to get the hang of this thing now.



#1105 Nokia 3310 from nuelectronics

Posted by Acumen on 23 August 2010 - 02:22 AM in Project Showcase

How similar is the 3310 to the 6100? I just picked one up and am trying to wrap my head around interfacing with it.



#1197 Sparkfun Nokia 6100 Color LCD

Posted by Acumen on 24 August 2010 - 02:44 AM in Netduino 2 (and Netduino 1)

Just picked one up, has anyone played around with one of these? http://www.sparkfun....roducts_id=8600 I would really like to see some code to get my bearings. I have experience with C#, but have never interfaced with anything like this. http://www.sparkfun....play Driver.pdf I have not had alot of time at my disposal recently, which makes learning this stuff with out a direct tutorial difficult. After powering up the board, I think I can get some minimal functions to start (aka write to the screen) by connecting the following: CS - Chip Select - ground? SCK - Clock Signal - (6MHz?) - Pin 11? DIO - Digital Input - Pin 12? Then start playing around with the SPI class and hopefully things work out. Pascal06 has posted on using the nokia 3310 screen: http://forums.netdui...-nuelectronics/ I am hoping the SPI stuff given will be easy to modify for the 6100.



#1254 Sparkfun Nokia 6100 Color LCD

Posted by Acumen on 24 August 2010 - 10:21 PM in Netduino 2 (and Netduino 1)

Is variable bit SPI something planned for future firmware updates? Or is it far down the list? I will probably try a software solution for now as it would be a good learning process. Thanks for all the info, hopefully I will have time some night this week to play around a bit and get some code up.




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.