sim- / tgy

tgy -- Open Source Firmware for ATmega-based Brushless ESCs
http://0x.ca/tgy/
688 stars 387 forks source link

HobbyKing Red Brick 30A ESC - now with Atmega88 #34

Open FrankfG opened 10 years ago

FrankfG commented 10 years ago

Hi, since a few weeks Hobbyking delivers the Red Brick 30A ESC with a Atmel MEGA88-15AT1. The ESC looks excatly like one with the Atmega8 I noticed it when I want to connetct the ESC with my PC and start read with eXtreme Burner to test the connection. Is it possible to compile the tp.hex/tp 8kHz.hex for the Atmega88 becuause there are differences in the programm adress, i/o register ...? Many people buy this ESC but the stock firmware does not work (wrong timing, stop working after wrong timing,overheating e.g. http://www.youtube.com/watch?v=nnYPddIUTcI) I hope you can help us.

Thanks in advance!

FrankfG commented 10 years ago

Hi, the last two days I change the register names, the in/out commands ... in AVR Studio 5. I include the tp8kHz.inc and m88def.inc and finally i had 2 Errors: Invalid register line 749 (cbr ADCSRA, ADEN) and Operands out of range line 3216 ( cpi ZL, SRAM_START) I get it working with knowledge from mega88.diff. Then I flash the .hex to ESC with Extreme Burner and the ESC initializes(beep). But when I turn the servo tester does nothing happen (current is about 50mA). Can you help me? I flash back the original firmare and the esc is working again.

FrankfG commented 10 years ago

Hi, today i compile the new hex (with include tp8kHz) and upload it to the esc. The esc beep 3 times when he gets power. When i connect the servo tester/receiver i get 1 beep. I think thats ok. But when i turn the servo tester/ thr. receiver i get the siron. Whats wrong with my programm? I can´t upload it on this page but I can send it to you if you want.

Thanks

edubarra commented 10 years ago

Hi, I'm working on that too! Did you Achieve some progress with your code @FrankfG ?