The next part of the code I need to look at is that to save servo positions between power cycles. I’ve found some extended libraries for the Arduino and will have a look at these to see if we can make the coding task easier.
Tag Archives: Electronics
Coding week
Hello world!
Slow week
Not much progress this week. I have decided to go down the route of using hardware PWM modules, with an i2c interface, to control the servos and therefore reduce jitter as much as possible.
The general overview looks similar however, each hardware PWM module can now control 16 servos. I’m waiting for a couple of these PWM modules to come in from overseas, along with some prototyping shields for the Arduino – this will allow the DCC interface module to be directly mounted onto the Arduino making the entire project much simpler and tidier.
More updates next week…
Connections…
If any of you are wondering about the connectors used on the printed circuit boards (PCBs), these are known as Dupont connectors –
You can buy them in different sizes from single way (shown above) to ten way and above. If you search on your favourite auction site you will find many suppliers selling the connector housing, connectors and the crimp tools also. You can also crimp the connectors with a pair of pliers if you are careful.
There is a detailed article on this blog with lots more information.


