04-06-2012, 16:13
(This post was last modified: 04-06-2012, 16:13 by rotceh_dnih.)
hey guys
i got a alcohol breath tester from work the other day and pulled it apart to find a atmega48v as the brains and also the isp header still at the bottom so i hooked it up , programed my arduino to be a isp then read the datesheet for the 48v afterward made this hack to the boards.text file
video
****************
now when i pick my board and compile code its readdy for my atmega48 ,now once your arduino has the isp code on it your readdy to hook up to the isp pins on the qm7298 and then you just go to Tools->programmer->arduino as ISP.
now you can load up your code and compile to the 48v through the arduino ide .. eazy same goes for any atmel chips you can make them work with arduino ide with little fuss.
the only thing i did out of arduino ide is setting fuse bits with avrdude witch i had to change as it was running at 1mhz instedd of 8mhz but still ran without that change
***** other jaycar products with atmega chips in them
GT3340 -atmega88 - D/E
most likely 50% of the meters behind the counter would have atmel chips "sometimes i wish i was a buyer id even be able to do firmware support ie jaycar logos and understand how the products work"
will add more as i see them but i dont get to just rip apart thing so let me know if you know of more
i got a alcohol breath tester from work the other day and pulled it apart to find a atmega48v as the brains and also the isp header still at the bottom so i hooked it up , programed my arduino to be a isp then read the datesheet for the 48v afterward made this hack to the boards.text file
Code:
##############################################################
atmega48.name=Rotceh-hack QM7298 w/ ATmega48V xD
attiny48.upload.using=arduino
atmega48.upload.maximum_size=4094
atmega48.upload.speed=19200
atmega48.bootloader.low_fuses=0xE2
atmega48.bootloader.high_fuses=0xDF
atmega48.bootloader.extended_fuses=0xFF
atmega48.bootloader.path=atmega
atmega48.bootloader.file=atmega48.hex
atmega48.bootloader.unlock_bits=0x3F
atmega48.bootloader.lock_bits=0x0F
atmega48.build.mcu=atmega48
atmega48.build.f_cpu=8000000L
atmega48.build.core=arduino
atmega48.build.variant=standard
video
****************
now when i pick my board and compile code its readdy for my atmega48 ,now once your arduino has the isp code on it your readdy to hook up to the isp pins on the qm7298 and then you just go to Tools->programmer->arduino as ISP.
now you can load up your code and compile to the 48v through the arduino ide .. eazy same goes for any atmel chips you can make them work with arduino ide with little fuss.
the only thing i did out of arduino ide is setting fuse bits with avrdude witch i had to change as it was running at 1mhz instedd of 8mhz but still ran without that change
***** other jaycar products with atmega chips in them
GT3340 -atmega88 - D/E
most likely 50% of the meters behind the counter would have atmel chips "sometimes i wish i was a buyer id even be able to do firmware support ie jaycar logos and understand how the products work"
will add more as i see them but i dont get to just rip apart thing so let me know if you know of more
Go home IW.... your drunk.
Youtube: http://www.youtube.com/user/TheMrStacie
Twitter: https://twitter.com/#!/rotceh_dnih
Youtube: http://www.youtube.com/user/TheMrStacie
Twitter: https://twitter.com/#!/rotceh_dnih