The hydrocontrol bootloader is based on the arduino mega bootloader with the following changes:
- fixed a bug, where the sketch would sporadically not start, when coming from the watchdog restart
- removed the waiting time, when coming from a watchdog restart
forum post about the bug and how to code the bootloader (both not needed if you use the standard hydrocontrol bootloader)
https://forum.arduino.cc/index.php?topic=378288.msg2612863#msg2612863
How to upload the bootloader
First, you need an arduino AVR ISP programmer. You can buy one. If you already have an arduino, you can use this as ISP programmer. I use an arduino. Google for help.
- install the arduino IDE
- download the hydrocontrol bootloader file from the file section direct link
- rename and move it to
- C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\stk500v2\stk500boot_v2_mega2560.hex
- start the arduino IDE
- connect the PC to the programmer via usb.
- connect the Programmer to the hydrocontrol PCB with confectioned 6 conductor flat ribbon cable or jumper cables.