Arduino to Netduino Help needed
#1
Posted 27 August 2010 - 06:54 PM
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
Posted 27 August 2010 - 07:20 PM
#3
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
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
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
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.
- ChrisB likes this
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users