Jump to content

Arduino: Difference between revisions

From Smithnet Wiki
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:


The DTR line if used to trigger a reset pulse in software IDE (see [https://rheingoldheavy.com/arduino-from-scratch-part-11-atmega328p-dtr-and-reset/ here]).
The DTR line if used to trigger a reset pulse in software IDE (see [https://rheingoldheavy.com/arduino-from-scratch-part-11-atmega328p-dtr-and-reset/ here]).
* [https://docs.arduino.cc/retired/boards/arduino-duemilanove/ Duemilanove]


=== millis() ===
=== millis() ===
Line 37: Line 35:
== Hardware ==
== Hardware ==


* Uno
* [https://docs.arduino.cc/retired/boards/arduino-duemilanove/ Arduino Duemilanove]
** [https://docs.arduino.cc/hardware/uno-rev3/ Uno]
** ATmega328 (16 MHz)
** [https://docs.platformio.org/en/stable/boards/atmelavr/diecimilaatmega328.html PlatformIO]
* [https://docs.arduino.cc/hardware/uno-rev3/ Arduino Uno R3]
** ATmega328P (16 MHz)
** [https://docs.platformio.org/en/latest/boards/atmelavr/uno.html PlatformIO]
** [https://docs.platformio.org/en/latest/boards/atmelavr/uno.html PlatformIO]
* Micro
* [https://www.sparkfun.com/pro-micro-5v-16mhz.html SparkFun Pro Micro]
** [https://docs.arduino.cc/hardware/micro/ Micro]
** ATMEGA32U4 (16 MHz)
** ?
** [https://docs.platformio.org/en/latest/boards/atmelavr/sparkfun_promicro16.html PlatformIO]
* Nano
** Direct USB -> can appear as mouse/keyboard
** [https://docs.arduino.cc/hardware/nano/ Nano]
* [https://docs.arduino.cc/hardware/nano/ Arduino Nano]
** [https://docs.platformio.org/en/latest/boards/atmelavr/nanoatmega328.html PlatformIO]
** ATmega328PB (16 MHz)
** [https://docs.platformio.org/en/latest/boards/atmelavr/nanoatmega328new.html PlatformIO]
** [https://wolles-elektronikkiste.de/en/atmega328pb-based-boards 328PB additions]
** [https://wolles-elektronikkiste.de/en/atmega328pb-based-boards 328PB additions]



Latest revision as of 21:16, 19 September 2025

General

Startup & Programming

On reset or powerup, ehe Optiboot or other bootloader code is run. If an external reset was the cause, listening mode is entered, and the LED is flashed. Programming commands in STK500 protocol are listened for, of the serial line at 115200 speed. If none are received in a small timeout window (~ 1s), the normal code is executed.

The DTR line if used to trigger a reset pulse in software IDE (see here).

millis()

Documentation

Useful Libraries

Hardware

Development Environment

  • SHIFT-ALT-F to format document

Platformio.ini

  • monitor_speed = 115200