Replacing the firmware

Support forum for the mightyohm.com Geiger Counter.
http://mightyohm.com/geiger
Post Reply
xopxe
Posts: 2
Joined: Mon Dec 14, 2020 7:09 pm

Replacing the firmware

Post by xopxe »

Hi to all.

I assembled a Geiger Counter and successfully log it through the serial.
I was thinking of replacing the stock firmware with a version that would not report once per second as now, but send a message on each click. So no accumulation or computation would be made on the microcontroller, just send something on each led blink. All the accumulation, averaging, etc, would be done on the host. Or the micro could send a timestamp, and then this could be used as a hardware random number generator, for example.

I see there are the sources, and it would be easy to modify from them, but Is there a tutorial on flashing the ATtiny2313? Never flashed one of those, only some old Microchip stuff (PIC16, PIC18) and "powerful" stuff like Cortex-M or ESP32s.
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Replacing the firmware

Post by mightyohm »

Hi there,

This is a good suggestion - I don't think that I ever wrote a tutorial on how to do this.

You'll need an AVR programmer and a toolchain. The tools have changed a bit since I wrote the code for the kit, but at the time I used Atmel's AVR Studio for development. However, there are open toolchains as well. What operating system are you using?

I've used a few different programmers, but one option is the Adafruit USBtinyISP: https://www.adafruit.com/product/46
xopxe
Posts: 2
Joined: Mon Dec 14, 2020 7:09 pm

Re: Replacing the firmware

Post by xopxe »

Oh, sorry for the late response, I just assumed I would be notified by email :(
I normally work in Linux, but have no problem using whatever is necessary (when I used Microchip programmers they only worked in Windows).
So, if I understand right, there's no bootloader on the AVR, so you burn the firmware using a programmer through the ICSP lines?
A tutorial would be very welcome.

Thanks!
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Replacing the firmware

Post by mightyohm »

Yes, you have to use an AVR programmer and the ICSP lines. Thanks for the feedback, I agree that a tutorial would be helpful.
Post Reply