Skip to content

Latest commit

 

History

History

arduino

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Arduino Notes

Prime Links

Timers and Pins

  • Timer0 - Used for millis and delay; also analogWrite/PWM on pins 5 and 6
  • Timer1 - analogWrite/PWM functions on pins 9 and 10; Servo library; Tone library (second tone)
  • Timer2 - analogWrite/PWM functions on pins 3 and 11; Tone library (first tone)

Tone library

  • On a standard Arduino board, the first tone will use timer 2 (so PWM on pins 9 and 10 will not be available);
  • the second tone uses timer 1 (preventing the Servo library and PWM on pins 11 and 12 from working).
  • On a Mega board, each simultaneous tone will use timers in the following order: 2, 3, 4, 5, 1, 0.”

Servo Library

  • The Servo library uses the same timer as analogWrite on pins 9 and 10, so you can’t use analogWrite with these pins when using the Servo library.

ATmega328

DIP Pins

The atmega328_pins

Arduino Pro Mini

USB-to-Serial Programming

Pin Connections as described on weworkweplay:

  • Connect USB DTR to Arduino GRN, aka DAW on some boards
  • Connect USB RXD to Arduino TXD
  • Connect USB TXD to Arduino RXI
  • Connect USB 3.3V to Arduino VCC
  • Connect USB Ground to Arduino BLK, aka GND on some boards

The pro_mini_usb_serial_connection

Arduino Nano

See the Official Arduino Nano site for board details.

Power

Specs:

  • Operating Voltage (logic level) 5 V
  • Input Voltage (recommended) 7-12 V
  • Input Voltage (limits) 6-20 V

The power source is automatically selected to the highest voltage source from one of:

  • the Mini-B USB connection
  • 6-20V unregulated external power supply (pin 30)
  • 5V regulated external power supply (pin 27)

See also:

Pins

The nano_pins

ATtiny

attiny_generic_pinout_and_ISP_pins.png