sim- / tgy

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

Added config for new Red Brick 70A v3 ESC #123

Open ahalekelly opened 7 years ago

ahalekelly commented 7 years ago

Hobbyking changed their board again, and just swapped CpFET and BpFET, on pins PC3 and PC5. Credit to Kyle Singer for figuring this out.

amordue commented 7 years ago

Confirmed working.

I had a non working RB70A loaded with RB70a2, I was wondering what was wrong so I probed the board out and figured out the problem, tested then came to submit a PR and found this :) oops.

Just in case anyone else is googling for this, numbers silkscreened on the board are 500403-1040-02 and 16 15 GO123

Thanks!

lgeek commented 6 years ago

Also found on a RB 125A ESC with the control board marked "500201-1032-02".

GHF commented 6 years ago

FYI, here's the Makefile and include changes to go with the board inc addition. I didn't want to confuse by sending a new PR with everything.

--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ SHELL = /bin/bash

 .SUFFIXES: .inc .hex

-ALL_TARGETS = afro.hex afro2.hex afro_hv.hex afro_nfet.hex arctictiger.hex birdie70a.hex bs_nfet.hex bs.hex bs40a.hex dlu40a.hex dlux.hex dys_nfet.hex hk200a.hex hm135a.hex hxt200a.hex kda.hex kda_8khz.hex kda_nfet.hex kda_nfet_ni.hex mkblctrl1.hex rb50a.hex rb70a.hex rb70a2.hex rct50a.hex tbs.hex tbs_hv.hex tp.hex tp_8khz.hex tp_i2c.hex tp_nfet.hex tp70a.hex tgy6a.hex tgy_8mhz.hex tgy.hex
+ALL_TARGETS = afro.hex afro2.hex afro_hv.hex afro_nfet.hex arctictiger.hex birdie70a.hex bs_nfet.hex bs.hex bs40a.hex dlu40a.hex dlux.hex dys_nfet.hex hk200a.hex hm135a.hex hxt200a.hex kda.hex kda_8khz.hex kda_nfet.hex kda_nfet_ni.hex mkblctrl1.hex rb50a.hex rb70a.hex rb70a2.hex rb70a3.hex rct50a.hex tbs.hex tbs_hv.hex tp.hex tp_8khz.hex tp_i2c.hex tp_nfet.hex tp70a.hex tgy6a.hex tgy_8mhz.hex tgy.hex
 AUX_TARGETS = afro_pr0.hex afro_pr1.hex diy0.hex

 all: $(ALL_TARGETS)
--- a/tgy.asm
+++ b/tgy.asm
@@ -132,6 +132,9 @@
 #include "rb70a.inc"           ; Red Brick 70A with all nFETs (INT0 PWM)
 #elif defined(rb70a2_esc)
 #include "rb70a2.inc"          ; Newer Red Brick 70A with blue pcb and all nFETs (INT0 PWM)
+#elif defined(rb70a3_esc)^M
+#include "rb70a3.inc"          ; Even newer Red Brick 70A with blue pcb and all nFETs^M
+#elif defined(rct50a_esc)^M
 #elif defined(rct50a_esc)
 #include "rct50a.inc"          ; RCTimer 50A (MLF version) with all nFETs (INT0 PWM)
 #elif defined(tbs_esc)