This is the documentation page for the SPI_servo and I2C_SERVO boards.
This module enables you to easily control upto 7 servomotors over an SPI or I2C interface, while needing minimal resources from your CPU.
The PCB is equipped with two SPI or I2C connectors, so daisychaining multiple SPI or I2C modules is possible.
This allows you to control a chain of boards with only 4 data lines (MOSI, MISO, SS and SCK) for SPI or two lines (SDA, SCL) for I2C. This is not only pin-saving, but is is also possible do daisy-chain multiple modules (we will be releasing even more boards with other functions in the very near future)!
The board can be used with all microcontrollers, such as the Atmel AVR, Arduino/Freeduino boards, Microchip PIC, Raspbery PI etcetera.
For small servos, the power supplied by the SPI or I2C connector is enough. However current surges of up to a whole ampere are easily achieved even when two or three smaller servos need to move simultaneously. For larger servos however, the voltage drop may be to high. We suggest conneting an auxillary 5V power source to the PCB, and move the jumper.
For the SPI connector see: SPI_connector_pinout.
for the I2C connector see: I2C_connector_pinout
The pinout is standard for servo-motors;
Besides the seven servo outputs, there is an eight header:
This can be used to provide power to the servos. For example, mosts ESCs have a BEC on board. These would fit on this connector, leaving the PWM signal pin unconnected.
The only LED is a power-LED.
Solder jumper (on bottom layer): ICSP-Enable. CAUTION! Pin 1 and 2 are connected by a narrow PCB track. Cut this if you want to change this jumper setting.
1-2: Default: Both SPI connectors connected in parallel.
2-3: ICSP enabled; programming the MCU over the 6-pin connector. This connector may be marked SPI1 or SPI3 (near the edge of the board, furthest from the CPU.)
For the intro to the SPI and I2C protocols read: SPI versus I2C protocols
The board specific protocol can be found here: Servo_1.0_protocol
You should also read the General_SPI_protocol notes.
For arduino, a sample PDE is available, called ardemo_lcd.pde, also at BitWizard software download directory .
This is a demo to send things using SPI to the lcd board. The SPI routines there are applicable for SERVO boards as well.
Future hardware enhancements
Future software enhancements
- Added jumper/power connector for (external) servo power.
- Initial public release