Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [QUARANTINE] [AVR-Chat] Re: GP2D02 + ATmega32

2006-09-10 by Larry Barello

How about showing us your code...

| -----Original Message-----
| From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
| Of katraven1
| 
| Ok, since the reply to this post showed that obviously some
| knowledge was lacking in this area I have gone away and redone my
| coding and interfacing to the GP2D02.
| 
| I've gotten the input correct now (I mistook the pulsing of the
| input line to be a PWM.. silly me..) and have witnessed the IR flash
| (via camera).
| 
| It is the output from the sensor which is of concern now... for some
| reason the output is forever high.. for example, when i want to take
| a reading i make my input line low, to which the sensor responds by
| making the output low during the reading, and then high, to which my
| code response by starting the pulses to read each bit in.
| 
| Yet for some reason the output bit is always high... my 'output'
| variable is always "255" DEC regardless of the distance the sensor
| is to a surface..
| 
| am I still missing the mark here? =(
|

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.