Arduino
From Leo's Notes
This page was last edited on 28 February 2017, at 19:06.
Programming the Arduino Mini/Nano

You can use a regular Arduino Uno or Duemilanove to program an Arduino Mini. To do so:
- Connect GND and VCC from the Arduino Uno/Duemilanove to the Arduino Mini/Nano
- Pull the Atmega 328 microprocessor from socket on the Arduino Uno/Duemilanove
- Connect RX (Pin 0) and TX (Pin 1) from the Arduino Uno/Duemilanove to RXI and TXO pins on the Arduino Mini/Nano respectively.
Then program the Arduino as you normally would while making sure that the board selected in the Arduino IDE is set to the Arduino Mini or Nano.
Arduino and Raspberry Pi Serial Integration
To make the arduino talk directly to the Pi via the UART pins, keep in mind that the arduino communicates at 5v while the Raspberry Pi can only work with 3.3v.
A possible hack is to run the arduino at 3.3v rather than 5v.
Connect the Arduino to the Raspberry Pi:
- Arduino Pin 0 (RXI) to Raspberry Pi Pin 8 (UART0_TXD)
- Arduino Pin 1 (TXO) to Raspberry Pi Pin 10 (UART0_RXD)