Flashing ESC with arduino

Started by Himadri Roy, March 12, 2015, 05:16:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Himadri Roy

This tutorial was originally posted By :Oscar Liang
http://blog.oscarliang.net/flash-esc-simonk-firmware-arduino-without-usbasp/

I had couple of HK F-30A laying around and decided to flash those with SimonK...but i dint have a USBAsp ( :( my bad!) Buy hey after seeing the pinout of the esc(RST,5V,GND,MOSI,ISO,SCK[all available on Arduino]) i decide to do it with arduino

[/url]

Things required: Arduino Uno(i used this only the pins would vary with different boards), DIY wire clamp
1)Cut the shrink wrap like this



2)Here's a photo of the DIY wire clamp i made using some clips and coloured wire

I will let this upto you use your imagination to make this.. ;)
For once you have tasted flight you will walk the earth with eyes skywards for there you have been and there you will long to return
- Leonardo Da Vinci

https://www.youtube.com/himadrifpv

Himadri Roy

3)Prepare the Arduino..upload Arduino ISP code from examples in Arduino IDE to the board

4)Connect the wire clamp to Arduino

SCK->13
MISO->12
MOSI->11
RESET->10




5)Download the following softwares
Flashing tool: KKMulticopter Flashtool(http://lazyzero.de/en/modellbau/kkmulticopterflashtool)
SimonK Firmware Download: https://github.com/sim-/tgy/downloads (just get the latest one)

6)Unzip the flashing tool files into C or D drive in a folder name "flash"
Unzip the Flashing files into C or D drive in a folder name "esc"

7)Connect the clamp to esc



8)In command prompt write the following code(replace the com value with your Arduino's COM port and the drive with which you're using)

C:\flash\lib\avrdude\windows\avrdude.exe -P COM10 -b 19200 -c arduino -p m8  -v -e -U flash:w:"C:\esc\bs_nfet.hex":i

9)Before hitting enter hold your esc so to prevent any error(don't panic if you get an error. you haven't fried the ESC just redo the connections again)



10)After few seconds you should get the following output



Congratulations you have your SimonK ESC...don't forget to test it..you should notice the quick response and higher resolution of change of speed...
The ESC now runs cooler and huge performance change and no more irritating beeps when the throttle is idle

Don't connect the power line in reverse polarity you will surely burn the MCU
If you get any errors check you connections..
I would recommend scratching the pads lightly to remove the flux(worked for me! ;D)and then flashing
Try to keep your hands steady while flashing!
Any Good Luck flashing ESC!  ;D
For once you have tasted flight you will walk the earth with eyes skywards for there you have been and there you will long to return
- Leonardo Da Vinci

https://www.youtube.com/himadrifpv

Himadri Roy

This will also work for F-20A ESC
For once you have tasted flight you will walk the earth with eyes skywards for there you have been and there you will long to return
- Leonardo Da Vinci

https://www.youtube.com/himadrifpv

miginstruments

Hello sir I was trying to upgrade my kk board to the latest firmware using arduino, but dint succeeded. can you help me out in this regard.

Himadri Roy

Please no 'Sir' formality i'm only 17...what error are you getting? which kk your using kk2.0 or kk2.1?
For once you have tasted flight you will walk the earth with eyes skywards for there you have been and there you will long to return
- Leonardo Da Vinci

https://www.youtube.com/himadrifpv

miginstruments

don't no what error it is, I did it last month so don't remember what error it was. ll give a try again n let you know.