Reset And Regulator Output - adafruit learning system Trinket Introduction Manual

Table of Contents

Advertisement

programming, but it can also be used as a PWM analog output and an analog input
known as Analo g A2
Note the numbering of analog pins: Pin 2 is Analog 1, Pin 3 is Analog 3, Pin 4 is Analog 2.
For the Uno, the terms A1, A2, and A3 are mapped for you. For ATtiny85's, they are not.
So for the pinMode calls, use the Pin number (stenciled on Trinket), for analogRead, use
the analog number.

Reset and Regulator Output

The final two pins are at the bottom of the board.
First is the Rst reset pin. This is connected directly to the ATtiny85's reset pin and also the
reset button which is right next to it. The reset pin is used to enter the bootloader and to
reset the board in case you want to restart it. It's also possible to use this pin to re-program
in the bootloader or completely remove the bootloader if you have an AVR programmer
such as an AVR Dragon, MKii or USBtinyISP. If you want to re-program the board when its in
an enclosure or box or otherwise hard to reach, wire a simple button from the RST pin to
ground and press it to enter the bootloader for 10 seconds. The #1 LED will pulse to let you
know. The reset button cannot be used as a GPIO, but we think its a lot more useful as a
proper reset button!
Lastly we have the regulator output pin. There is an onboard mini power regulator that will
take up to 16V DC from the BAT+ or USB connection and regulate it down to a steady 3.3V
or 5.0V DC so its safe to use with your sensors and LEDs. On a 3V Trinket, this output will be
about 3.3V. On a 5V Trinket, this output will be 5V so be aware in case you want to swap one
with the other. You can draw up to 150mA output from this pin. If you need more current, you
may want to get it directly from the USB+ pin, which supplies 5V @ 500mA from a computer
or wall adapter
© Adafruit
Industries
https://learn.adafruit.com/introducing-trinket
Page 12 of 48

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Trinket and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents