Skip to content

Simple ATMega328PB based input controler for waitabit.

License

Notifications You must be signed in to change notification settings

calcite/luncheonmeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luncheonmeat

Hardware

Device PCB was designed using KiCAD 5.1. For more info visit KiCAD website kicad.org

Firmware

Dependencies

sudo apt-get install gcc-avr binutils-avr avr-libc gdb-avr avrdude

Note: ATMega328PB is new revision from 2017. avr-libc may not have support for this device. To add support please see how its done in .devcontainer/Dockerfile.

Build

cd firmware
make

Flashing

Flashing the device using AVR Dragon ISP:

make program

Set fuses this is done only once:

make program-fuses

Note: make will internally run avrdude with correct atributes.

Bare avrdude flashing command:

avrdude -p atmega328pb -P usb -c dragon_isp    -U flash:w:luncheonmeat.hex -U eeprom:w:luncheonmeat.eep

Serial Bootloader

Generating defines.h file:

cd firmware/bootloader
./preprocessor.sh atmega328pb 2048 PORTB PINB0 8000000 19200
make
make program
make program-fuses

Reading target fuses:

avrdude -p atmega328pb -P usb -c dragon_isp -U efuse:r:-:h

To enter bootloader hold ''5'' button and reset the device.

Resources

About

Simple ATMega328PB based input controler for waitabit.

Resources

License

Stars

Watchers

Forks

Packages

No packages published