ESC reflash with SimonK firmware

May 17, 2012 by silpstream   spacer 2 Comments   spacer Posted under: Electronics, Multicopter

 

spacer

I hadn’t gotten around to modifying the internals of my TX so I figured I’d have a go at reflashing the Hobby King 20A (F-20A) ESCs first. I chose this ESC because:

  • They were really cheap
  • They supported reflashing with SimonK’s firmware
  • They had their test pads in a row so it would be easier
  • All it’s FETs were the same (N-Channel)

Some wiring had to be done to match the pin-outs from my 10 pin AVR programmer to the test pads on the ESC. I found the information that I needed over at this RC Groups thread. I also read the instructions found here at openpilot.

As for the firmware we can find it on github along with more useful instructions. I suggest you read all of it and refer to this spreadsheet for your particular ESC.

spacer

I wanted to test this really quickly so I just slapped some wiring together with a breadboard to get everything hooked up.

spacer

The test pads are in the following order: MOSI, MISO, SCK, -, +, RESET (from bottom to top). I took the time to tin the wire, that I took from an old IDE cable, to make sure I had good contact and no stray wires crossing pads. I then lined it up and held it in place with some scotch tape so that I didn’t have to keep holding it there. The tape doesn’t really maintain the contact so prior to programming I would still need to use my finger to press down, it just keeps me from fumbling around.

With the wiring done, I plugged the AVR programmer into the USB port and fired up AVRFuses.

spacer

I set the device to “ATmega8″ which is the microcontroller found on this ESC, and probably most other ESCs compatible with the SimonK firmware. I also pointed the hex file to the firmware file that I had downloaded for my ESC. Then I took a deep breath, pressed my finger to the wire on the ESC and clicked on program. A few seconds later… “SUCCESS”.

I unhooked the ESC and reconnected it to a battery, servo tester and motor. Upon doing this I heard 3 beeps followed by a 4th telling me that everything was good. A few twists on the servo tester and the motor was spooling like a dream.

The flashing instructions make mention of the fuses on the ESC. We do not need to do this and can leave it stock.

spacer

In case something was changed accidentally (and you still have access to the ATmega) here are the default fuse settings as seen by AVRFuses.

I, on the other hand, somehow managed to mess things up and bricked 1 of my 4 ESCs during the process. Not too bad for my first time doing this, but now I had to go order another ESC. I’ll probably buy a few as spare.

Tags: avr, electronics, mods, multicopter, programming, tutorial

2 Comments + Add Comment

  • spacer
    Stan June 25, 2012 at 6:53 pm

    looks like you know what your are doing. did you make a flight with it yet?

    Reply
    • spacer
      silpstream August 16, 2012 at 2:09 am

      Yep! Got it flying and the reflashed ESC was really smooth. Thanks!

      Reply

Got anything to say? Go ahead and leave a comment!

Click here to cancel reply.

XHTML: You can use these tags: <a class="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Categories

  • Car Audio
  • Electronics
  • Multicopter

Tags

Audio avr electronics Fiberglass frame mods motor multicopter osx programming Speaker Pods Subwoofer tutorial tx/rx unboxing

Recent Posts

  • ESC reflash with SimonK firmware
  • Atmel AVR programming on OS X
  • Installing the Turnigy 9x backlight kit
  • Turnigy TX finally here
  • A2212 Brushless Outrunners
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.