Hello Forum.
Can you help an oldboy new to the picaxe world??
Years ago I constructed a railway traverser, which carried 4 tracks, powered by a DC motor driving a screwed rod, a limit switch at the ends changed over the direction via relays, and using just 1 push to make switch in the control circuit ( like a two way lighting circuit). Motor turns were counted by a hard wired up/down counter some logic
via an opto switch on the shaft. Every push of the button would move the table 1 track at a time,stop after a preset count.
Now with the aid of a picaxe 18x, 2 *12v Bipolar steppers (Rapid) working in tandam each with its own driver chip.
I am using the codes from the manual,but, I am having a problem remembering my Basic ( ZX81 )!!!of how I can use that 1 push button to make the table reverse after it has reached the 4th track, (lstep and on the 7th push to (rstep
(ie: every 3rd push of the button would reverse the table ). ( No problem with 2 buttons 1 for each direction.)
The distances between tracks are the same so I can enter the same 2 byte variable code w0.
Would it be some kind of count code with goto's, but I can't see it..
Thank you in advance if you can put me on the right track. no pun intended..................rj
Can you help an oldboy new to the picaxe world??
Years ago I constructed a railway traverser, which carried 4 tracks, powered by a DC motor driving a screwed rod, a limit switch at the ends changed over the direction via relays, and using just 1 push to make switch in the control circuit ( like a two way lighting circuit). Motor turns were counted by a hard wired up/down counter some logic
via an opto switch on the shaft. Every push of the button would move the table 1 track at a time,stop after a preset count.
Now with the aid of a picaxe 18x, 2 *12v Bipolar steppers (Rapid) working in tandam each with its own driver chip.
I am using the codes from the manual,but, I am having a problem remembering my Basic ( ZX81 )!!!of how I can use that 1 push button to make the table reverse after it has reached the 4th track, (lstep and on the 7th push to (rstep
(ie: every 3rd push of the button would reverse the table ). ( No problem with 2 buttons 1 for each direction.)
The distances between tracks are the same so I can enter the same 2 byte variable code w0.
Would it be some kind of count code with goto's, but I can't see it..
Thank you in advance if you can put me on the right track. no pun intended..................rj