The LED at the far left is simply a ‘blinky LED’ I flashed into the target ATMega168 you see on the ZIF socket. To program it, set the Board target to the AVR your programming, Port to the FTDI cable port, and Programmer to Arduino ISP as usual (although, for sake of logical separation, I copied the section of the PROGRAMMERS.TXT file and renamed it as ‘Trinket ISP’).Īttached is a picture of the board. Flash the sketch to it and the heartbeat LED should start pulsing. 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. I used one of the $4 Adafruit ZIF sockets for convenience.īoard Target is the Adafruit Trinket (FTDI), Port is the FTDI cable port, Programmer is USBTinyISP.
#HOW TO PROGRAM ADAFRUIT TRINKET SERIAL#
USB standards prevents low speed USB devices to truly act as virtual serial ports, which is why we cannot use a serial terminal. But the Trinket can only become a low-speed USB device because of its limited hardware.
The Trinket has a USB port that is used for bootloading.
#HOW TO PROGRAM ADAFRUIT TRINKET HOW TO#
The SPI pins 10, 11, 12, 13 connect exactly the same between the Trinket and the SPI pins on the target AVR you want to program. HOW TO Fake USB Serial with a TRINKET The Adafruit Learning System. Dimensions: 1.2 x 0.6 x 0.2 / 31mm x 15.5 x 5mm Weight (no headers. 8: Programming - In communication with the slave Works with many basic Arduino libraries including Adafruit Neopixel Mounting holes Yeah Really really small For a lot more details, including a tour of the Trinket, pinout details and Arduino IDE examples, check out the Introducing Trinket tutorial Specification. 6: Error - Lights up if something goes wrong (use red if that makes sense) 5: Heartbeat - shows the programmer is running So, the setup is almost identical to the UNO board, but since the pinouts on the trinket (pro in my case) are not quite the same, you simply need to take a copy of the original Arduino ISP sketch, save to a ‘Trinket ISP’ and make the following modifications: // Put an LED (with resistor) on the following pins: If you think about it, it doesn’t matter that the Trinket doesn’t have a built-in USB interface - it does have FTDI serial … and from the perspective of the 328P, it can’t tell the difference if the data arriving on the IO pins the Arduino ISP sketch uses is from that or the 32U4 USB interface chip provided on the UNO et al … You absolutely CAN setup the trinket as a simple and effective ISP! I use it to flash a handful of my other AVR’s (Tiny13, 24, 45, Mega48/88/168’s etc). I know this has been a few months, so not sure if this will benefit the original posters, but for those stumbling onto this topic via search / google etc.