Hi
I am using a Pi Pico to control 14 servos via twelve switches on a model railway layout. I've coded it it successfully at least during testing each servo or pair of servos responded as it should to switches being thrown. However I am now installing the servos on the layout and have found that switches linked to GPIO pins 22, 26, 27, and 28 all appear to be linked together so that when one switch gets thrown then four servos operate when in reality only two servos on the switch linked to GPIO28 should operate, the other two servos have a separate switch each and so should not operate. In fact the fourth servo jitters badly and this is not due to the servo as swapping it for a different servo has the same result. The remaining switches all function as they should so I am wondering if it has something to do with GPIO26-28 being the ADC inputs although they are are not initialised in this way. Any thoughts would be appreciated.
Thanks
I am using a Pi Pico to control 14 servos via twelve switches on a model railway layout. I've coded it it successfully at least during testing each servo or pair of servos responded as it should to switches being thrown. However I am now installing the servos on the layout and have found that switches linked to GPIO pins 22, 26, 27, and 28 all appear to be linked together so that when one switch gets thrown then four servos operate when in reality only two servos on the switch linked to GPIO28 should operate, the other two servos have a separate switch each and so should not operate. In fact the fourth servo jitters badly and this is not due to the servo as swapping it for a different servo has the same result. The remaining switches all function as they should so I am wondering if it has something to do with GPIO26-28 being the ADC inputs although they are are not initialised in this way. Any thoughts would be appreciated.
Thanks
Statistics: Posted by Andrew57 — Fri Aug 02, 2024 11:56 pm — Replies 0 — Views 19