|
|
|
|
|
|
Joined Sep 2010
69 Posts
|
GPL Firmware for Bantam BC6 and clones
Over on the iMac B6 service menu thread, I've posted a firmware file I received for a no-name clone of the Bantam BC6 (that link explains that there are many identical clones of it, none of them nearly as high quality as the original)
Now we're working on a complete replacement firmware. This thread is for the discussion. |
|
|
|
|
|
|
Joined Sep 2010
69 Posts
|
If you'd like to get in on this action, you need an ISP (In-system programmer). You can get one of those here, but I recommend finding a much cheaper one. That's the official Atmel ISP adapter.
If you've ever re-flashed your radio, this is the same process. Nysom posted a nice picture of the soldering he did for his mystery charger (no-name clone). He did a great job, so I've attached it here. |
|
|
|
|
Joined Sep 2010
69 Posts
|
To get things started, here is the pinout of the ATMega32. You'll need to download the datasheet to identify where these pins are on your chip.
I'll edit this as I get more info, but there are a few pins I'm not sure about. I haven't traced the filtering/dividing for measuring the balancer voltages on the '4051 analog mux so I don't know what every input is. There are only 6 balancer ports so there's one mystery pin in there - I don't know which one. I don't have full information on the safety circuits (Q3, Q6, Q12, and D5) - still checking that part out. So please, please don't use this yet to replace your existing firmware. Here's what I do know about the safety circuits and charging/discharging:
Colors: Red = buttons, LCD, and speaker Tan = balancer port Green = charging and discharging circuits PORTA PORTA0 - in ADC0 - filtered, divided measurement of the battery + voltage PORTA1 - in ADC1 - filtered, divided measurement of the battery - voltage PORTA2 - in ADC2 PORTA3 - in ADC3 PORTA4 - in ADC4 - filtered, divided measurement of Vin PORTA5 - out to Q15 (Q13-Q18 are the 6 pins of the balancer port) PORTA6 - in ADC6 - COM from '4051 analog mux 8 analog inputs selected from ADC6 using PORTB5-7:PORTA7 - out to safety circuits (D5) PORTB PORTB0 - in inverted from button 0 (Batt Type) (0=pressed 1=not pressed) PORTB1 - in inverted from button 1 (Dec) (0=pressed 1=not pressed) PORTB2 - in inverted from button 2 (Inc) (0=pressed 1=not pressed) PORTB3 - in inverted from button 3 (Enter) (0=pressed 1=not pressed) PORTB4 - out to speaker PORTB5-PORTB7 - out to '4051, tell it which of 8 inputs to read on ADC6 PORTC PORTC0-PORTC3 - out to LCD, but pins reversed (HD44780 compatible, but only 4-bit mode. See here for a code sample, but keep reading this thread for comments on how to swap the 4 bits) PORTC4 - out to LCD E pin (clock) PORTC5 - out to LCD command/data pin PORTC6 - out to Q13 (Q13-Q18 are the 6 pins of the balancer port) PORTC7 - out to Q14 (Q13-Q18 are the 6 pins of the balancer port) PORTD PORTD0 - out to Q16 (Q13-Q18 are the 6 pins of the balancer port) PORTD1 - USART out to TXD pin for PC link PORTD2 - out to Q17 (Q13-Q18 are the 6 pins of the balancer port) PORTD3 - out to safety circuits (Q12) PORTD4 - out 10-bit PWM OC1B - set power supply voltage for charging PORTD5 - out 10-bit PWM OC1A - set voltage for discharging PORTD6 - out to safety circuits (Q6, Q3) PORTD7 - out to Q18 (Q13-Q18 are the 6 pins of the balancer port) The crystal for the system clock runs at 16 MHz (F_CPU = 16000000). Although you might find it useful to use more, only two interrupt vectors are absolutely necessary: one for a timer interrupt; and one for ADC_READY. The ADC is not configured in free-running mode because the input is switched after each conversion. But the ADC inputs are read constantly. (Some reverse-engineered schematics are over here but they don't seem to show the ATMega32. Anyone with more info, please hit reply.) |
|
|
||
|
|
Quote:
|
|
|
||
|
|
||
|
|
Quote:
. Most of the time, DIY isn't for saving money, but learning and having fun.And, sometimes, it leads to a very improved product, as is happening with the FS-TH9X custom FW. |
|
|
||
|
|
||
|
|
Quote:
|
|
|
||
|
|
||
|
|
Quote:
So who is going to start over from scratch to create GPL firmware and how hard is it to support the various clones? |
|
|
||
|
|
||
|
|
Quote:
SP5 checked that the FW for Imax B& and Mystery clone were practically the same. According to AlexN's opinion (the guy who reverse engineered the schematic of the RC-Power B6 charger), this charger would be essentially the same as Imax B6, Turnigy Accucel-6, GT Power A-6, Mystery B6. My theory is one of the manufacturers (Bantam?) developed the first model, and the rest of them just cloned it (FW included, with minor -e.g. splash message- alterations), so the main differences among them would only be the quality of components (worse spec MOSFETS, non-precision resistors in the voltage dividers...). If this theory was true, the FW would be valid for most of them. |
|
|
||
|
|
|
|
Joined Nov 2010
14 Posts
|
I did not realize you're going to write the program again, or modify what is? What's not to like in the original?
I am a little confused after the calibration is not reload. And a bit annoying that the navigation of the main menu by pressing the buttons to "stop" and "inc" instead inc and dec. But it's those little things that fix them even have time sorry |
|
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sold Bantam E-Station BC6 Dual power charger | garrcass | Aircraft - Electric - Batteries & Chargers (FS/W) | 5 | Feb 19, 2011 12:25 AM |
| Help! RESOLVED: E-Station Bantam BC6 Dual Power Won't Turn On??? | lafuerza | Batteries and Chargers | 10 | Nov 15, 2010 12:33 PM |
| Sold Like New Bantam E-Station BC6 For Sale | Craig9080 | Aircraft - Electric - Batteries & Chargers (FS/W) | 1 | Jul 21, 2009 05:48 PM |
| For Sale Bantam e-Station EAC144 for Align / Dualksy BC-6/BC6-10 & PB-6 | sa-woody | Aircraft - Electric - Batteries & Chargers (FS/W) | 4 | Feb 09, 2009 11:10 AM |
| For Sale For Sale - Brand New Bantam E-station BC6 AC/DC Balancing Charger | helitaiwan963 | Aircraft - Electric - Batteries & Chargers (FS/W) | 3 | Aug 16, 2008 05:33 PM |