cheap alcohol breath tester = arduino!

Description of your first forum.

cheap alcohol breath tester = arduino!

Postby rotceh_dnih » April 6th, 2012, 9:36 am

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 all
##############################################################

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=gJfvJTkX ... ature=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
rotceh_dnih
 
Posts: 1
Joined: April 6th, 2012, 9:21 am

Re: cheap alcohol breath tester = arduino!

Postby Dsunlabs » June 29th, 2012, 8:16 pm

so, what if I want to do this using an arduino uno and an ATMEGA48-20PU , do I have to change the name of the hex file . I will give it a try and come back with the results haha. I have my own website www.dsunlabs.com if you want to check it out, I'm barely starting thou. Great project BTW!!! I need this for a reactive table that I want to do using arduino
Dsunlabs
 
Posts: 2
Joined: June 29th, 2012, 6:33 pm

Re: cheap alcohol breath tester = arduino!

Postby Dsunlabs » June 30th, 2012, 2:08 am

So I was trying to do that but it did not work. I am using an atmega48V 20PU but it is not an SMD. I copied the file as you pasted and tried to run in without setting fuse bits but it didnt work. Then I tried changing the name from attiny48 to atmega48 and that didnt solve the issue. I noticed then that you are calling? a file named atmega48.hex? where is that file?
also in the pics of the video I could not appreciate the 120 ohm resistor connections, is it reset/gnd? , reset 5V? . Also you have 3 resistors, those 3 resistors sum up 120ohms?, or each one is 120ohms? .

Those are some questions that I have after trying several times, sorry for all those questions, but Im really interested on getting this working.
Dsunlabs
 
Posts: 2
Joined: June 29th, 2012, 6:33 pm


Return to General Talk

Who is online

Users browsing this forum: shreejipacker01 and 1 guest