LaserTag With TV IR Controllers Part 1.

by jmorles in Circuits > Arduino

795 Views, 0 Favorites, 0 Comments

LaserTag With TV IR Controllers Part 1.

portadas_YOUTUBE_tv_remote_ingles.jpg

In these times sometimes we need to relax and play, and what more appropriate to do Electronic games based on a small arduino, here I leave the first part of the life bar to play lasertag with the control go of our tv.

Materials

51hAjjJZ9xL._SX342_.jpg
Arduino-IR-Remote-Tutorial-IR-Receiver-Breakout-Board-610x570.jpg
arduino-nano-atmega328-basado-en-ch340-compatible-D_NQ_NP_900658-MLA31583924448_072019-F.jpg
neopixel-strip-front-600x315.jpg
index.jpg

- Arduino Nano

- Neopixel led stick 8

- Infrared receptor HX1838 or similar

- Jumper Wires.

- BreadBoard

Mount the Materiaos on the Breadboard

plan.png

Neopixel Signal in:

- Arduino D pin 6

Ir receptor Pin:

- Arduino D pin 7

And the others pins of GNG and VCC or +V ares conected to de 5V and GND Pin of the Arduino

Download the Libraries

images.png

Link Neopixel:
https://github.com/adafruit/Adafruit_NeoPixel Link IR Library:

http://z3t0.github.io/Arduino-IRremote/

Arduino IDE: https://www.arduino.cc/en/Main/Donate Please donate if you can or (Just download)

Install Libraries

adaf.png
adaf2.png
ir.png

Then Enter the Arduino IDE program:

and Falow the picture instrucction:

Then select the current zip file,

and if the library install correct, you will see Library added to your libraries in the notice window.

Download sketch...

Upload to the Arduino Nano

Downloads

Check the Code of the Button

sm.png
Arduino-IR-Remote-Tutorial-Transmitting-LED-on-Remote-2-610x414.jpg
monitor.png

Choose the button that you will use as fire buton

then open the serial monitor of the arduino IDE

Now put the ir transmitter (IR LED) in front of the receptor, like 2 in far...

Press the button that you selected a couple of times, the check what code repeats, you will get sometimes scramble data, thats OK.

when you gen the code, under the input coment put the same code with a 0x infront, like this

//Inputs................................................OPERATING
if (results.value == 0x488F3CBB){

Life = Life -1; delay(500);

}

Video:

Tankyou for reading

Please Subscribe!!!