github twitter email rss
0001 Jun 1
3 minutes read


Homepage, wiki
Power saving techniques for microprocessors



platformio device monitor

pio device monitor --port /dev/cu.wchusbserial1410 --baud 115200

CLion + platformio

platformio init --ide clion --board uno

Arduino Uno

| Microcontroller | ATmega328 |
| Operating Voltage | 5V |
| Input Voltage (recommended) | 7-12V |
| Input Voltage (limits) | 6-20V |
| Digital I/O Pins | 14 (of which 6 provide PWM output) |
| Analog Input Pins | 6 |
| DC Current per I/O Pin | 40 mA |
| DC Current for 3.3V Pin | 50 mA |
| Flash Memory | 32 KB (ATmega328) of which 0.5 KB used by bootloader |
| SRAM | 2 KB (ATmega328) |
| EEPROM | 1 KB (ATmega328) |
| Clock Speed | 16 MHz |

  • ICSP header
  • reset button
  • Atmega16U2 programmed as a USB-to-serial converter


  • 2.1mm center-positive plug
  • Gnd and Vin pin
  • USB

Power pins

  • VIN. supply voltage or access it through this pin.
  • 5V. regulated 5V
  • 3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA.
  • GND. Ground pins.
  • IOREF. This pin on the Arduino board provides the voltage reference with which the microcontroller operates. A properly configured shield can read the IOREF pin voltage and select the appropriate power source or enable voltage translators on the outputs for working with the 5V or 3.3V.
  • AREF. Reference voltage for the analog inputs. Used with analogReference().
  • Reset. Bring this line LOW to reset the microcontroller.


  • 14 digital pins can be used as an input or output pinMode() digitalWrite() digitalRead() They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms.
  • Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data.
  • External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details.
  • PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function.
  • SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). Serial Peripheral Interface, SPI library.
  • LED: 13. There is a built-in LED connected to digital pin 13.
  • 6 analog inputs, labeled A0 through A5, each of which provide 10 bits of resolution (i.e. 1024 different values).
  • TWI: A4 or SDA pin and A5 or SCL pin. Support I2C / TWI communication using the Wire library.


  • 10 Ways to Destroy An Arduino

Hooking up lots of temperature sensors to an Arduino!topic/humboldtmakers/CYM_XhrfEgU


16 MHz
Timer0 - 8-bit, 255
Timer1 - 16-bit, 65535
Timer2 - 8-bit, 255

Timer/Counter Control Registers - TCCRxA, TCCRxB

TCCR1B last 3 bits are CS12, CS11, and CS10.

Deek-Robot Pro Mini

current draw




Connect RST, RX/TX of the «larger» Arduino to the Nano, remove the Atmega on the larger board.
5V and GND too obviously







Plant Monitor

Grow Light

cooktop temperature






Solderingжидкое оловоКанифольПайка

Back to posts

comments powered by Disqus