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

Arduino to Netduino Help needed


  • Please log in to reply
5 replies to this topic

#1 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

Posted 27 August 2010 - 06:54 PM

I got this shield:
http://ruggedcircuit...get_shield.html

And I want to use the infrared input. This is what the website has on that pin:
Infrared Detector
D2
Digital In
Active Low
INT0

As far as I know a digital input has a value of true or false. So "INT0" is some type of port? Like a PWM is a type of an output port?

They have sample code there.Since I started doing hardware with the Netduino, I have no clue how to convert the IR Sensor code.

So does anyone know what I need to do to read the data?

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 27 August 2010 - 07:20 PM

I think that you'll want to use an InterruptPort. Community member phil made an RC6 infrared receiver decoder. http://forums.netdui...-decoder-class/ Does that give you a good start? Chris

#3 Websteria

Websteria

    Member

  • Members
  • PipPip
  • 25 posts

Posted 27 August 2010 - 08:25 PM

I think that you'll want to use an InterruptPort. Community member phil made an RC6 infrared receiver decoder.
http://forums.netdui...-decoder-class/

Does that give you a good start?

Chris


I actually just ordered one of these myself, but I'm concerned because the analog inputs go from 0 to 5V. Can the Netduino take that voltage on the A/D input ports, or do I need to step it down?

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 27 August 2010 - 08:59 PM

I actually just ordered one of these myself, but I'm concerned because the analog inputs go from 0 to 5V. Can the Netduino take that voltage on the A/D input ports, or do I need to step it down?


You need to step down the analog input voltage. Netduino's microcontroller can take inputs from 0V-3.3V.

Chris

#5 Websteria

Websteria

    Member

  • Members
  • PipPip
  • 25 posts

Posted 27 August 2010 - 09:25 PM

You need to step down the analog input voltage. Netduino's microcontroller can take inputs from 0V-3.3V.

Chris


Is there an easy way to do this? I was trying to figure out if a resistor would be enough, but it doesn't seem like it would since I don't know the current on the line... any ideas? This is where being a newbie sucks..

#6 RuggedCircuits

RuggedCircuits

    Member

  • Members
  • PipPip
  • 17 posts

Posted 27 August 2010 - 10:24 PM

You need to step down the analog input voltage. Netduino's microcontroller can take inputs from 0V-3.3V.

Chris


The I/O pins on the AT91SAM7X512 are 5V-tolerant. There will not be any damage to the microcontroller from voltages up to 5V. Also, the analog voltage sources on the Gadget Shield have large series resistances thus will limit the current to safe values in all cases. No modifications to the board should be required.
Rugged Circuits LLC / <http://ruggedcircuits.com>




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.