I'd like to connect a Raspberry Pi A+ with an Arduino leonardo. I'd like the rapsi to be able to upload HID sketches on the arduino.Then I'd like the arduino to run the sketch over the USB interface which is connected to a laptop for example. Is it possible?
The i2c connection seems to be easy to make: only 3 wires to plug. However I'd like to know if a single power supply was possible? For example only the raspi or only the Leonardo. I planned to provide energy to my raspi and plug a single wire between the two +5V of the devices. I read it could work but it was not safe at all. Is there a simple and safe way to proceed ?