[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1030489 [View]
File: 1.45 MB, 3264x1840, WP_20160730_19_04_05_Pro.jpg [View same] [iqdb] [saucenao] [google]
1030489

Using an arduino uno as a gamepad with switches connected between the IO pins and ground used to toggle joystick buttons on and off.

What I want though is for the switches to also control LEDs. I just found out about transistors and what they do so I want to use them instead of a SPDT switch as I had originally planned. What I need to know is the type of transistor I need (one that lets current flow when the base pin is unpowered) and what resistor to use between the switch and the base pin.
(I marked the LED resistor as ? But it turns out it needs to be a 33p ohm 1/4watt resistor)

Navigation
View posts[+24][+48][+96]