bluerobotics / BlueESC

Simple, open-source ESC that uses the SimonK firmware.
GNU General Public License v3.0
184 stars 71 forks source link
design pcb schematic speed-controller waterproof

BlueESC

BlueESC Rev1 Prototype

The BlueESC is a simple, open-source electronic speed controller for three-phase brushless motors. It is designed to run the SimonK firmware on an Atmega8 microcontroller.

The hardware is licensed under GPLv3. It was inspired by and draws from other open-source ESC projects including AfroESC, WiiESC, and others. We owe a big thanks to everyone who has shared their open-source ESC designs and firmware.

We also thank Bernhard Konze and SimonK for the tgy firmware. Please see the firmware license at the top of tgy.asm. The firmware configuration files for the BlueESC are maintained in our fork of the tgy project.

Features

Current Generation: Rev. 5-8

The current major revision is designed to work with the BlueRobotics T100 Thruster. It is highly compact and is potted in an aluminum enclosure that acts as a heat sink. The board is built with two 2-layer boards, one for the power electronics and one for logic. The boards are connected by headers. This allows components to be placed on three sides, simplifies design, and minimizes cost.

BlueESC Rev5 Board

Features

Specifications

Design Files

Schematic: BlueESC.pdf

See repository for up-to-date EagleCAD schematic and board layout.

Firmware Compilation

The BlueESC uses the tgy firmware located in the BlueRobotics fork.

Mac: (Uses Homebrew)

brew update
brew install avra
make blueesc.hex

Initial Firmware Flashing

The BlueESC can be flashed using any AVR ISP programmer.

avrdude -c [programmer] -p m8 -U flash:w:blueesc.hex:i 

The fuses should be set per the instructions in the tgy instructions.

avrdude -c [programmer] -p m8 -U lfuse:w:0x3f:m -U hfuse:w:0xca:m

The Rev5 version of the board does not include an ISP header or pads. The microcontroller must be flashed with a special tool that connects directly to the microcontroller pins. Make sure that the board is powered when programming.

Firmware Flashing Through Bootloader

Once the ESC has had the firmware (including bootloader) flashed the first time, it can be reprogrammed subsequently through the PWM input pin using a programmer like the Turnigy USB Linker. This can be done through the Makefile in the tgy project as follows.

make program_tgy_blueesc

It can also be done with avrdude and the compiled hex files as follows.

avrdude -c stk500v2 -b 19200 -P [programmer port] -p m8 -U flash:w:blueesc.hex:i

I2C Commands and Address

Please also see our Arduino library for I2C ESC control.

The I2C message format allows speed and direction to be set and voltage, current, rpm, temperature, and status to be requested.

Speed Command (Register 0x00-0x01)

Bytes

Sensor Data (Register 0x02-0x0A)

Bytes

Releases

v1.0 - Rev5. Currently shipping.

v1.1 - Rev6. Added PWM pull-down resistor and low pass filter for current sense. Switched to SMT LEDs. No changes to Power Board.

Video

I2C Demonstration:

I2C Demonstration of BlueESC

Testing of Final Prototype:

Final Prototype of BlueESC

Testing of First Prototype:

First Test of BlueESC