Adafruit Trinket Software Serial

  1. Adafruit Trinket Tutorial
  2. Adafruit Trinket Projects

Tags: uart trinket. Some AVR devices, like attiny85 (on Adafruit Trinket, for example), do not have hardware UART. However, it would be still nice to have serial output from them. I wrote a simple SoftSerial package, which can use any GPIO pin as TX UART pin. Adafruit Industries, Unique & fun DIY electronics and kits Adafruit Trinket M0 - for use with CircuitPython & Arduino IDE ID: 3500 - The Adafruit Trinket M0 may be small, but do not be fooled by its size! It's a tiny microcontroller board, built around the Atmel ATSAMD21, a little chip with a lot of power. We wanted to design a microcontroller board that was small enough to fit into any.

Adafruit Trinket Tutorial

Adafruit Pro Trinker Board specs:

  • ATmega328P
  • 16MHz clock rate, 28K FLASH available
  • USB bootloader with an LED indicator
  • FTDI headers

Adafruit Trinket Projects

  • Micro-USB jack for power and code uploading
  • On-board 5.0V power regulator with 150mA output capability and ultra-low dropout. Up to 16V input, reverse-polarity protection, thermal and current-limit protection.
  • Power with either USB or external output (such as a battery) - it'll automatically switch over
  • On-board green power LED and red LED at pin #13
  • Reset button for entering the bootloader or restarting the program
  • Works with 99% of existing Arduino sketches (anything that doesn't use more than 28K, and doesn't require pins #2 and #7)
  • Mounting holes, you can easily attach it to breadboard or plug it in your own circuit board!

You can find more info for Trinket pinout in official Adafruit site here.

Pinout of Pro Trinket board:

  • RX - also known as Digital #0, this is the hardware serial input pin
  • TX - also known as Digital #1, this is the hardware serial output pin
  • Digital 3 - this pin can also be used as a PWM output pin using analogWrite()
  • Digital 4 - Nothing particularly special about this GPIO pin
  • Digital 5 - this pin can also be used as a PWM output pin using analogWrite()
  • Digital 6 - this pin can also be used as a PWM output pin using analogWrite()
  • Digital 8 - Nothing particularly special about this GPIO pin
  • Digital 9 - this pin can also be used as a PWM output pin using analogWrite() It's also good for driving servos because its a high-speed PWM output
  • Digital 10 - this pin can also be used as a PWM output pin using analogWrite() It's also good for driving servos because its a high-speed PWM output
  • Digital 11 - Also known as the SPI MOSI pin. this pin can also be used as a PWM output pin using analogWrite()
  • Digital 12 - Also known as the SPI MISO pinDigital 13 - Also known as the SPI CLOCK pin
  • Analog 0 - also known as Digital 14, this pin can be a digital I/O pin or an analog input pin
  • Analog 1 - also known as Digital 15, this pin can be a digital I/O pin or an analog input pin
  • Analog 2 - also known as Digital 16, this pin can be a digital I/O pin or an analog input pin
  • Analog 3 - also known as Digital 17, this pin can be a digital I/O pin or an analog input pin
  • Analog 4 - also known as Digital 18, this pin can be a digital I/O pin or an analog input pin. It's also the I2C SDA pin
  • Analog 5 - also known as Digital 19, this pin can be a digital I/O pin or an analog input pin. It's also the I2C SCL pin
Trinket

The two pins that sit sort-of inside the body of the Pro Trinket, A6 and A7, are analog input only pins. They're kind of an 'extra' that you get with the Pro Trinket. These pins cannot be used for LEDs, buttons, servos, etc. They're only for analogRead() usage!

If you're used to using an Arduino Uno, you may notice that pins #2 and #7 are not available. That's because we use those two pins for the USB bootloader. They are not available for use and are not broken out.

Logic Level

There are two versions of the Pro Trinket: 3V and 5V. They are almost identical but there are slight differences in the pinouts: one has a 3V output pin in the top right, the other has a 5V output pin instead.

Download serial port driver dell. On a 3V Pro Trinket, the GPIO are 3.3V output level, and should not be used with 5V inputs. On a 5V Pro Trinket, the GPIO are 5V output level, and can be used with 3V inputs but may damage electronic devices that are 3V input only!

  • Aref pin - this is the optional analog reference pin for the analog converter, to be used when you want the 'top' of the analog converter to be different than 3V or 5V. Connect this to your desired reference voltage (between 0 and the Pro Trinket voltage) and useanalogReference(EXTERNAL)
Posted :