Hi all and a happy new year!
Ok, I'm slowly getting to grips with flowcode and have put a program together to simulate a set of traffic lights for my sons play mat (street scene)
I would like the pic to go to sleep after say 10 mins to save the battery (he will lose interest after this time) and then I would like to awaken the pic again using a push to make non latching switch.
I am using the 12f629 chip using the internal osc.
I posted a thread late last year regarding the use of non latching switches but the reply, from Ben I think, shot over my head with the speed of a hamas rocket! I'm a programming virgin remember!
Could anyone point me in the right direction as to how to do this?
Ive attached the flowcode file for information.
cheers
Gaz
sleep switch
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: sleep switch
The dreaded 12F chips eh. Great news you got it working.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: sleep switch
Are the 12F chips usually hardwork then Ben?
The only problem I had was spurious oscillator speeds which seemed to be cured by decoupling the unused outputs with caps.
Pulling the unused outputs to ground or positive just stopped the thing working altogether
Gaz
The only problem I had was spurious oscillator speeds which seemed to be cured by decoupling the unused outputs with caps.
Pulling the unused outputs to ground or positive just stopped the thing working altogether
Gaz
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: sleep switch
They are good little devices but they can be tempremental especially to program.
Your example of putting caps on the unused pins is a great example of this.
Your example of putting caps on the unused pins is a great example of this.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel