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.
Photo

Netduino Pins aways in High Voltage


  • Please log in to reply
5 replies to this topic

#1 Paulo Jardim

Paulo Jardim

    New Member

  • Members
  • Pip
  • 8 posts

Posted 28 September 2012 - 11:56 AM

I dont know if is a board problem but all digital pins show about 3.23V.... i conected a led in the Pin D1 and in GND and the led is aways on but with a weak lights. CODE: private OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); motor.Write(true); Thread.Sleep(10000); motor.Write(false); motor.Dispose(); when motor is true the voltage go to 3.3V and led lights strong. I dont know what happned but look like only the tension change and not the voltage.

#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 28 September 2012 - 12:06 PM

Hi, How did you declare the variable 'motor'? By default, pullup resistors are enabled on each pin, which caused the readings.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 Paulo Jardim

Paulo Jardim

    New Member

  • Members
  • Pip
  • 8 posts

Posted 28 September 2012 - 12:47 PM

OutputPort motor = new OutputPort(Pins.GPIO_PIN_D1, false);

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 28 September 2012 - 02:08 PM

Hi Paulo, When Netduino first boots, all of its pins are in "input, pullup" state. This will provide a weak current (at 3.3V) which may cause your LEDs to light up very weakly. When you create an OutputPort as set it to True, that will drive current. If you are setting the OutputPort to False and still have voltage on the pin, that shouldn't happen. If that's the case, please create a simple project (4-5 lines of code) and post the full code sample here so we can help take a look. Chris

#5 Paulo Jardim

Paulo Jardim

    New Member

  • Members
  • Pip
  • 8 posts

Posted 29 September 2012 - 06:48 PM

Hi Paulo,

When Netduino first boots, all of its pins are in "input, pullup" state. This will provide a weak current (at 3.3V) which may cause your LEDs to light up very weakly. When you create an OutputPort as set it to True, that will drive current.

If you are setting the OutputPort to False and still have voltage on the pin, that shouldn't happen. If that's the case, please create a simple project (4-5 lines of code) and post the full code sample here so we can help take a look.

Chris



Chiris all digital pins has about 3.23 Voltage.

I tryed sent the fallow code to board:

OutputPort motor = new OutputPort(Pins.GPIO_PIN_D1, false);

motor.Write(true);
Thread.Sleep(10000);
motor.Write(false);
motor.Dispose();

but aways all pins show me 2.23v in low and when motor is on voltage go to 3.3v and led lights strong.

when motor is of voltage from pin 1 go to 2.3V.

Looks lime only tension change....not voltage....

#6 Geancarlo2

Geancarlo2

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 29 September 2012 - 09:32 PM

Hi Paulo, can you post what circuit are you using? Do you have an appropriate resistor between the port and the led? P.S.: "Tension" is voltage, they are interchangeable terms in portuguese, although "voltagem" isn't well accepted among professionals...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.