Gotcha......Set things up so when a pin is held HIGH at start-up the EEPROM is re-set to zeros. Then you should have a complete counting/storage system that can be re-set.
How about this for a quick diversion: How are we on using a PIC to drive a servo motor?Now we have to think of something else for you to do"
We've been getting a visitor to our garden late at night (we think it's a Badger) and would like to film it. I've got a FUTABA FP-5148 servo that I'd like to link up to a cable release to press the record button on a video camera after receiving an input from a PIR to the PIC.
The sequence is this:
1/ PIR 'beam' get broken by 'Creature'.
2/ PIC activates servo to move cable release out and turn camera on.
3/ PIC waits 10 secs while camera boots up.
4/ PIC activates servo again moves cable release out turns camera record on (same button).
The camera will record on it's own for 10 mins then powers down.
5/ If PIR been is still broken (creature still there) after 9min:30secs servo presses record button again.
6/ PIR beam 'closes' creature has gone, camera powers down.
What do you think mackrackit?
Dave
Bookmarks