Shop OBEX P1 Docs P2 Docs Learn Events
sleep mode — Parallax Forums

sleep mode

ArchiverArchiver Posts: 46,084
edited 2001-09-27 02:47 in General Discussion
Hello all I'm building a lighting application for a garage
using a BS1. The application turns on a light at dusk. It works
like this:
The stamp turns on a light (240v)at dusk via a transistor and relay
then sleeps for one hour. It blinks during this period every 2.3 sec
(at least the trial LED does)as the stamp's clock wakes up. Then it
turns out the light until it wakes up again in 14 hours.

My question(s) are these:

1) How can I eliminate this power interuption (will it affect the
garage lights when it's hooked up)?

2) The POT readings vary (using a LDR) when I've added more length to
the wire. (Speaker wire) I need about 12 feet of length to run the
LDR to the apex of the roof.

3) How can I dim the lights from bright to off over the course of an
hour?

Any suggestions??
Thanks
Pat

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-09-27 02:07
    > Hello all I'm building a lighting application for a garage
    > using a BS1. The application turns on a light at dusk. It works
    > like this:
    > The stamp turns on a light (240v)at dusk via a transistor and relay
    > then sleeps for one hour. It blinks during this period every 2.3 sec
    > (at least the trial LED does)as the stamp's clock wakes up. Then it
    > turns out the light until it wakes up again in 14 hours.
    >
    > My question(s) are these:
    >
    > 1) How can I eliminate this power interuption (will it affect the
    > garage lights when it's hooked up)?
    You can use a capacitor to filter it out. However I've got a basic stamp
    controlling a relay, to switch a 110vAC light, and I haven't noticed any
    flicker, even though I don't use a capacitor.
  • ArchiverArchiver Posts: 46,084
    edited 2001-09-27 02:47
    > The stamp turns on a light (240v)at dusk via a transistor and relay
    >then sleeps for one hour. It blinks during this period every 2.3 sec
    >(at least the trial LED does)as the stamp's clock wakes up. Then it
    >turns out the light until it wakes up again in 14 hours.
    >
    >1) How can I eliminate this power interuption (will it affect the
    >garage lights when it's hooked up)?

    I'm no expert, but I've played with 'sleep' mode in my applications, so
    I'll try to help.

    According to the book, the current will be interrupted for about 18 ms when
    the BS
    wakes up every 2.3 seconds. I assume you will be holding a relay 'on'
    during your
    the sleep command, again according to the book, connect resistors high or
    low as
    appropriate to ensure a continuing supply of power.

    I think the simplest solution to this part of the problem would be to just
    use PAUSE
    instead of SLEEP, pause keeps the stamp alive and things under control.

    Hope it helps.

    -John
Sign In or Register to comment.