Lynxmotion Tech Support

www.lynxmotion.com
It is currently Tue May 21, 2013 2:15 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GP2D12 IR sensor help
PostPosted: Tue Jun 22, 2010 6:06 pm 
Offline
Roboteer

Joined: Tue Jun 22, 2010 5:50 pm
Posts: 1
I am using a GP2D12 IR RANGER sensor and I am trying to interface it with my dragon 12 plus microcontroller. I am using assembly language. I connected my yellow (vout) wire to pad10, my black (ground)wire to pad09, and my red (vcc) wire to pad08. I then set ddra as input and i did the command movb #$FF,PORTA. I sent the analog signal from the sensor through the analog/digital converter, but I am not getting a reading. I am a beginner. Can anyone help??


Top
 Profile  
 
PostPosted: Wed Jun 23, 2010 9:03 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
viewtopic.php?f=6&t=6286

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Wed Jun 23, 2010 1:07 pm 
Offline
Robot Guru
User avatar

Joined: Mon Oct 31, 2005 3:03 pm
Posts: 3598
Location: Houston, Texas
gdiulio wrote:
I am using a GP2D12 IR RANGER sensor and I am trying to interface it with my dragon 12 plus microcontroller. I am using assembly language. I connected my yellow (vout) wire to pad10, my black (ground)wire to pad09, and my red (vcc) wire to pad08. I then set ddra as input and i did the command movb #$FF,PORTA. I sent the analog signal from the sensor through the analog/digital converter, but I am not getting a reading. I am a beginner. Can anyone help??


Nice looking board

Image

But I know nothing about it to be any help. That's one heck of a beginner board. :shock:

_________________
Mike

The robotics nut.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group