Shop OBEX P1 Docs P2 Docs Learn Events
Camera Controller Circuit and Code need help, pls — Parallax Forums

Camera Controller Circuit and Code need help, pls

UDCUDC Posts: 11
edited 2007-03-09 17:09 in BASIC Stamp
Attached are my schematic and code for a Camera Controller, both of which were developed with the help of many on these forums. (BTW, Many Thanks). The ON switch to a digital camera is held down mechanically. The circuit applies power via a relay. The camera is allowed 30 seconds to warm up, another relay momentarily closes the shutter, power is left on for another 20 seconds to allow for file writing and power is removed until the next reset.

As a prelude, I don't wish to get into why·I do it this way. I'll be happy to open another post·on that subject or communicate directly with anyone. Here I'd like to find out why this circuit stopped working.

I ran this circuit and program successfully for 2 months (well almost successfully, had some power issues, but the circuit worked and pics were taken on time). Then had to set it aside, I just came back to it, to start working out the power issues and learn the DS1302 to use as my timer. But the circuit doesn't work properly anymore.

The main program attached here, doesn't run past the first try at turning on power. It momentarily turns on the power relay then shuts off and just stops. I have a smaller program for bench testing that uses the ShortAstable, for faster cycles and it works correctly for exactly 4 cycles then reacts the same, a short blip on the power relay then stops, though with this program the alarm keeps running and retries at the correct interval.·Though with the same result.

Can anyone see a fatal flaw? I am stumped. I have reworked all the solder joints, tightened up the board and have to admit I've hit a wall. Any help greatly appreciated.

Jonathan

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-09 16:49
    Without looking at the program, just from your description, I'd suspect a power supply problem. Something about turning on the power relay may cause a "brown out" that causes the Stamp to reset. I guess you never really fixed the power issues and they've now surfaced again.

    Try running the Stamp off a separate power supply and see what happens (make sure the grounds are connected).
  • UDCUDC Posts: 11
    edited 2007-03-09 17:07
    Thanks ... the unresolved field power issues may be exactly what your describing. Those involved using a battery pack and it looks like power dwindled down faster than I calculated. It was odd, there was every indication that that the BS2 started and ran, the camera powered up and then what??? At first there were 6 perfect pictures at reasonable times, then 5 perfect pictures and 1 empty file, then 4/2 and 3/3 were it stopped taking any pictures, just made empty files ... so first guess is I was a little close to the bone for V/A and voltage slowly died whilst resting on the bottom of the ocean.

    Here, I am using a 0-30V, 10A power supply at 9V and Max I and I don't see any draws out of expected range or drops.

    Cheers
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2007-03-09 17:09
    UDC

    One thing that come to mind is how are powering the Basic Stamp and your
    relays are you using a batterys or are you using a power supply

    The reason i ask is that i have found that some power supplys do not have
    good filtering caps on them· or your power supply dose not have enought ouput in milamps to run all of what you want to run

    I·have had add to some CAPS......··If you are using the The Basic Stamp OME ones that you built your self

    I hope this Help you in what you are doing

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam
Sign In or Register to comment.