How to Make a Gun Controlled Lamp

About: Hello and welcome! My name is Austin. I enjoy creating interesting projects and sharing my projects and ideas with all of you. Please feel free to check out my Youtube channel: https://www.youtube.com/user/a...
More About austiwawa »

Hello!

In this tutorial I will be explaining how I made my gun controlled lamp. The lamp is controlled by an IR remote. You can watch this tutorial on Youtube at:

Step 1: Arduino Code

Also, depending on which IR remote you are using you may have to insert different code values for the buttons on your remote. For example, in the code posted below the value for the OK button on my remote was "0xFF02FD". If you are going to use a different remote than what I used you will need to figure out the proper values for its buttons. You may be able to figure this out by doing some research on google, or you can download an IR decoder sketch. There are many tutorials out there on how to do this.

If you are having troubles with any of this "FoamboardRC" has an excellent instructable on using IR remotes with Arduino. Here is the link to his instructable:

CNC Contest

Make it Move

Teacher Contest

7 Discussions

Great idea! It would be even better if the IR remote would be in the gun and the button press would be the trigger of the gun. But You just got yourself a new follower. Keep on making things like this!