- 1](2
- 3)(4
- 5)(6
- Reset 7)(8
- GND 9)(10
- 11)(12
- 13)(14
- 15)(16
- 17)(18
- MOSI 19)(20
- MISO 21)(22
- SCLK 23)(24
- 25)(26
- 27)(28
- 29)(30
- 31)(32
- 33)(34
- 35)(36
- 37)(38
- 39)(40
-
- nano /usr/local/etc/avrdude.conf
- change to:
-
- programmer
- id = "linuxgpio";
- desc = "Use the Linux sysfs interface to bitbang GPIO lines";
- type = "linuxgpio";
- reset = 4;
- sck = 11;
- mosi = 10;
- miso = 9;
- ;
-
- If everything is hooked up correctly you should now be about to communicate between the Raspberry Pi and Arduino/AVR.
-
- Time for a quick test;
-
- pi@raspberrypi avrdude-6.2/~ $ sudo avrdude -c linuxgpio -p atmega328p -v
- -c Specify the programer type
- -p Part Number. Use atmega328p for the Arduino UNO
- -v Verbose output