This repository will contain the code for our master microcontroller for the Animatronic Barbershop Quartet. Its purpose is to:
- Receive DMX values via the USART
- Map the DMX values to values understood by the PWM slave chips
- Write the interpreted values to the PWM slave chips via I2C
There will be 4 slave PWM chips. We think it will be possible to have no slave microcontrollers, only I2C slave PWM chips.
For more information about these chips, visit the wiki.
Our only target is the PIC18F2685 microcontroller from Microchip.
Instruction frequency is 10 MIPS (Fosc
= 40MHz, Tcy
= 100ns).
For more information about hardware, visit the wiki.
- It is recommended that you use the MPLAB X IDE for development
- Use version 1.41 or later
- Do not include MPLAB X project files when committing! Instead, keep a separate project and then "Add Existing Files", the ones that are part of this project. For now, our repository will be source code only.
- This project uses the XC8 compiler in CCI syntax mode
- Use version 1.10 or later
- To enable CCI:
- Right-click your project and select "Properties"
- Go to XC8 Global Options -> XC8 Compiler
- Check the Use CCI Syntax check box
This project is released under the MIT license. See LICENSE
.
Copyright (c) 2013 Tesla Works.