Page 1 of 1

Programming with Arduino

Posted: Mon Nov 16, 2015 6:04 pm
by Joseph P.
I was able to program a attiny2313 by using a arduino as serial programmer and AVRdude. I struggled with getting the right command. I needed to add -b19200 for the baud serial communication. It was not clear to me in all the tutorials I read. I now have a working Geiger counter!

Re: Programming with Arduino

Posted: Sat Nov 21, 2015 10:56 pm
by mightyohm
Congrats! glad you got it working!

Re: Programming with Arduino

Posted: Sun Jan 08, 2017 11:26 am
by MatejKovacic
Are there any instructions how to do this?

I have followed this instructions, and compiled the Geiger counter software with Arduino:
http://www.ernstc.dk/arduino/2313.htm

However, it seems something is not working right.

Re: Programming with Arduino

Posted: Sun Jan 08, 2017 11:55 pm
by mightyohm
Make sure you set the configuration fuses as specified in Makefile.

Code: Select all

# Fuse configuration:
# For a really nice guide to AVR fuses, see http://www.engbedded.com/fusecalc/
# LFUSE: SUT0, CKSEL0 (Ext Xtal 8+Mhz, 0ms startup time)
LFUSE		= 0xEE
# HFUSE: SPIEN, BODLEVEL0 (Serial programming enabled, Brownout = 1.8V
HFUSE		= 0xDD
# EFUSE: no fuses programmed
EFUSE		= 0xFF