3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Interactive Beer Pong (Beirut) Table

Step 7Controlling the LEDs

Controlling the LEDs
«
  • Transistor Sketch.jpg
  • IMG_0044.JPG
 To control the LEDs we will need a transistor. Since we want to be able to change colors we will need to control each color (pin) of the LEDs meaning 3 total transistors. For this job TIP 120 transistors should work fine. Wire them up according to the sketch below. wire them to the same breadboard already attached to the foam board with the sensors. 

Make sure to connect the collector pins of the transistors to PWM pins on the arduino as we want to change the intensity of the lights and can only do so with pulse width modulation. 
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
1
Author:rohitk