Sharp GP2D05 PIR Help! Stamp code keeps loopin
Archiver
Posts: 46,084
I didn't realize these took so much juice. On the BOE-Bot (which has 2 servo
motors) you always put a 3300uF (that is really 3.3 millifarads!) cap across
the power to keep the motors from booting the Stamp. The downside, I
suppose, is it takes an extra millisecond or two to start the system up (who
would notice). But those extra milliseconds spent charging give you that
much more time you can survive a "brownout" without resetting.
Regards,
Al Williams
AWC
* 8 channels of PWM: http://www.al-williams.com/awce/pak5.htm
>
Original Message
> From: S Parkis [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=McXl-9Da3QHQszpt_GFSXlXHOZmVWwPd8PGIZGscek9UzEJRykAb-xn9SWudlcdKeDpQWFFegDvsZOOMsw]parkiss@e...[/url
> Sent: Sunday, April 30, 2000 2:41 PM
> To: Kath; basicstamps@egroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] Sharp GP2D05 PIR Help! Stamp code keeps
> loopin
>
>
>
>
> On 30 Apr 00 at 9:34, Kath wrote:
>
> > ...The problem is that since I ran the SEROUT example on the Stamp
> > the modified example code from Acroname doesn't work. It stops at
> > the line that reads in from the sensor to a variable. Then
> > repeatedly goes back to "DEBUG Start". I think my sensor has blown
> > as a result of the SERIN commands. But I don't know. Can sending
> > SERIN commands to pin 16 blow a PIR that has input connection to
> > pin 15?
>
> I suspect you'd be the first to do so--your problem is almost
> certainly somewhere else. I've not used the GP2D05 so I can't speak
> from experience, but I note the following on Acroname's site
> regarding the GP2D02, and it may have some application to the '05:
>
> " - Several people have reported that the regulator on the stamp
> resets when the GP2D02 is fired. A possible solution to this is a
> separate 5V power supply that powers both the Stamp and the GP2D02.
> Powering the stamp from an external power supply is covered in the
> stamp documentation.
>
> - Another suggestion was made to avoid reseting the stamp when the
> GP2D02 is fired. Brian Rudy used a 33uF capacitor on the stamp's 5V
> regulated output to fix this problem..."
>
> Probably both are worth a try. A fresh battery at least would be
> worth a shot, if you're using a battery for power.
>
> I'd add another DEBUG message just before the "low cl":
>
> DEBUG " about to turn on detector ", CR
>
> If you see this message but don't see the " detector on " DEBUG
> message, I'd consider that almost conclusive proof that turning on
> the detector is resetting your Stamp.
>
> Steve
>
>
>
motors) you always put a 3300uF (that is really 3.3 millifarads!) cap across
the power to keep the motors from booting the Stamp. The downside, I
suppose, is it takes an extra millisecond or two to start the system up (who
would notice). But those extra milliseconds spent charging give you that
much more time you can survive a "brownout" without resetting.
Regards,
Al Williams
AWC
* 8 channels of PWM: http://www.al-williams.com/awce/pak5.htm
>
Original Message
> From: S Parkis [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=McXl-9Da3QHQszpt_GFSXlXHOZmVWwPd8PGIZGscek9UzEJRykAb-xn9SWudlcdKeDpQWFFegDvsZOOMsw]parkiss@e...[/url
> Sent: Sunday, April 30, 2000 2:41 PM
> To: Kath; basicstamps@egroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] Sharp GP2D05 PIR Help! Stamp code keeps
> loopin
>
>
>
>
> On 30 Apr 00 at 9:34, Kath wrote:
>
> > ...The problem is that since I ran the SEROUT example on the Stamp
> > the modified example code from Acroname doesn't work. It stops at
> > the line that reads in from the sensor to a variable. Then
> > repeatedly goes back to "DEBUG Start". I think my sensor has blown
> > as a result of the SERIN commands. But I don't know. Can sending
> > SERIN commands to pin 16 blow a PIR that has input connection to
> > pin 15?
>
> I suspect you'd be the first to do so--your problem is almost
> certainly somewhere else. I've not used the GP2D05 so I can't speak
> from experience, but I note the following on Acroname's site
> regarding the GP2D02, and it may have some application to the '05:
>
> " - Several people have reported that the regulator on the stamp
> resets when the GP2D02 is fired. A possible solution to this is a
> separate 5V power supply that powers both the Stamp and the GP2D02.
> Powering the stamp from an external power supply is covered in the
> stamp documentation.
>
> - Another suggestion was made to avoid reseting the stamp when the
> GP2D02 is fired. Brian Rudy used a 33uF capacitor on the stamp's 5V
> regulated output to fix this problem..."
>
> Probably both are worth a try. A fresh battery at least would be
> worth a shot, if you're using a battery for power.
>
> I'd add another DEBUG message just before the "low cl":
>
> DEBUG " about to turn on detector ", CR
>
> If you see this message but don't see the " detector on " DEBUG
> message, I'd consider that almost conclusive proof that turning on
> the detector is resetting your Stamp.
>
> Steve
>
>
>
Comments
> ...The problem is that since I ran the SEROUT example on the Stamp
> the modified example code from Acroname doesn't work. It stops at
> the line that reads in from the sensor to a variable. Then
> repeatedly goes back to "DEBUG Start". I think my sensor has blown
> as a result of the SERIN commands. But I don't know. Can sending
> SERIN commands to pin 16 blow a PIR that has input connection to
> pin 15?
I suspect you'd be the first to do so--your problem is almost
certainly somewhere else. I've not used the GP2D05 so I can't speak
from experience, but I note the following on Acroname's site
regarding the GP2D02, and it may have some application to the '05:
" - Several people have reported that the regulator on the stamp
resets when the GP2D02 is fired. A possible solution to this is a
separate 5V power supply that powers both the Stamp and the GP2D02.
Powering the stamp from an external power supply is covered in the
stamp documentation.
- Another suggestion was made to avoid reseting the stamp when the
GP2D02 is fired. Brian Rudy used a 33uF capacitor on the stamp's 5V
regulated output to fix this problem..."
Probably both are worth a try. A fresh battery at least would be
worth a shot, if you're using a battery for power.
I'd add another DEBUG message just before the "low cl":
DEBUG " about to turn on detector ", CR
If you see this message but don't see the " detector on " DEBUG
message, I'd consider that almost conclusive proof that turning on
the detector is resetting your Stamp.
Steve