Use FTDI to write Arduino Pro Mini

BOM

Connection

Arduino IDE

Tool

code

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.print("*****");
  delay(200);
  Serial.print("sample");
  delay(500);
  Serial.println("*****");
  delay(200);
  Serial.println("こんにちは");
  delay(200);
  Serial.println('a');
  delay(200);
  Serial.println(1);
  delay(200);
}

Use Arduino_UNO_ISP to write Arduino Pro Mini

Making Arduino UNO A Programmer

  • Connect Arduino Uno to PC by USB
  • Select Board: Arduino UNO
  • Code: ArduinoISP from sample sketch
  • Write the sketch

Write a sketch to Arduino Pro Mini from ArduinoISP

  • Connect Arduino Uno to PC by USB
  • No need to connect Arduino Pro Mini to PC
  • Connect Arduino Uno(ISP) to Arduino Pro Mini
  • 10µF Capacitor connected to RESET and GND
  • ref.Arduino as ISP and Arduino Bootloaders
  • Open a sketch for Arduino Pro Mini
  • Select programmer : Arduino as ISP
  • Write the sketch from programmer

Write a sketch to ATmwga328P from ArduinoISP

  • ref. Arduino for other Chips
  • MiniCore
  • ATmega328/A/P/PA/PB, ATmega168/A/P/PA/PB, ATmega88/A/P/PA/PB, ATmega48/A/P/PA/PB, ATmega8/A
  • Arduino IDE > menu > Preferences > Additional Boards Manager > https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json
  • Minimal setup
  • DIP-28 package
  • TQFP-32-SMD-package
  • TQFP-32-SMD-PB- package

Connection DIP-28

ArduuinoUNO-ISP to 328P

void setup() {
  pinMode(9, OUTPUT);
}

void loop() {
  digitalWrite(9, HIGH);
  delay(1000);
  digitalWrite(9,LOW);
  delay(2000);

} 

Capaciter

表記 ピコ(p) ナノ(n) マイクロ(u)
10 10pF
101 100pF
102 1000pF 1nF 0.001uF
103 10000pF 10nF 0.01uF
104 100000pF 100nF 0.1uF
105 1000000pF 1000nF 1uF

100nF=100x1000pF=10x10^1x10^3pF=10x10^4->104

Burning the Bootloader

From Arduino to a Microcontroller on a Breadboard

FTDI driver

$ kextstat | grep -i ftdi