-
Download and install Microchip Stuio.
-
Download and install git version control.
-
Download latest avrdude programmer and extract archive
avrdude-6.3-mingw32.zip
toC:\APPZ\Avr\
. -
Add the following lines to your
avrdude.conf
file:#------------------------------------------------------------ # ATmega328PB #------------------------------------------------------------ part parent "m328" id = "m328pb"; desc = "ATmega328PB"; signature = 0x1e 0x95 0x16; ocdrev = 1; memory "efuse" size = 1; min_write_delay = 4500; max_write_delay = 4500; read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0", "x x x x x x x x o o o o o o o o"; write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0", "x x x x x x x x x x x x i i i i"; ; ;
-
Run Git Bash, create a home folder for local repository, and clone this repo:
cd d:/Documents/ mkdir GIT cd GIT git clone https://github.com/tomas-fryza/arduino-slotcar
-
Run Microchip Studio and in menu Tools create a new External Tools... as follows (use your path to
avrdude.exe
and specify your COM port):Parameter Value Title: Send to Arduino SlotCar
Command: C:\APPZ\Avr\avrdude.exe
Arguments: -p m328pb -c arduino -b 57600 -U flash:w:$(TargetName).hex:i -P COM4
Initial directory: $(TargetDir)
Use Output window: checked Note that, in Windows you can find and/or verify the COM port by Device Manager:
-
Usage of slot car template can be found here.