Adafruit Trinket Serial

by

Adafruit Pro Trinker Board specs:

  1. Adafruit Trinket Serial
  2. Adafruit Trinket Tutorial
  3. Adafruit Pro Trinket Serial Monitor

The Trinket has a USB port that is used for bootloading. But the Trinket can only become a low-speed USB device because of its limited hardware. USB standards prevents low speed USB devices to truly act as virtual serial ports, which is why we cannot use a serial terminal to communicate with the Trinket directly.

Adafruit Trinket Serial

Adafruit Industries, Unique & fun DIY electronics and kits USB to TTL Serial Cable - Debug / Console Cable for Raspberry Pi ID: 954 - The cable is easiest way ever to connect to your microcontroller/Raspberry Pi/WiFi router serial console port. Arduino libraries allowing Trinket to act as USB devices. NOTE: This folder contains multiple libraries. Each library must be installed individually.

  • ATmega328P
  • 16MHz clock rate, 28K FLASH available
  • USB bootloader with an LED indicator
  • FTDI headers
  • 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!
  1. Feb 03, 2015  Re: Trinket - install drivers?? By adafruit_support_rick on Tue Feb 03, 2015 12:10 pm If you use an FTDI Friend or FTDI cable, you can get the Serial Monitor, just as with a regular Arduino.
  2. Overview The Trinket has a USB port that is used for bootloading. But the Trinket can only become a low-speed USB device because of its limited hardware.
  3. Trinket does not have a Serial port connection for debugging so the serial port monitor will not be able to send/receive data Some computers' USB v3 ports don't recognize the Trinket's bootloader.
  4. Adafruit Pro Trinket - 3V 12MHz Keep the UNO's fancy USB connection with none of the size! The Pro Trinket is the Arduino Compatible solution for all of your small project needs.

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

Pinout of Pro Trinket board:Dfx audio enhancer serial.

  • 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

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.

Adafruit Trinket Tutorial

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!

Adafruit Pro Trinket Serial Monitor

  • 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)