Well I was hoping to use a Pico to run my model train layout thus:
Thread0 8 inputs from Hall effect devices sensing magnets under trains, 8 outputs switching points and 4 variables start-stop passed to
Thread1 generates PWM power drive to tracks, where a timebase of 16 0.002sec timeslots generates PWM pulses at 31.25Hz (such a slow PWM gives much better slow speed running) for 4 tracks but the 16th slot is used to measure the back-e.m.f. of the motors with a MCP3008, comparing with 4 potentiometer settings, and adjusting the pulse width 0 to 15 appropriately.
Is this too much to ask?
TTFN
rickticktock.
Thread0 8 inputs from Hall effect devices sensing magnets under trains, 8 outputs switching points and 4 variables start-stop passed to
Thread1 generates PWM power drive to tracks, where a timebase of 16 0.002sec timeslots generates PWM pulses at 31.25Hz (such a slow PWM gives much better slow speed running) for 4 tracks but the 16th slot is used to measure the back-e.m.f. of the motors with a MCP3008, comparing with 4 potentiometer settings, and adjusting the pulse width 0 to 15 appropriately.
Is this too much to ask?
TTFN
rickticktock.
Statistics: Posted by rickticktock — Wed Jul 31, 2024 7:57 pm