Raspberry Arduino Interface

Install Avrdude

Sudo apt-get install avrdude

Command Line raspberry to program Arduino Mega 2560

avrdude -C/etc/avrdude.conf  -v -patmega2560 -cwiring -P/dev/ttyACM0 -b115200 -D -V -Uflash:w:/home/pi/Arduino/FM0_Serial0.hex:i