RCTimer/Turnigy/Hobbywing ESC DIY Firmware Flashing - Page 43 - RC Groups
Thread Tools
Dec 09, 2011, 11:38 AM
Registered User
Quote:
Originally Posted by simonk
D'oh. I had actually emailed them about this before I placed an order, but did not get a reply. I will try again. It's probably time to work on the silabs code sooner than later. I also ordered a few small ones from HobbyKing and will see if any of those are still AVRs.
Sounds like me and ordering the Eurgle 6A esc. Picture shows atmega8. Emailed them about it but they didn't know what I meant so I ordered them anyway. Probably will have SIL like the Protons
Sign up now
to remove ads between posts
Dec 09, 2011, 11:38 AM
Registered User
Quote:
Originally Posted by simonk
D'oh. I had actually emailed them about this before I placed an order, but did not get a reply. I will try again. It's probably time to work on the silabs code sooner than later. I also ordered a few small ones from HobbyKing and will see if any of those are still AVRs.
Or move to a STM32 based design, ohh I forgot that someone in the OpenPilot community think they have all IP on that solution And I know the Chines ESC is inexspenive/cheap. Good work Simon.

Magnus
Last edited by HAM2; Dec 09, 2011 at 01:32 PM.
Dec 09, 2011, 09:31 PM
Registered User
The flashing worked out fairly well and I would like to thank everyone who made it possible
Dec 09, 2011, 09:42 PM
Gravity sucks :)
Quote:
Originally Posted by HAM2
Or move to a STM32 based design, ohh I forgot that someone in the OpenPilot community think they have all IP on that solution And I know the Chines ESC is inexspenive/cheap. Good work Simon.

Magnus
I actually LOL when I read your message
But yeah, the firmware for silabs based esc would be nice.
Dec 09, 2011, 10:01 PM
Sudden Freak
c2po's Avatar
Quote:
Originally Posted by alll
Hi,
Some feedback on the Turnigy Plush 10A.
Compiled the hex with
Code:
.include "tgy.inc"        ; TowerPro/Turnigy Basic/Plush "type 2" (INT0 PPM)
I left the fuses as it (HF:0xDF LF:0xA4).

When i power the esc, it beeps (tet,tet,tet,...,teeeeet). Then when i feed them with PWM, the motor want to start but it doesn't find the right direction to spin. So the gates are fed, but there seems to be a problem with the BEMF, determining the direction to spin.

Will wait for some feedback if other members did had success with the Turnigy Plush 10A.

manu
I've just repeated manu results.

I thought it can't be, let me try the latest version on my Plush 10A - nope, same story, it plays four tones at the beginning, meaning it's alive, but cannot start the motor shaking it furiously in both directions as soon as I increase the throttle.

Recompiled again with the latest source, tried precompiled from tgy_2011-11-10_d3567e61.zip (date on tgy.hex 11/14/2011, size 5672b), played with the fuses (factory a4 df, recommended 24 d7, then a4 d7, then 84 d9 that was in the first post) - same result.

As soon as I put back tgy.hex from 09/06/2011 - ti-di-da-da and everything is smoothly running.

Although latest source works fine for me with BlueSeries 12A even without changing any fuses.
Looks like those HK 12A BlueSeries are the most economical right now at $7.39 - relatively small, light, burst up to 16A, removable heatsink, looks like a good fit for 330X size quads and other small aircrafts.
Dec 09, 2011, 10:08 PM
Carbon Flyer
Techcoder's Avatar
Guys, can I have a moment. I love this thread and the work done, but because of important family resposibilities at this time I can not do any more work on my Arducopter, such as re-programming the ESC's. I could not find a good link or person that may be selling ESC's with this firmware. I may not have the time but I do have a little money I can spend on improved the ESC for my ArduCopter.

Can anyone make a suggestion or is this not possible yet?
Dec 09, 2011, 10:15 PM
Suspended Account
http://www.quadroufo.com/product_inf...products_id=37
sells esc which you can request to be flashed with this firmware at the time of order, for no cost. He keeps the original shrinkwrap, simply making a cut around the programming pads, so the esc remains nicely wrapped. It is a good deal for U.S. buyers and the free reflash service is certainly nice.
(it seems they're having some website issues right now, but once it's back up you can see.)
Dec 09, 2011, 11:27 PM
Maiden>Confident>Cocky>Crash!
argo-2's Avatar

Error report


Hi Simon

Seems to be a problem with the new m8def.inc file. With an AVRstudio build I get:

Error 1
syntax error,
unexpected '<'
...\avrassembler\include\m8def.inc
line 4
column 0

I'll try the older file and report back.

Cheers.
Dec 09, 2011, 11:31 PM
Suspended Account
dont use included m8def and just remove a line including it from tgy.hex.
astudio5 includes its local copy on command line.
Dec 09, 2011, 11:44 PM
Maiden>Confident>Cocky>Crash!
argo-2's Avatar
Sorry reported error in wrong file:

C:\Program Files (x86)\Atmel\AVR Studio 5.0\avrassembler\include\bs_nfet.inc(4,0): syntax error, unexpected '<'
Dec 09, 2011, 11:47 PM
Suspended Account
... How did you get the files?

Did you click 'zip' at top of github or did you download file one by one?

bs_nfet looks like this:
Code:
;***************************************************************
;* For HK Blue Series with only n-Channel FETs                 *
;* Fuses should be set to -U lfuse:w:0x3f:m -U hfuse:w:0xd7:m  *
;* or similar (even intrc will work now)                       *
;* 09/2011                                                     *
;* https://github.com/sim-/tgy                                 *
;***************************************************************


;*********************
; PORT D definitions *
etc
Dec 10, 2011, 01:18 AM
Maiden>Confident>Cocky>Crash!
argo-2's Avatar
Quote:
Originally Posted by timecop
... How did you get the files?

Did you click 'zip' at top of github or did you download file one by one?

bs_nfet looks like this:
Code:
;***************************************************************
;* For HK Blue Series with only n-Channel FETs                 *
;* Fuses should be set to -U lfuse:w:0x3f:m -U hfuse:w:0xd7:m  *
;* or similar (even intrc will work now)                       *
;* 09/2011                                                     *
;* https://github.com/sim-/tgy                                 *
;***************************************************************


;*********************
; PORT D definitions *
etc
Right-clicked and save-as to my AS5 "include" folder, one by one.

As a test I did a build with bs.inc this worked fine. Actually I think the original file I posted as problematic (m8def.inc) has the same problem as well (I changed to a m8def.inc file I downloaded). I confused myself as the way AS5 reports errors is a little strange. Seems like there is some AVRstudio syntax problem with the newer files Simon has posted.
Dec 10, 2011, 01:21 AM
hacker
Quote:
Originally Posted by c2po
Recompiled again with the latest source, tried precompiled from tgy_2011-11-10_d3567e61.zip (date on tgy.hex 11/14/2011, size 5672b), played with the fuses (factory a4 df, recommended 24 d7, then a4 d7, then 84 d9 that was in the first post) - same result.

As soon as I put back tgy.hex from 09/06/2011 - ti-di-da-da and everything is smoothly running.
Yeah, it's weird! If you're feeling helpful, it would be great if you could track down which commit introduced the issue, especially as it sounds like the RCTimer 10A I ordered for figuring it out will arrive as a silabs. I explained how to download any revision earlier by going through github history and replacing the "master" in the zip-ball download URL with the git hash.

The only thing that really messes with anything is the part when I switched to 16MHz via OSCCAL, which was commit ae2499a. Maybe you could try the before and after?

Before: https://github.com/sim-/tgy/zipball/...d81e061925552e

After: https://github.com/sim-/tgy/zipball/...5d15e90281f59d

Quote:
Originally Posted by c2po
Looks like those HK 12A BlueSeries are the most economical right now at $7.39 - relatively small, light, burst up to 16A, removable heatsink, looks like a good fit for 330X size quads and other small aircrafts.
Yeah, I've been pretty happy with the 30A I purchased a while ago, except that I just caused a nice FET fire by touching the board (turning on a gate) while I was testing it with a 4S lipo. Oops.

Cheers
Dec 10, 2011, 01:23 AM
hacker
Quote:
Originally Posted by argo-2
Right-clicked and save-as to my AS5 "include" folder, one by one.
Hi! Just use the zip-ball link: https://github.com/sim-/tgy/zipball/master
Dec 10, 2011, 01:26 AM
Maiden>Confident>Cocky>Crash!
argo-2's Avatar
Quote:
Originally Posted by argo-2
Right-clicked and save-as to my AS5 "include" folder, one by one.

As a test I did a build with bs.inc this worked fine. Actually I think the original file I posted as problematic (m8def.inc) has the same problem as well (I changed to a m8def.inc file I downloaded). I confused myself as the way AS5 reports errors is a little strange. Seems like there is some AVRstudio syntax problem with the newer files Simon has posted.
Ok tried the files in the from the zip button.
All good now!

Now to flash my BS 12Amp (its all n-channel by the way - 4856A FETS).


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Rctimer 30A esc cutting out with KK board Efliernz Multirotor Drone Talk 2 May 26, 2011 02:20 PM
Sold FS: Tricopter Parts- HK401b, Pentium 30A ESC, rctimer 750kv motors pwu_1 Aircraft - General - Miscellaneous (FS/W) 2 Jan 18, 2011 09:58 PM
Sold RCTimer 2826-6 + ESC 30A New in packaging will trade as well Pics Added! planebldr Aircraft - Electric - Power Systems (FS/W) 4 May 25, 2010 09:54 PM
Discussion RCTimer 30A Programmable ESC hunter7193 Power Systems 8 Jan 02, 2010 02:27 PM
For Sale Several New ESC's - 10a, 20a, 30a - Reduced Callen9345 Aircraft - Electric - Power Systems (FS/W) 0 Apr 20, 2009 02:31 PM