Here is what I am trying to do. I want to use picaxe to do many different types of tasks on my railroad.
I am having issues with this one.
A track comes to a turnout. I want to toggle a momentary up to change from track one to two. Here is the sequence:
LED 1 GOES TO RED
I PULSE A RELAY OF “X” AMOUNT OF TIME TO TURN A DC MOTOR A CERTAIN DISTANCE AND STOP
PUSH THE TOGGLE SWITCH DOWN
LED GOES TO GREEN
PULSE A SECOND RELAY TO REVERSE THE DC POLARITY TO BRING BACK THE MOTOR TO its ORIGINAL POSITION.
I have been writing code to do the above, but it is not doing what I want
How do I wire the spst toggle switch to say pin c1. Have the pin stay off, toggle the led (which I can do), turn on the relay for x amount of time and then have the sequence stoop until the toggle is thrown down.
I want to go from track 1 to 2 and then have a second turnout to go from 2 to 3.
Paul f
I am having issues with this one.
A track comes to a turnout. I want to toggle a momentary up to change from track one to two. Here is the sequence:
LED 1 GOES TO RED
I PULSE A RELAY OF “X” AMOUNT OF TIME TO TURN A DC MOTOR A CERTAIN DISTANCE AND STOP
PUSH THE TOGGLE SWITCH DOWN
LED GOES TO GREEN
PULSE A SECOND RELAY TO REVERSE THE DC POLARITY TO BRING BACK THE MOTOR TO its ORIGINAL POSITION.
I have been writing code to do the above, but it is not doing what I want
How do I wire the spst toggle switch to say pin c1. Have the pin stay off, toggle the led (which I can do), turn on the relay for x amount of time and then have the sequence stoop until the toggle is thrown down.
I want to go from track 1 to 2 and then have a second turnout to go from 2 to 3.
Paul f