UNO does PWM - 16mm scale
Arduino UNO does PWM (pulse width modulation) – 16mm scale.
This test board has a UNO configured to provide 6 PWM servo outputs as a microcontroller for points (turnouts) and/or signals on my 16mm scale narrow gauge exhibit. Two vero strip boards incorporate the required crossovers to provide Futaba/Hitec/etc format servo pinouts on the UNO’s digital output sockets.
Each of the UNO’s analogue inputs is held at intermediate potential by a pair of 1 Kohm resistors. The remote commander has a 20 foot wander lead and its four momentary push buttons short out one or other 1 Kohm resistor to take the analogue input to LOW or HIGH potential as a tri-state switch. The UNO picks up the change in potential and moves the corresponding servo through the number of degrees pre-programmed in the sketch, via the selected PWM output.
This basic setup will enable the option of automated signal and point control on the 16mm scale exhibition layout by linking the UNO's analogue inputs to other sensors.
UNO does PWM - 16mm scale
Arduino UNO does PWM (pulse width modulation) – 16mm scale.
This test board has a UNO configured to provide 6 PWM servo outputs as a microcontroller for points (turnouts) and/or signals on my 16mm scale narrow gauge exhibit. Two vero strip boards incorporate the required crossovers to provide Futaba/Hitec/etc format servo pinouts on the UNO’s digital output sockets.
Each of the UNO’s analogue inputs is held at intermediate potential by a pair of 1 Kohm resistors. The remote commander has a 20 foot wander lead and its four momentary push buttons short out one or other 1 Kohm resistor to take the analogue input to LOW or HIGH potential as a tri-state switch. The UNO picks up the change in potential and moves the corresponding servo through the number of degrees pre-programmed in the sketch, via the selected PWM output.
This basic setup will enable the option of automated signal and point control on the 16mm scale exhibition layout by linking the UNO's analogue inputs to other sensors.