Hello All. I'm abit of a Picaxe Newbie, iv only made one circuit so far so please bare with me
I'm Currently trying to code a 18M2 to work as a Axle counter to control a signal at a local miniature railway. If any one could help it would be very much appreciated.
What I'm after is the Picaxe 18M2 to count a number of input pulses from 0 which will then set a output to high when count number is higher than 0. (Pulses to be triggered by passing train axles e.g. 1 small Train 2 pulses or one large train 6 pulses)
And then id like a different input to be able to count the number of pulses from the earlier input back down to 0 then once the count number is back to 0 it sets the output back to off.
then starts the process again. Also could there be the option of adding a reset button if any miss counting happens.
I'm thinking of using Inductive proximity sensors switches to create the pulses from the detecting of passing trains.
If someone feels they know a program/circuit that could achieve what I'm trying to create please let me know.
I'm Currently trying to code a 18M2 to work as a Axle counter to control a signal at a local miniature railway. If any one could help it would be very much appreciated.
What I'm after is the Picaxe 18M2 to count a number of input pulses from 0 which will then set a output to high when count number is higher than 0. (Pulses to be triggered by passing train axles e.g. 1 small Train 2 pulses or one large train 6 pulses)
And then id like a different input to be able to count the number of pulses from the earlier input back down to 0 then once the count number is back to 0 it sets the output back to off.
then starts the process again. Also could there be the option of adding a reset button if any miss counting happens.
I'm thinking of using Inductive proximity sensors switches to create the pulses from the detecting of passing trains.
If someone feels they know a program/circuit that could achieve what I'm trying to create please let me know.
Last edited: