On Off Switch

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Bill_Brown
 
Posts: 57
Joined: Fri Sep 25, 2015 12:18 pm

On Off Switch

Post by Bill_Brown »

I just purchased a Trinket 5V, and a On/ Off switch. But I need guidance as to where the switch should be soldered to the Trinket. Let me explain my project. I want to turn on a single Superbright 5mm white led. Once turned on I want Trinket to pulse the led slowly. I will be using a single 18650 battery as power. This project is similar to the Tesla walking cane project. Except this is for a Steampunk lightsaber. Any help will be appreciated. This is my first Trinket project.

User avatar
Benengel94
 
Posts: 15
Joined: Mon Nov 16, 2015 12:21 am

Re: On Off Switch

Post by Benengel94 »

Do you have the power back pack for the trinket? If so then the switch should by put on the two copper circles on the top of the board next to the port. But be sure to scratch off the trace first, the trace acts like a permanent on switch. If you don't have the backpack then you should probably get one if you want to charge up your battery and run the device with no cables attached.

User avatar
Bill_Brown
 
Posts: 57
Joined: Fri Sep 25, 2015 12:18 pm

Re: On Off Switch

Post by Bill_Brown »

I do not have a battery pack. I made one myself. I assume the leads for the battery go to Battery and Ground. Then the switch would go where? I plan on taking battery out of tray to charge it.

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: On Off Switch

Post by adafruit_support_bill »

The switch would be wired in-line with the positive lead from the battery. One pin connects to the red wire on the battery, the other to the BAT pin on the Trinket.

User avatar
Bill_Brown
 
Posts: 57
Joined: Fri Sep 25, 2015 12:18 pm

Re: On Off Switch

Post by Bill_Brown »

I understand what you are tell me. But to be sure, could support provide a photo or video of this connection. Please!

User avatar
hiduino
 
Posts: 862
Joined: Sat Sep 01, 2012 7:05 pm

Re: On Off Switch

Post by hiduino »

The closest diagram will be something similar to this, https://learn.adafruit.com/3d-printed-e ... it-diagram.
This is using the Gemma but it is similar to the Trinket JST pinouts, which are BAT+ and GND.

Some other examples, https://learn.adafruit.com/3d-printed-l ... it-diagram.
https://learn.adafruit.com/3d-printed-c ... it-diagram

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”