I've been trying to rebuild a few of my Arduino projects with the Netduino. However, I'm having problems with my digital I/O pins. Whenever I set any output pin to false (off), it doesn't disable the pin, but it seems to limit the output voltage of the pin to around 1.65v. I'm currently trying to control a DFRobot relay module which works perfectly with the Arduino, but when I try it with the Netduino, the indicator LED on the relay module just dims (doesn't go off) and I only hear a slight flicking noise from the relay when the LED dims (but it doesn't actually do anything). Here's my code (just sample code from the beginner video):
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace NetduinoApplication1 { public class Program { public static void Main() { OutputPort Relay = new OutputPort(Pins.GPIO_PIN_D9, false); while (true) { LED.Write(true); Thread.Sleep(500); LED.Write(false); Thread.Sleep(500); } } } }
PS: The same kind of thing happens when I use my Ping Ultrasonic sensor. However, the light stays on, and doesn't do anything.
Thanks for any help! I'd really appreciate it.