Replacing atmega32 with atmega64

728 views
Skip to first unread message

Simone Fabris

unread,
Mar 13, 2015, 4:20:49 AM3/13/15
to cheali-...@googlegroups.com
So...
Flash and eeprom are getting full... Why not replace the Atmega32 with Atmega64?

Firmware should not need any major modification, and we get double flash, double ram and double eeprom.

And we could also play Mario Bros (https://www.youtube.com/watch?v=MsaYcX5aIac) :-)

What do you think?

Ciao

Simone

Paweł Si

unread,
Mar 17, 2015, 12:40:13 PM3/17/15
to cheali-...@googlegroups.com
most of the work I'm doing is to optimize the code so that it
fits into 32KB of program memory, it would be grate to have more,
but it is probably simpler to buy a M0517 charger it has 64KB of memory
and it has a better 12bit  ADC - personally it's currently my favorite charger.

Simone Fabris

unread,
Mar 18, 2015, 2:52:51 AM3/18/15
to Paweł Si, cheali-...@googlegroups.com
12 Bit ADC is a nice plus.

What are reliable supplier of M0517 charger? I know that this could be a hard question...

Thanks

--
You received this message because you are subscribed to the Google Groups "cheali-charger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cheali-charge...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Morten Schmidt

unread,
Jul 15, 2015, 11:26:14 AM7/15/15
to cheali-...@googlegroups.com
Interesting. What are the practical advantages of the 12-bit ADC?

Paweł Si

unread,
Jul 18, 2015, 12:32:00 PM7/18/15
to cheali-...@googlegroups.com
2015-07-15 17:26 GMT+02:00 Morten Schmidt <morten.s...@gmail.com>:
Interesting. What are the practical advantages of the 12-bit ADC?

In theory the voltage measurement accuracy should be greater.
 

Diogo Carvalho

unread,
Nov 10, 2015, 4:09:17 AM11/10/15
to cheali-charger
What files I have to change if I have the Atmega64? 

Paweł Si

unread,
Nov 11, 2015, 10:00:37 AM11/11/15
to cheali-charger, Diogo Carvalho

do You really have a charger with a atmega64 CPU?
can you do some pictures?


2015-11-10 10:09 GMT+01:00 Diogo Carvalho <diogoc....@gmail.com>:
What files I have to change if I have the Atmega64? 


Diogo Carvalho

unread,
Nov 11, 2015, 10:13:56 AM11/11/15
to cheali-charger, diogoc....@gmail.com
No, I have a clone with a unknow cpu, but it is very bad.
I will make some improvements in the hardware and change the cpu.
I'm thinking in atmega64 because it have more memory and have more disponible pins.

Thanks. I will try change that files to atmega64.

Diogo Carvalho

unread,
Nov 13, 2015, 11:09:28 AM11/13/15
to cheali-charger, diogoc....@gmail.com
Ok, I modified the files for atmega64 and at least I have some text in the lcd.

PS. The project compiled successfully in AtmelStudio. It is much easier for editing and compiling the source.

Paweł Si

unread,
Nov 13, 2015, 2:54:33 PM11/13/15
to cheali-charger, Diogo Carvalho
2015-11-13 17:09 GMT+01:00 Diogo Carvalho <diogoc....@gmail.com>:
Ok, I modified the files for atmega64 and at least I have some text in the lcd.

could you make some pictures of your chargers PCB?

Diogo Carvalho

unread,
Nov 13, 2015, 3:38:03 PM11/13/15
to cheali-charger, diogoc....@gmail.com
I have not modified the pcb yet.
It is the same clone version from this photo:


If anyone wants I have draw in Eagle the schematics of the original and clone Imax B6 

Paweł Si

unread,
Nov 13, 2015, 5:02:45 PM11/13/15
to cheali-charger
2015-11-13 21:38 GMT+01:00 Diogo Carvalho <diogoc....@gmail.com>:
I have not modified the pcb yet.
It is the same clone version from this photo:

is it exactly the same? Your charger has also a 12MHz crystal  oscillator?
what kind of crystal  (frequency) will you use in your mod? 
 
If anyone wants I have draw in Eagle the schematics of the original and clone Imax B6 

nice!,  I would like to see them,
although there are already schematics for the imax B6:


 

Diogo Carvalho

unread,
Nov 13, 2015, 8:05:02 PM11/13/15
to cheali-charger
sexta-feira, 13 de Novembro de 2015 às 22:02:45 UTC, cheali-charger escreveu:
is it exactly the same? Your charger has also a 12MHz crystal  oscillator?
what kind of crystal  (frequency) will you use in your mod? 
 
Is is the same except mine dont have the 74hc4951.
It have  a 12MHz crystal but I will change to 16MHz because I will use your firmware. 
 
nice!,  I would like to see them,
although there are already schematics for the imax B6:

Yes I draw the schematic based on that file, but now I have the source file to edit what I want.
Here is that schematic and the other is from my clone.

I don't have yet the final circuit of my modded Imax, but I'm planning some improvements in various blocks. 
  
ImaxB6.pdf
ImaxB6_clone.pdf

MiKa

unread,
Sep 10, 2016, 1:02:33 AM9/10/16
to cheali-charger
Hi,
can You share Eagle files too?
MiKa


Dňa sobota, 14. novembra 2015 2:05:02 UTC+1 Diogo Carvalho napísal(-a):

Diogo Carvalho

unread,
Sep 12, 2016, 4:15:57 AM9/12/16
to cheali-charger
Here is the schematic files of my modded Imax.
ImaxB6.sch
ImaxB6.pdf

MiKa

unread,
Sep 12, 2016, 12:14:45 PM9/12/16
to cheali-charger
Hi,
Thanks for sharing!
Did You make also brd file?
MiKa

Dňa pondelok, 12. septembra 2016 10:15:57 UTC+2 Diogo Carvalho napísal(-a):

Diogo Carvalho

unread,
Sep 12, 2016, 12:33:35 PM9/12/16
to cheali-charger
No, I have just made some small boards to add to my Imax clone.
I had planned to make a full board with all the changes, but the time is short and I ended by not doing.

MiKa

unread,
Sep 12, 2016, 11:44:03 PM9/12/16
to cheali-charger
Hi,
It will be a good idea to have a new board  which can be fitted in the "ebay" Imax B6 enclosure, and maybe start to thing about high resolution I2C or SPI A/D converter like MCP3424 for voltage and current measure for better support of "one cell" charging.
Some for inspiration: http://ultrasmartcharger.com/ 
;)
Regards,
MiKa


Dňa pondelok, 12. septembra 2016 18:33:35 UTC+2 Diogo Carvalho napísal(-a):

Diogo Carvalho

unread,
Sep 13, 2016, 3:33:57 AM9/13/16
to cheali-charger
Instead of an external ADC would be preferable to use a more powerful processor and with increased resolution of the ADC.
But this would involve major changes in the firmware.

MiKa

unread,
Sep 13, 2016, 5:23:21 AM9/13/16
to cheali-charger
You have a "candidate" for the new CPU? 

Dňa utorok, 13. septembra 2016 9:33:57 UTC+2 Diogo Carvalho napísal(-a):

diggit

unread,
Oct 1, 2016, 4:46:47 PM10/1/16
to cheali-charger
Anything modern supported by gcc. I'd go for some ARM based MCU or maybe MSP430.

Everything is gonna be more powerful than AVR, so graphic display capable. That means different enclosure...

Cheap, easy to get enclosure is necessary, but you won't get empty and cheap charger enclosure like Turnigy or Imax anyway.
Reply all
Reply to author
Forward
0 new messages