The Adafruit Trinket 5V mini-microcontroller is a tiny (27 x 15mm) Arduino compatible processor bo...The Adafruit Trinket 5V mini-microcontroller is a tiny (27 x 15mm) Arduino compatible processor board which is programmable via its micro-USB socket. Its ATtiny85 processor has 8k bytes of flash (programme) memory, 512 bytes of SRAM (static RAM) and 512 bytes EEPROM and runs at up to 16MHz. The board is capable of outputting 150mA and has an ultra-low drop-out regulator which will switch between USB and battery supply automatically. Adafruit provide a free tutorial and example code to get you started, imagine driving 150 NeoPixels with such a dinky board. Supplied as a fully assembled board plus 2 x 5-pin strips of 0.1in. male header pins for you to solder on as required.
Best current price£8.27from Rapid Online - Rapid Electronics Ltd.
The Adafruit Trinket 5V is an ultra-compact, Arduino-compatible microcontroller board ideal for hobbyists and makers looking to embed sophisticated control into small projects. Its key benefit lies in its powerful ATtiny85 processor packed into a tiny 27x15mm footprint, offering 8k flash memory and 16MHz clock speed. A potential caveat for beginners is its size, which means fewer pins compared to larger Arduino boards, requiring careful planning for complex projects.
All features
Model Part Number
1501
Brand
Adafruit
Extended Product Information
FAQs
What is the main difference between Trinket 5V and Trinket 3.3V?
The primary difference is the operating voltage. The Trinket 5V runs at 5V and is suitable for logic levels up to 5V, while the Trinket 3.3V runs at 3.3V and is ideal for interfacing with 3.3V sensors and components.
Can I use this with external power instead of USB?
Yes, the Trinket 5V has an onboard regulator and can accept power from a LiPo battery or other suitable external source connected to the appropriate pins. It will automatically switch between USB and battery power.
How many analog inputs does the ATtiny85 have on this board?
The ATtiny85 on the Trinket 5V offers 4 analog input pins (which can also be used as digital I/O pins).
What is the maximum current I can draw from the Trinket 5V's 5V output?
The onboard regulator can provide up to 150mA of current. You should be mindful of this limit when powering external components.
Do I need to install special drivers for the Trinket 5V?
Typically, no special drivers are needed for the Trinket 5V itself. Your operating system will recognize it as a standard USB device. You do need to install the ATtiny microcontroller support package within the Arduino IDE.
Can I program it without soldering header pins?
Yes, you can upload code via the micro-USB connection. For connecting external components, soldering the header pins or using jumper wires directly to the component leads is recommended for stability.
Troubleshooting
Cannot upload code via USB
Ensure the correct board and processor are selected in the Arduino IDE. Verify the micro-USB cable is functional and data-capable. Check that you have the ATtiny board support package installed correctly.
Trinket 5V not recognized by computer
Try a different micro-USB cable and a different USB port on your computer. Ensure drivers are installed correctly if prompted by the operating system.
Code behaves erratically or resets unexpectedly
Check for power supply stability, especially if using battery power. Ensure the code doesn't exceed the available SRAM or flash memory. Add `delay()` functions if the code is running too fast for external components.
I/O pins not functioning as expected
Verify the pin mapping for the ATtiny85. Double-check your wiring and ensure components are correctly connected. Make sure the pins are configured as inputs or outputs in your code.
Pros and Cons
Pros
Extremely small form factor for space-constrained projects.
Arduino compatibility simplifies programming for those familiar with the ecosystem.
Integrated power regulator with automatic source switching is convenient.
Low power consumption makes it suitable for battery-operated devices.
Cost-effective solution for adding microcontroller capabilities.
Cons
Limited number of I/O pins compared to larger microcontrollers.
Requires soldering header pins, which may be a barrier for some users.
ATtiny85 has less processing power than more advanced microcontrollers.
Micro-USB port can be delicate if handled roughly.
Requires careful power management for higher-current peripherals.
Setup, Compatibility & Care
Setup:
Install Board Support: Add the ATtiny microcontroller board definitions to your Arduino IDE. This typically involves adding a URL to the Board Manager preferences and installing the ATtiny package.
Select Board & Processor: In the Arduino IDE, select 'Adafruit Trinket 5V' as the board and 'ATtiny85 (16MHz)' as the processor.
Upload Code: Connect the Trinket 5V via its micro-USB port to your computer and upload your sketch.
Solder Headers: If desired, solder the included male header pins to the designated pads for easy breadboarding or connecting components.
Compatibility:
Arduino IDE: Compatible with versions that support ATtiny microcontrollers.
Operating Systems: Windows, macOS, and Linux for the Arduino IDE.
Power: Can be powered via micro-USB or an external battery source (e.g., LiPo battery connected to the battery input pins).
Care:
Handle the micro-USB port with care to avoid damage.
Avoid exposing the board to moisture or extreme temperatures.