I was wondering if you could suggest an Arduino-based solution for a problem of mine at least generally. I have a HiKey 960 board that I use to run continuous experiments. The board crashes intermittently a few times per day -- it switches off completely and can only be started by unplugging and plugging the external power supply. Debugging the application that causes the crashes is currently not feasible, so for now I want to have a remote control over the board's power supply.
The solution I have in mind is connecting HiKey's power supply to a breadboard with something like a relay and connecting the relay to the HiKey. The relay would be driven by an Arduino, that is connected to a PC. The PC is always connected to HiKey and could detect when the latter crashed; then it would send a signal to the Arduino, and the Arduino would close and open the relay.
The HiKey board is not cheap, so I wouldn't want to fry it. Do you think this would be a good and safe solution? If yes, could you advise which relay to choose and what the circuit should look like? Otherwise, could you recommend a better solution? I am mostly concerned with the hardware aspect of the project.
I have Arduino Leonardo R3; the HiKey's power supply is 12V and 2A.
Thank you in advance!