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's Content

There have been 8 items by ddoodm (Search limited from 25-April 23)


By content type

See this member's

Sort by                Order  

#1207 Ping Ultrasonic Sensor LED Continuously On

Posted by ddoodm on 24 August 2010 - 08:04 AM in Netduino 2 (and Netduino 1)

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!



#1137 Netduino and Ping))) Ultrasonic Sensor?

Posted by ddoodm on 23 August 2010 - 10:45 AM in Netduino 2 (and Netduino 1)

Hey guys! Sorry for the really late reply. Unfortunately, I'm having problems with CW2's code. The LED on the Ping Ultrasonic Sensor just stays green, and after placing a few breakpoints, 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!



#1030 Digital Pins Never Off.

Posted by ddoodm on 22 August 2010 - 06:43 AM in Netduino 2 (and Netduino 1)

I did a few tests today. For some reason the relay works if I power it with 3.3v instead of 5v. So it's all good now. Thanks for the help guys!



#970 Digital Pins Never Off.

Posted by ddoodm on 21 August 2010 - 12:35 PM in Netduino 2 (and Netduino 1)

Have you tested it just with a volt meter with nothing connected?

Thanks for the suggestion, but other components don't seem to be the problem.

I isolated the Netduino from everything and tested it with a volt meter. Everything looks perfect. Identical to the Arduino (Apart from the Arduino giving out 4.97v, while the Netduino only gave 3.3v). However, when I tried my relay module on both the Arduino and Netduino (both isolated from everything), it worked 100% on the Arduino, but still not the Netduino. This ain't making sense at all... I have to wait 'til the morning to get some LEDs. I can't seem to find one anywhere.

A picture could be very helpful.

I think I'll record a video when I pick up that LED tomorrow. Not exactly sure what to take a photo of now I think about it. :D

Thanks again for the help! Really appreciate it.



#960 Digital Pins Never Off.

Posted by ddoodm on 21 August 2010 - 10:02 AM in Netduino 2 (and Netduino 1)

Are you using an external power supply? If so, are you sure all the gounds are connected?


I've tried it with both an external 12v supply, and just the USB cable. Neither work. I can upload a picture if you'd like.



#955 Digital Pins Never Off.

Posted by ddoodm on 21 August 2010 - 07:15 AM in Netduino 2 (and Netduino 1)

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



#832 Netduino and Ping))) Ultrasonic Sensor?

Posted by ddoodm on 19 August 2010 - 07:55 AM in Netduino 2 (and Netduino 1)

The following code can be used to measure pulse width.


Thanks so much for that CW2! Really appreciate the code.



#829 Netduino and Ping))) Ultrasonic Sensor?

Posted by ddoodm on 19 August 2010 - 07:26 AM in Netduino 2 (and Netduino 1)

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.