Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.


Member Since 08 Mar 2013
Offline Last Active Dec 07 2014 06:58 AM

Topics I've Started

Outputting to I/Os in parallel

13 May 2013 - 12:42 PM



I need to set an 8-bit device. I am using a netduino plus 2. If I want to set DB0 - DB7 to a specific byte, say "45" (hex), how can I set the bit simultaneously instead of setting each bit:


I know it can be done like this:














but can I set something like this in parallel ?






Unable to deploy to NDP2 after deploying code to test PWM

05 May 2013 - 07:23 AM



I am unable to deploy to NDP2 after deploying my code that tests the pulse width modulator.

Error was "There were deployment errors". Tried to restart the PC, disconnected and reconnected the NDP2, but to no avail.



namespace AnalogPulseWidthModulation
    public class Program
        // setup analog input
        static SecretLabs.NETMF.Hardware.AnalogInput potentiometer = new SecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A0);
        static SecretLabs.NETMF.Hardware.PWM pulseWidthModulatedLed = new SecretLabs.NETMF.Hardware.PWM(Pins.GPIO_PIN_D0);
        public static void Main()
            potentiometer.SetRange(0, 100); // to make this show value in % 
            int potentiometerValue = 0;
            while (true)
                // By default, Read() will return 0-1023 by default
                // But here, the range was customized to return values 
                // from 0, 100
                potentiometerValue = potentiometer.Read();

I tried to re-flash as suggested above. But when I got to "Device Capabilities" it said "Not Supported", I have .NET Microframework SDK 4.3 (RTM) and Netduino SDK v4.2.2.


What should I do ? Was there any problem in my code that made the NDP2 stop responding ?


Thanks and regards,



Setting Interrupt for Analog Input

01 May 2013 - 10:09 AM

Hi Guys,


Can you help me on how to setup an interrupt for an analog input port, say Pins.GPIO_A0 ? I want to have an event handler that is triggered when the analog input voltage changes. Is this possible with my NDP2 ?


Thanks in advance,



Digital Input Pull-up/Pull-down Resitor

01 May 2013 - 01:40 AM



I would like to clarify something with the Netduino. I bought a NDP2. I know you can change in code whether to use pull Port.ResistorMode.PullUp or Port.ResistorMode.PullDown. My question is, do I still have to add an external resistor component for the pull-up/pull-down or the board itself already provides the necessary resistors ? 


Thank you so much in advance.



GPIO Current Source & Sink Capability

20 April 2013 - 09:41 AM



I am new to netduino and MCUs and I just got a new NETDUINO PLUS 2.


Can I use all 14 digital I/O's as output , driving 14 LEDS ? That's about 14 * 20mA = 280 mA. I read from the spec that Idd for the microcontroller should just be about 93 mA at ambient temp. Is it possible to drive all 14 I/O's for running LED's without exceeding the Idd in spec sheet ?


I was thinking about instead of current sourcing, I will just apply 5V external power supply and just make the 14 I/O pins sink or ground the LEDs.Will that make any difference ?


If not, what is the best solution to drive all 14 LEDs simultaneously using the NDP2 ?


Please help.



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.