Page 5 of 13

Re: Alternative ESC firmware (reflashing)

Posted: Sun Nov 20, 2011 11:09 pm
by ziss_dm
Hi Andrej,

You can try to increase startup power:

Code: Select all

#define PCT_PWR_STARTUP 20
#define PCT_PWR_MAX_STARTUP 25


regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Tue Nov 22, 2011 6:39 am
by ziss_dm
Hi,

Just a quick update on the progress:
  • new dynamically adjusted ZC filter
    • less chances of misfire
    • one filter for all modes: startup/slow/fast
  • reviewed lost ZC recovery strategy. Now it recovers pretty much in all cases.
  • Support of Complimentary PWM for n-FET boards
regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Tue Nov 22, 2011 3:55 pm
by funth1ngs
Hi all!

@ziss_dm
While with the ZCFastSlow branch the ESC was still resetting, the v0.12 always recovers. Well done =)!

@Andrej
I used Mystery20A and pwm_fast_200 with the TY-P1. Which revision/tag are you using?

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Tue Nov 22, 2011 8:54 pm
by crashlander
funth1ngs wrote:Hi all!

@Andrej
I used Mystery20A and pwm_fast_200 with the TY-P1. Which revision/tag are you using?

Cheers,
Heiko.

I did svn checkout last saturday (I'm not sure about revision tag).
Andrej

Re: Alternative ESC firmware (reflashing)

Posted: Tue Nov 22, 2011 9:28 pm
by crashlander
ziss_dm wrote:Hi Andrej,

You can try to increase startup power:

Code: Select all

#define PCT_PWR_STARTUP 20
#define PCT_PWR_MAX_STARTUP 25


regards,
ziss_dm

Hello,
tested today with r139 + your suggestion and it still doesn't work!

Regards
Andrej

Re: Alternative ESC firmware (reflashing)

Posted: Tue Nov 22, 2011 10:17 pm
by ziss_dm
Hi Andrej,

Even without prop? Have you removed BEMF caps?

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Wed Nov 23, 2011 4:38 pm
by crashlander
ziss_dm wrote:Hi Andrej,

Even without prop? Have you removed BEMF caps?

regards,
ziss_dm

Hello,
my tests are without props, but haven't removed BEMF caps. If you please mark them on the picture (TY-P1), I can do that.

Regards
Andrej

Re: Alternative ESC firmware (reflashing)

Posted: Wed Nov 23, 2011 5:12 pm
by funth1ngs
Hi Andrej,

crashlander wrote:Hello,
my tests are without props, but haven't removed BEMF caps. If you please mark them on the picture (TY-P1), I can do that.

Regards
Andrej

Just tested my ESC with the attached version and it works very well (the BEMF caps are not removed).

Did you set the fuses to ext. crystal / high frequency?
Can you confirm that your ESC is 100% identical to the one shown on the pictures?
Do you have another motor to test with?

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Wed Nov 23, 2011 8:40 pm
by 691175002
Does a given firmware work for all models in a familly of ESCs?

Can I flash the Hobbyking SS 40-50A?
http://www.hobbyking.com/hobbyking/stor ... A_ESC.html

Re: Alternative ESC firmware (reflashing)

Posted: Wed Nov 23, 2011 10:23 pm
by crashlander
funth1ngs wrote:Hi Andrej,

Did you set the fuses to ext. crystal / high frequency?
Can you confirm that your ESC is 100% identical to the one shown on the pictures?
Do you have another motor to test with?

Cheers,
Heiko.

Hello,
- I did not set any special stuff (apart from what ziss_dm suggested).
- It looks pretty similar (apart from missing cap. from your picture), pleas check my picture.
- I've tested with 3 motors (heavy 910rpm/V, lighter apr. 2000rpm/V and small Hacker 4100rpm/V) all have sam issues.
- I've tested with your hex and issues are still here.

Re: Alternative ESC firmware (reflashing)

Posted: Thu Nov 24, 2011 1:59 am
by ziss_dm
Hi crashlander,

Forget my question about BEMF caps, somhow I have missed that you are talking not about Mystery ESC.
But another question still remains: Is it starting motor(s) without props?

@Heiko
So, this board has all n-FETs but they are not inverted?
Why it is neccesary to change fuses?
Maybe it is better to pre-charge bootstrap capacitors for this board?

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Thu Nov 24, 2011 9:12 am
by funth1ngs
Hi ziss_dm,

ziss_dm wrote:@Heiko
So, this board has all n-FETs but they are not inverted?
Why it is neccesary to change fuses?
Maybe it is better to pre-charge bootstrap capacitors for this board?


yes, this ESC has all nFETs (IRF IRLR7843) and works with the Mystery20A hw target. Somehow it uses 6 dual transistors (SMD code H11: CHUMH11PT) plus 6 other transistors (SMD Code Y1: ROHM EMY1 / UMY1N / FMY1A), but I don't have a schematic.

It's not neccesary to "change" the fuses, I just thougt maybe he didn't set them proper after the avr reset. We can try to pre-charge the capacitors, but this board works really well for me on all my motors. I have no startup problems at all, I can't imagine what's causing Andrej's problems.

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Thu Nov 24, 2011 10:23 pm
by crashlander
ziss_dm wrote:Hi crashlander,

Forget my question about BEMF caps, somhow I have missed that you are talking not about Mystery ESC.
But another question still remains: Is it starting motor(s) without props?

@Heiko
So, this board has all n-FETs but they are not inverted?
Why it is neccesary to change fuses?
Maybe it is better to pre-charge bootstrap capacitors for this board?

regards,
ziss_dm

The motors don't start even without props!
@Heiko
I have not intentionally change fuses (I'm so fresh in AVR programing) so I'm using ziss_dm's manual how to upload using Arduino as ISP programer and modified _make.cmd form SVN (I'm Mac user that's why modified).
Regards.

Re: Alternative ESC firmware (reflashing)

Posted: Thu Nov 24, 2011 11:18 pm
by funth1ngs
Hi Andrej,

crashlander wrote:I have not intentionally change fuses (I'm so fresh in AVR programing) so I'm using ziss_dm's manual how to upload using Arduino as ISP programer and modified _make.cmd form SVN (I'm Mac user that's why modified).
Regards.


try to reset the AVR and set the fuses:

Code: Select all

avrdude.exe -C avrdude.conf -v -p m8 -P comX -c avrisp -b 19200 -e
avrdude.exe -C avrdude.conf -v -p m8 -P comX -c avrisp -b 19200 -U lfuse:w:0x3f:m -U hfuse:w:0xcf:m

After that, reflash the software. If that doesn't work, please post the avrdude output.

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Fri Nov 25, 2011 12:01 am
by ziss_dm
Hi Andrej,

Is it beepeng after power-up?

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Fri Nov 25, 2011 8:16 am
by crashlander
ziss_dm wrote:Hi Andrej,

Is it beepeng after power-up?

regards,
ziss_dm

Yes it plays boot-up melody!? And after that it is quiet.

@Heiko
Thank you I'll try during weekend.

Regards

Re: Alternative ESC firmware (reflashing)

Posted: Sun Nov 27, 2011 2:14 pm
by crashlander
Hello,
I just tried Heiko's fuse settings (my original was different only in brown-out voltage). Since the symptoms are still present I'm posting avrdude output.
Regards, Andrej

========

./Mystery20A.cmd

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x1e9307
avrdude: reading flash memory:

Reading | ################################################## | 100% 14.53s

avrdude: writing output file "flash-orig.hex"
avrdude: reading eeprom memory:

Reading | ################################################## | 100% 20.93s

avrdude: writing output file "eeprom-2011-11-27-135619.hex"

avrdude: safemode: Fuses OK

avrdude done. Thank you.


avrdude: Version 5.4-arduino, compiled on Oct 9 2007 at 11:20:31
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/andrejj/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/tty.usbmodem621
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATMEGA8
Chip Erase delay : 10000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 4 20 128 0 no 512 0 0 9000 9000 0xff 0xff
flash 33 10 64 0 yes 8192 64 128 4500 4500 0xff 0x00
lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x1e9307
avrdude: safemode: lfuse reads as 3F
avrdude: safemode: hfuse reads as CF
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "bin/Mystery20A.hex"
avrdude: input file bin/Mystery20A.hex auto detected as Intel Hex
avrdude: writing flash (2074 bytes):

Writing | ################################################## | 100% 3.23s

avrdude: 2074 bytes of flash written
avrdude: verifying flash memory against bin/Mystery20A.hex:
avrdude: load data flash data from input file bin/Mystery20A.hex:
avrdude: input file bin/Mystery20A.hex auto detected as Intel Hex
avrdude: input file bin/Mystery20A.hex contains 2074 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 3.73s

avrdude: verifying ...
avrdude: 2074 bytes of flash verified

avrdude: safemode: lfuse reads as 3F
avrdude: safemode: hfuse reads as CF
avrdude: safemode: Fuses OK

avrdude done. Thank you.
============

Re: Alternative ESC firmware (reflashing)

Posted: Sun Nov 27, 2011 3:56 pm
by funth1ngs
Hi Andrej!

I just tried Heiko's fuse settings (my original was different only in brown-out voltage). Since the symptoms are still present I'm posting avrdude output.

Hm, the log looks OK to me. Did you reset the AVR with the "-e" switch? Please connect one ESC directly to a reciever and try to start the motor this way. You can also record a short video that we can see/hear the problem ;).

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 01, 2011 9:00 am
by wektorx
I have problem with AVRootloader. I flashed ESC with software form first post on this site viewtopic.php?f=13&t=516&start=160 and set fusebits to High-Fuse: 0xCC and Low-Fuse: 0x2E
Now i can connect with flash software, write and read EEPROM, erese FLASH. But if i want to write flash there is problem.

logs:
01.12.11-00:22:16-157 > Connecting on port COM11...
01.12.11-00:22:16-332 > Switch to 1-Wire mode
01.12.11-00:22:16-335 > Device connected
01.12.11-00:22:16-335 > Program...
01.12.11-00:22:16-340 > execute compiled data
01.12.11-00:22:16-340 > selected options in compiled file:
01.12.11-00:22:16-340 > - programming FLASH
01.12.11-00:22:16-341 > - erase FLASH during programming
01.12.11-00:22:16-342 > - full verify FLASH after programing
01.12.11-00:22:16-900 > Cmd.WriteFlash.ResCheck() Error: Verify failed
01.12.11-00:22:16-941 > Device disconnected

Maybe some one have the same problem and can help me.

Thx
wektor

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 01, 2011 9:23 am
by funth1ngs
Hi wektorx,

wektorx wrote:...
01.12.11-00:22:16-900 > Cmd.WriteFlash.ResCheck() Error: Verify failed
...


I guess AVRRootloader is compiled without Flash verify:

Code: Select all

.equ   UseVerify         = 0         ; Verify FLASH command (FLASH write/erase have implicit verify, can be deactivated)

Because the write command has implicit verify, you can uncheck "Verify device after programming" in the GUI.

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 01, 2011 9:52 am
by wektorx
I tried flash ESC with all kind of setings (in option section) but problem still remain.
The AVRootloader which I use, is from your link and it seems that UseVerify is set (.equ UseVerify= 1 )

Regards

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 01, 2011 10:26 am
by funth1ngs
Hm,

if you use the one from my zip it should be enabled.

funth1ngs wrote:- Flash .\Bin\ESCBL1.hex via ISP an set the fuses BOOTRST and BOOTSZ (512 words).

I checked your fuses, it seems that you set BOOTSZ to 256 words. I don't know if this will fix it, but please try:

Code: Select all

-U lfuse:w:0x3f:m -U hfuse:w:0xca:m

And this is what I get with "Verify device after programming" enabled and disabled in the GUI:

Code: Select all

01.12.11-10:09:23-734 > Connecting on port COM3...
01.12.11-10:09:23-796 > Switch to 1-Wire mode
01.12.11-10:09:28-390 > Device connected
01.12.11-10:09:28-390 > Program...
01.12.11-10:09:28-390 > execute compiled data
01.12.11-10:09:28-390 > selected options in compiled file:
01.12.11-10:09:28-390 > - programming FLASH
01.12.11-10:09:28-390 > - erase FLASH during programming
01.12.11-10:09:28-390 > - full verify FLASH after programing
01.12.11-10:09:29-421 > executed in 1,03 sec
01.12.11-10:09:29-437 > Device disconnected

01.12.11-10:09:40-906 > Connecting on port COM3...
01.12.11-10:09:40-968 > Switch to 1-Wire mode
01.12.11-10:09:46-718 > Device connected
01.12.11-10:09:46-718 > Program...
01.12.11-10:09:46-718 > execute compiled data
01.12.11-10:09:46-718 > selected options in compiled file:
01.12.11-10:09:46-718 > - programming FLASH
01.12.11-10:09:46-718 > - erase FLASH during programming
01.12.11-10:09:47-546 > executed in 0,83 sec
01.12.11-10:09:47-578 > Device disconnected

If it's disabled, I'm not getting the "full verify FLASH after programing" message.

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Fri Dec 02, 2011 1:19 pm
by wektorx
funth1ngs:
I changed fusebits and its working great. Thank you very much.
Only one question. Mystery 12A ESc like the others Mystery has two source of 5v on PCB. One is for atmega and second is for external device (receiver etc.) We can't power microprocesor for 3pin connector.
Is it safe to flash (AVRootloader) ESC with connected battery?

Regards

Re: Alternative ESC firmware (reflashing)

Posted: Fri Dec 02, 2011 2:24 pm
by funth1ngs
Hi wektorx,

wektorx wrote:Is it safe to flash (AVRootloader) ESC with connected battery?

I always use the battery connection when flashing via BL. If you try a new and untested firmware, it's better to use a regulated power supply (9V/1A) instead of a LiPo :D.

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Mon Dec 05, 2011 7:33 am
by ziss_dm
Hi Everyone,

What do you think, about releasing v 1.0 of FW? ;) Any outstanding issues or missed/ignored suggestions left? ;)

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Tue Dec 06, 2011 9:24 am
by funth1ngs
Hi ziss_dm,

go for it! I'm very happy with your software.

There is one thing left, maybe we (or you ;)) can write a README which describes all the settings that can be configured with the hw/input files. Something like:

ziss_dm wrote:Almost.. ;) rpm = (motor rpm * rotor poles) / 2.

ENOUGH_GOODIES - number of successful electrical rotations before checking RPM.
RPM_START_MIN_RPM - minimal RPM for transition to run
RPM_STEP_INITIAL, RPM_STEP_MAX - initially when there no back EMF, it starts commutation with RPM_STEP_INITIAL speed and accelerates up to RPM_STEP_MAX. For a good start you need to provide enough power to rotate motor (with load) at least at RPM_STEP_INITIAL and motor should be able to produce detectable back EMF somewhere inside this range.

RPM_RUN_MIN_RPM - below this RPM it exits from run mode. Currently we have 2 cases:
- if current power is lower than PCT_PWR_MAX_STARTUP it goes to startup
- if higher - reset

Code: Select all

PWR_CURVE_POINT(01, 3500, 25)
PWR_CURVE_POINT(02, 7000, 50)

Basically it says that below 3500 limit power to 25% and below 7000 limit power to 50%. It is done to prevent overcurrent in case you put WOT at low rpm. ;)

I think this can help a lof of people. You can also add a sentence in the README that this software works with every PWM capable flight controller, and not only with multiwii. What do you think?

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Tue Dec 06, 2011 9:55 am
by Hamburger
good idea about the description!
What would help us unknowing living in the dark even more was an additional " raise this value, if bla, then it will do blabla".
I obviously cannot help here, sorry, not suited to volunteer.

Re: Alternative ESC firmware (reflashing)

Posted: Wed Dec 07, 2011 1:33 am
by ziss_dm
Hi,
Good Idea!! I was thinking, to use G.P. wiki for this:
http://code.google.com/p/wii-esc/wiki/H ... figuration

This way everyone can contribute(I'm a bad writer.. ;))

Or if we want fancy one, we can use Google Sites:
https://sites.google.com/site/wiiescproject/home

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Wed Dec 07, 2011 9:14 am
by funth1ngs
HI ziss_dm,

This way everyone can contribute(I'm a bad writer.. ;))

You are not the only one with bad writing skills ;), but how can we edit this page?

I would suggest we use google code, it looks easier to use.

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 08, 2011 5:21 pm
by Hamburger
I strongly support the idea of making the firmware a Version 1.0. Would be even better if we could get a supplier (or aftermarket supplier) to provide ESCs with this firmware RTF. (now that I have come to taste the sweetness going back to stock for other copters is not desirable)

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 08, 2011 7:23 pm
by Rob
ziss_dm wrote:Hi Everyone,

What do you think, about releasing v 1.0 of FW? ;) Any outstanding issues or missed/ignored suggestions left? ;)

regards,
ziss_dm


Zero problems after hours of flying I think its ready for V1.0.......
I just finish the second version of the pcb. Pictures follow tommorow.......

Ziss, Please sent a PM with your adress so I can send you 4 ESC's (if you want).

Rob

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 08, 2011 10:38 pm
by ampere-dieter
Hi Everyone,

great work of all members here. Thanks.

for a VTOL project with EDF I need 40A+ ESC. The Turbojet 60A seems to be a good candidate for this job.
Because we have for hoovering high currents I want to modify the ESC.
For this setup activ freerun mode is used, or PWM with the hi-Fets.
The Turbojet ESC is pefect conditioned for this job, IR2101S hi-lo Drivers(output in phase with input), powered by a MAX662A charge pump.

My questions are:
do you have a firmware for all N-Fet setup?
do you have experience with IR2101 setups with hi-side PWM

here some pictures of the ESC and his schematic:

best Regards, Dieter


lower side:
lower side:

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 08, 2011 11:47 pm
by ziss_dm
Hi,

My questions are:
do you have a firmware for all N-Fet setup?
do you have experience with IR2101 setups with hi-side PWM


1) Theoretically should work (this is just "bl-17a" schematic). I can create hw file later. But you would have to test it yourself. ;)
2) There are support for high side PWM, but it would not work well with this BEMF sensing circuit (virtual neural point).
3) There are support for complimentary PWM (activ freerun), but it is not tested really well.
4) Currently fw has limit: 240 000 electrical RPM, with EDF you may hit this limit. (or may not. ;))
5) Currently timing advance is fixed to 15deg which is good for low KV outrunners, but not sure for your setup.


regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Fri Dec 09, 2011 3:04 pm
by Rob
Ziss,

I have find 1 bug.... if I slowly decrease the input down to 900us (with servotester) The motor is making (little) sound (startup active?).
If I decrease fast everything is shut down correctly.

I use pwm_fast_100.inc

and will you chance in Qynx20A.inc :

Code: Select all


#define DbgLEDOff          sbi     PORTD,2
#define DbgLEDOn           cbi     PORTD,2

; FET Control *****************************************************************


LED_AAN and LED_UIT can removed....


Thanks....


Rob

Re: Alternative ESC firmware (reflashing)

Posted: Sat Dec 10, 2011 11:01 am
by ampere-dieter
Hi ziss_dm,

thanks for your helps.
I have edit a hw file for the Turbojet60A.
Please have a look on it. I'm not quite shure about port inits and AnRef.
For the first step I want to use normal setup conditions.

"Turbojet60A.inc" see here: http://www.modfly.de/media/TorboJet60A_nFET.zip

Where can I find infos for a complete tournaround to save/reflash firmware.
I have some expierence with AVR Studio and STK500v2 compatible ISP prommers, not with AVRdude.

Firmware to use? ZCFastSlow or v0.12

Regards, Dieter

Re: Alternative ESC firmware (reflashing)

Posted: Sat Dec 10, 2011 8:49 pm
by funth1ngs
Hi Dieter,

Please have a look on it. I'm not quite shure about port inits and AnRef.

there is somehting wrong wiht your port initialization.

Code: Select all

#define INIT_PD         0
#define DIR_PD          (1<<c_comp)+(1<<rcp_in)
#define BRAKE_PD        (1<<CnFET)+(1<<BnFET))+(1<<AnFET)

All FET ports must be configured as output pins, c_comp an rcp_in as input pins:

Code: Select all

#define INIT_PD         0
#define DIR_PD          (1<<AnFET)+(1<<BpFET))+(1<<BnFET)+(1<<BpFET)+(1<<CnFET))+(1<<CpFET)
#define BRAKE_PD        (1<<AnFET)++(1<<BnFET)+(1<<CnFET))

Where can I find infos for a complete tournaround to save/reflash firmware.
I have some expierence with AVR Studio and STK500v2 compatible ISP prommers, not with AVRdude.

Ziss_dm explained here how to backup/flash a firmware. But you don't have to use avrdude, just use what you know best.

Code: Select all

Firmware to use? ZCFastSlow or v0.12

Try v0.12, or checkout svn trunk.

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Mon Dec 12, 2011 2:09 am
by ziss_dm
Hi Rob,

I have find 1 bug.... if I slowly decrease the input down to 900us (with servotester) The motor is making (little) sound (startup active?).
If I decrease fast everything is shut down correctly.

Should be fixed. ;) An I also cleaned-up Qynx20A.inc.

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Mon Dec 12, 2011 2:52 am
by ziss_dm
Hi Dieter,
I have commited bord definition for TurboJet60A. You can carefully test it. ;)
Please note that I have re-arranged phases to have them like here: http://home.versanet.de/~b-konze/blc_18 ... ematic.pdf

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Mon Dec 12, 2011 3:55 pm
by EOSBandi
Hi Ziss_dm,
I'm having issues with TurnigyPlush6A (old ones, with Atmega proc) I traced the lines, and it seems that it has the same pinout as the Plush12A. However, if I flash the same firmware into a 12A and into a 6A, the 12A is working but the 6A does not start a motor. It newer reaches to a stabil rotation. It just shaking. I tried to play with the values without any success. Does anyone had a success with Turnigy Plush 6A ?
EosBandi

Re: Alternative ESC firmware (reflashing)

Posted: Mon Dec 12, 2011 11:40 pm
by Rob
ziss_dm wrote:Hi Rob,

I have find 1 bug.... if I slowly decrease the input down to 900us (with servotester) The motor is making (little) sound (startup active?).
If I decrease fast everything is shut down correctly.

Should be fixed. ;) An I also cleaned-up Qynx20A.inc.

regards,
ziss_dm


Yes its fixed... thanks......

final hardware:

Image

Re: Alternative ESC firmware (reflashing)

Posted: Tue Dec 13, 2011 12:02 am
by ziss_dm
Hi EOSBandi,

Are you testing them with exactly the same setup? Same voltage/motor/prop?

EDIT: I have found schematic of Plush 6A: http://wii-esc.googlecode.com/svn/doc/Schematics/6a.pdf
Could you please confirm that this matches your board, especially comparator connections. If yes, we would need to create special configuration for them as it slightly different from normal Plushes.

EDIT2: In case your board looks exactly like here: http://home.versanet.de/~b-konze/blc_6a/blc_6a.htm. I have commited HW profile for it. Please be carefull when testing it. ;)

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Tue Dec 13, 2011 11:13 pm
by EOSBandi
ziss_dm wrote:Hi EOSBandi,

Are you testing them with exactly the same setup? Same voltage/motor/prop?

EDIT: I have found schematic of Plush 6A: http://wii-esc.googlecode.com/svn/doc/Schematics/6a.pdf
Could you please confirm that this matches your board, especially comparator connections. If yes, we would need to create special configuration for them as it slightly different from normal Plushes.

EDIT2: In case your board looks exactly like here: http://home.versanet.de/~b-konze/blc_6a/blc_6a.htm. I have commited HW profile for it. Please be carefull when testing it. ;)

regards,
ziss_dm

You are the man!
It's working now, i tested it at the bench, flight test will follow soon. Thank you for your dedicated work.

what was the differenc?

Regards,
EosBandi

Re: Alternative ESC firmware (reflashing)

Posted: Wed Dec 14, 2011 12:31 am
by ziss_dm
Hi,

Just B and C phases swapped and different comparator connections.

regards,
ziss_dm

Re: Alternative ESC firmware (reflashing)

Posted: Wed Dec 14, 2011 11:53 am
by Synthex
I would like to know if the Hobbyking SS Series 25-30A ESC
SKU (HK-SS30A @ $5.99) works well with MultiWii ?

it uses a Atmega8 or a C8051F330 ?

This ESC has need to be reprogrammed to work better ?
Is there a firmware for it ?

Thanks a lot for your answers !

Re: Alternative ESC firmware (reflashing)

Posted: Wed Dec 14, 2011 12:10 pm
by funth1ngs
Hi Synthex,

Synthex wrote:I would like to know if the Hobbyking SS Series 25-30A ESC
SKU (HK-SS30A @ $5.99) works well with MultiWii ?

it uses a Atmega8 or a C8051F330 ?

This ESC has need to be reprogrammed to work better ?
Is there a firmware for it ?

Thanks a lot for your answers !


as far as I know, they have a SiLabs C8051. If you would like to have faster throttle response (what results in better flight stability), it's necessary to reprogram every "China" ESC.

In my opinion, the best ESCs for reprogramming are currently the Mystery/HobbyKing BlueSeries types.

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Wed Dec 14, 2011 1:25 pm
by quax
funth1ngs wrote:Hi Synthex,

Synthex wrote:I would like to know if the Hobbyking SS Series 25-30A ESC
SKU (HK-SS30A @ $5.99) works well with MultiWii ?

it uses a Atmega8 or a C8051F330 ?

This ESC has need to be reprogrammed to work better ?
Is there a firmware for it ?

Thanks a lot for your answers !


as far as I know, they have a SiLabs C8051. If you would like to have faster throttle response (what results in better flight stability), it's necessary to reprogram every "China" ESC.

In my opinion, the best ESCs for reprogramming are currently the Mystery/HobbyKing BlueSeries types.

Cheers,
Heiko.


I own a 12A version with a F330.

I use the Silabs-IDE (3.61), Config2 (2.50) and sdcc-2.9.0-setup. I had some problems with the newest versions in the web and continued with the older one, I used before.

The actual files are here:
http://home.versanet.de/~b-konze/blc_f3 ... 120_hp.zip

You must open a new project, because my IDE has somewhere pathes saved or something like that. But it's very easy to build a new project.

Copy "input_ppm.c" or(!) "input_pwm.c" to input.c and the build the HEX, depending what input mode you want to use. The PWM input is designed for 4kHz 0%-100% PWM.

This is only a "play version", but is already running on my desk.

Don't use it in this state for real flights. I think, there are some improvements and tests needed previously.

Re: Alternative ESC firmware (reflashing)

Posted: Wed Dec 14, 2011 2:08 pm
by funth1ngs
Hi Bernhard,

nice work!

I have 4 Hobbywing Pentium 12A ESCs, but the MCU is the F334 with only 2kB flash. I guess thats not enough for your code?

Cheers,
Heiko.

Re: Alternative ESC firmware (reflashing)

Posted: Wed Dec 14, 2011 5:58 pm
by quax
This actual version has 0x08f8 = 2297 bytes, means it would not fit in a F334 version. But it should be possible to reduce code size.

This is a initial version for testing, for learning the behaviour of the silabs chip.
Additionally the port setting must be adapted to each ESC, as it is with the atmega software.

Would be appreciated, if someone could help testing.

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 15, 2011 12:45 am
by Synthex
Thank you for the answers !
Well, I will take HobbyKing BlueSeries type with your wonderful Atmega firmware ! :)

Are there any generic version already compiled (hex) in http://code.google.com/p/wii-esc ?
like https://github.com/sim-/tgy/downloads

Regards,
Synthex

Re: Alternative ESC firmware (reflashing)

Posted: Thu Dec 15, 2011 1:03 am
by ziss_dm
Hi Synthex,

Currently there are no compilled .hex files. And not sure would it be possible ;(
Now we have 8 input methods and around 7 targets which is 57 hex files.

But we have nice instruction how to compile (tnx to Heiko!): ;)
http://code.google.com/p/wii-esc/wiki/F ... Assembling

regards,
ziss_dm