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.

ddoodm

Member Since 19 Aug 2010
Offline Last Active Aug 24 2010 08:28 AM
-----

Topics I've Started

Ping Ultrasonic Sensor LED Continuously On

24 August 2010 - 08:04 AM

Hey guys! Sorry for the new topic. Seems my other one didn't move up when I posted a reply to it. Unfortunately, I'm having problems with the Ping))) Ultrasonic sensor. I'm using CW2's code that was posted on my Netduino and Ping))) Ultrasonic Sensor topic.. The LED on the Ping Ultrasonic Sensor just stays green, and after placing a few breakpoints, I noticed it never reaches the interrupt function. I think you need to send 'true' or 'on' to the Ping for 5 microseconds before reading values from it. But I can't find any way to delay in microseconds. Thanks for your help again if possible!

Digital Pins Never Off.

21 August 2010 - 07:15 AM

Hey again everyone!

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. :)

Netduino and Ping))) Ultrasonic Sensor?

19 August 2010 - 07:26 AM

Hey everyone! I'm really liking the Netduino so far. Especially the multi-threading functionality. However, I've run into a problem trying to find a way to read the echo from a Ping Ultrasonic Sensor.

I noticed that in the original Arduino Ping sample sketch, they used this:
duration = pulseIn(pingPin, HIGH);
What is the equivalent in C# Micro?

Thanks for any help! I'd really appreciate it.
- Deinyon

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.