Go Down

Topic: cheap alcohol breath tester = arduino! (Read 2110 times) previous topic - next topic

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

Code: [Select]

##############################################################

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
****************

http://www.youtube.com/watch?v=gJfvJTkXxpA&list=UU5sJLw8AZAU9OoftY-tHVPw&index=1&feature=plcp

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

robtillaart

Quote
i got a alcohol breath tester from work the other day

What sensor was inside?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

rotceh_dnih

um good question its just a simple two pin sensor , around where its solderd on theres some text on the silkscreen that reads "S14434" and on the other side it says "HW050530118" if that helps . havent played with the sensor as i've moved on to a nother board from a heli that has a nrf240l chip built in with a atmega88 so as you can guess im haveing more fun with that :)

robtillaart

Both numbers don't google a clue,  anyway, thanks!
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up