Shop OBEX P1 Docs P2 Docs Learn Events
GP2D120 IR Sensor — Parallax Forums

GP2D120 IR Sensor

ALIBEALIBE Posts: 299
edited 2006-09-12 15:40 in Propeller 1
I have a couple of these that I am trying to reuse in propeller.
http://acroname.com/robotics/parts/R146-GP2D120.html

Is there an object in the making for these or can someone provide some guidance on how to use these w/ Prop please?

thanks

ALIBE

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-09-12 15:40
    You can use an external analog to digital converter and there's an object in the object library for one such converter. You can also use the Propeller itself to do the analog to digital conversion using 2 I/O pins and some passive components. There's an object in the object library for microphone input to a vga display and microphone input copied to the headphones on the Demo Board. These use an assembly routine for the A/D conversion, but need to be fast enough for audio. In your case, you should be able to do it in SPIN. There's not a lot of information on doing this with the Propeller, but it's commonly used with the SX controllers.
Sign In or Register to comment.