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.

Schematic-02

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.

ProtoShield

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 –

Dupont Connector

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.

Not quite there yet…

I have now combined the servo code with the i2c slave to allow the servo driver module to receive instructions from the DCC-i2c Bridge. The basic functionality works but there is some jitter visible on the servos. Maybe I need to look at the servo driving code to see if there is anything that can be ‘tweaked’ to remove the jitter. The original code was timed for 20 servos, I only need 8 so there may be room for optimisation here.

Progress!

Well, after a few hours working on the project last night we have some progress. I now have a working DCC to I2C bridge module and a ‘demo’ I2C Slave module. The plan is to integrate the I2C Slave code with the existing Servo Controller module to allow it to control the servos based on the I2C (DCC) instructions received.

Work in progress
Work in progress

Each of the servo controller modules can control 8 servos, in theory we can connect 128 of these to enable control of 1024 servos directly.