Software update
Compiled hex file
Compiled hex file
you need
- PC or laptop
- hex file
- xloader
- FTDI adapter USB - serial. This is probably already on your hydrocontrol PCB,
- USB cable PC - Mini-USB. This is probably somewhere inside the hydrocontrol casing.
- USB extension
- Download the new hex file from the files section
- Download http://russemotto.com/xloader/
- Shut down your hydro power system.
- The PCB must NOT be powered from an external 5V power supply.
- Make sure your FTDI adapter is set to 5V, or is suitable for 5V.
- Establish a serial connection from your PC to the hydrocontrol with the FTDI232 USB serial adapter. For windows 8.1 or newer, you probably don't need to install drivers. More information:
- http://lab.dejaworks.com/programming-arduino-mini-pro-with-ftdi-usb-to-ttl-serial-converter/
- http://www.ftdichip.com/Drivers/D2XX.htm
- https://learn.sparkfun.com/tutorials/how-to-install-ftdi-drivers/all
- You can also remove the Atmega DIL chip from an arduino uno and use the arduino PCB als USB-serial adapter.
- save all your hydrocontrol settings on SD or paper
- make sure you know what your current hydrocontrol software version is: hydrocontrol Menu status / microcontroller
- Xloader settings:
- - choose the right COM port - there should be only one selection possible, if you only have one serial adapter attached.
- - Choose MEGA2560
- - baud rate 115200
- - select the hex file
- upload - after a few minutes there will be a "sucess" message in the status line.
- verify settings
If you want to revert to the old software version, download the correct hex file and upload it.
Source code
Source code
This is more complicated, but you can modify the code, if needed.
- install Arduino IDE
- install all the needed libraries (go to www.arduino.cc for help)
- do the library modifications (to do: document changes)
- open the hydrocontrol sketch
- establish a serial connection (see above, and the bootloader page)
- upload