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