Arduino: Difference between revisions
m Recategorize |
arduino types |
||
| Line 1: | Line 1: | ||
== Programming the Arduino Mini/Nano == | == Programming the Arduino Mini/Nano == | ||
You can use a regular Arduino Uno or Duemilanove to program an Arduino Mini. To do so: | You can use a regular Arduino Uno or Duemilanove to program an Arduino Mini. To do so: | ||
| Line 9: | Line 8: | ||
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. | 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. | ||
If you're having issues uploading, make sure the settings look like the image below. | |||
<gallery> | |||
Arduino_Uno_to_Mini_Connection.png|Arduino Uno/Duemilanove to Mini Connection | |||
Arduino_Mini.png|Arduino Settings | |||
</gallery> | |||
=== Types === | |||
==== Arduino Nano ==== | |||
[[File:Arduino-nano.jpg|thumb|right|200px|Arduino Nano with a MEGA328P]] | |||
Nanos have the USB mini connector for power and serial. These are typically around $2.25 USD each. | |||
==== Arduino Mini ==== | |||
Not all Arduino Minis from eBay have the same microprocessor. Some have the Atmel Atmega168 while others have the Atmega328. The differences are listed in the following table. | |||
{| class="wikitable centered right" | |||
! Parametrics !! Atmega168 !! Atmega328 | |||
|- | |||
! Memory Size (flash) | |||
| 16 KB || 32 KB | |||
|- | |||
! CPU Speed | |||
|colspan="2"| 20 MIPS | |||
|- | |||
! SRAM Size | |||
| 1024 bytes || 2048 bytes | |||
|- | |||
! EEPROM/HEF Size | |||
| 512 bytes || 1024 bytes | |||
|- | |||
! Operating Voltage | |||
|colspan="2"| 1.8v - 5.5v | |||
|- | |||
! Operating Temperatures | |||
| -40C to 150C || -40C to 85C | |||
|} | |||
Without looking too closely, these two boards look identical but with a different microprocessor. | |||
<gallery> | |||
Arduino-mini168.jpg|Mini Atmega168 | |||
Arduino-mini328.jpg|Mini Atmega328 | |||
</gallery> | |||
While the differences are slight, the Atmega 168 does have half the memory capacity and EEPROM size. | |||
== Arduino and Raspberry Pi Serial Integration == | == Arduino and Raspberry Pi Serial Integration == | ||
Revision as of 19:26, 2 September 2019
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), TX (Pin 1), Reset (RST) from the Arduino Uno/Duemilanove to RXI, TXO, RST 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.
If you're having issues uploading, make sure the settings look like the image below.
-
Arduino Uno/Duemilanove to Mini Connection
-
Arduino Settings
Types
Arduino Nano

Nanos have the USB mini connector for power and serial. These are typically around $2.25 USD each.
Arduino Mini
Not all Arduino Minis from eBay have the same microprocessor. Some have the Atmel Atmega168 while others have the Atmega328. The differences are listed in the following table.
| Parametrics | Atmega168 | Atmega328 |
|---|---|---|
| Memory Size (flash) | 16 KB | 32 KB |
| CPU Speed | 20 MIPS | |
| SRAM Size | 1024 bytes | 2048 bytes |
| EEPROM/HEF Size | 512 bytes | 1024 bytes |
| Operating Voltage | 1.8v - 5.5v | |
| Operating Temperatures | -40C to 150C | -40C to 85C |
Without looking too closely, these two boards look identical but with a different microprocessor.
-
Mini Atmega168
-
Mini Atmega328
While the differences are slight, the Atmega 168 does have half the memory capacity and EEPROM size.
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 and then connect:
- Arduino Pin 0 (RXI) to Raspberry Pi Pin 8 (UART0_TXD)
- Arduino Pin 1 (TXO) to Raspberry Pi Pin 10 (UART0_RXD)
This gets around needing to step up/down the voltages from 3.3v to 5v since everything will be at 3.3v.
If everything works, you should be able to talk with the arduino via the serial device. See the Raspberry Pi Serial page