Home › Forum › Hardware › KIT1 Feedback › Reply To: KIT1 Feedback
so, i just put together the uradmonitor kit1, but i don’t have an isp programmer to upload the hex. but i have a lots of arduinos around…
this guide will show you how to upload the hex file to the uradmonitor kit1, using an arduino uno r3 + windoze
you will need:
– arduino uno
– 6 male to female jumper wires
– latest arduino ide
– hex file
please note: this article is for arduino uno r3, i will not explain here how to use other models. however, with a little googling + thinkering it is not complicated to adapt. for other mcu you can start here.
attention:
the nokia 5110 display and the enc28j60 ethernet modules max voltage is 3.3 volts!
the arduino uno uses 5 volts, so, to protect the display and ethernet module, it is advised to remove them from the kit, before hexing. (however, sometimes, i didn’t remove the ethernet module and it survived)
also, be sure to use tightly fitting jumper cables, you do not want to lose power or data while uploading the hex file! do not move / touch the setup while uploading!
steps:
0) download and install the latest arduino ide + drivers (arduino.cc)
1) open the ide, and go to: file > examples > arduinoisp and open the arduinoisp sketch
2) uncomment line 81 (// #define USE_OLD_STYLE_WIRING)
3) note the com port number in: tools > port (you will need this number later)
4) upload the sketch to the uno r3
5) close the arduino ide
6) remove the display (and ethernet module) from the uradmonitor board
7) unplug the arduino usb cable from the pc. connect the jumper wires as follows (see image):

uno -> kit1
gnd -> 4
5v -> 2
pin 10 (ss) -> 5
pin 11 (mosi) -> 1
pin 12 (miso) -> 9
pin 13 (sck) -> 7
it’s a good idea to write the arduino port numbers on the pcb, for future software upgrades:

8) double check the wiring between the uno and uradmonitor

9) copy ‘avrdude.conf’ file from*: c:\Users\wanek\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino6\etc\
to: c:\Users\wanek\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino6\bin\
*please note: the path can be slightly different, based on the ide version
10) copy the uradmonitor hex file to: c:\Users\wanek\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.0.1-arduino6\bin\ and rename to: ‘uradmonitor.hex’
11) open a terminal (go to start > search, type ‘cmd’ then press enter)
12) copy – paste this in the terminal (replace “wanek” with your user name):
cd c:\Users\wanek\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino6\bin\
13) connect the arduino to the pc usb port
14) replace xx (use notepad) in step 15 and 16, with the port number you noted in step 4.
15) copy – paste in the terminal:
avrdude -P COMxx -b 19200 -c avrisp -p m328p -v -e -U lfuse:w:0xdc:m -U hfuse:w:0xdf:m
you should see something similar:

16) now enter this:
avrdude -P COMxx -b 19200 -c avrisp -p m328p -v -e -U flash:w:uradmonitor.hex -U lock:w:0x0F:m

it will take a while, but if you’re seeing this, it means you have succeeded!
17) unplug the usb cable, remove the jumper wires, remount the modules and power up the device. it should start up with the uradmonitor logo. now you can connect to the global network.
attention:
if something went wrong, and after hexing there are verification errors, answer no and try again. check the quality of the wiring, do not use too long cables (max. 20cm)

i’m not sure why these errors occur, but once i answered yes, and the process apparently halted. so i closed the terminal and after that, the microcontroller is not working… probably i’ve bricked it.
radhoo has some very detailed article about mcu flashing, here
written in 2016, using arduino ide 1.6.11, on windoze 1607.