Introduction: How to Make an RGB-LED Health Indicator for Minecraft - Arduino!
You want to make cool light feedback for your perfect gaming experience in minecraft? Look no further!
What you'll need:
- 1 Arduino (any type that accepts Vin Power)
- 1 Breadboard / Prototypeboard
- A few Jumper-wires
- 3 Transistors (I didn't have power transistors so I used signal)
- A 12V DC Power Supply (You probably get one when you buy the LED-Strip)
- 1 or multiple 12V RGB LED-Strips
- Minecraft 1.8
- Python ready to be used
P.S: If you made this, please share it with the "I made it!" Button! It's really motivating and intresting to see what you guys do with this!
Step 1: Setting Up the Circuit
Build the basic circuit shown in the Image above! You may have to modify this a bit if you're using a different RGB LED. My RGB LED has 3 negative RGB pins and one positive pin. Yours might have 3 positive RGB pins and one negative pin.
Step 2: Setting Up the Arduino
Once you have everyhing set up you can upload the Arduino project file that's provided in the downloads and close the Arduino IDE.
Step 3: Setting Up Minecraft
Once you're done with the Arduino you can go to your Minecraft directory using %appdata% on Windows. Next go to the logs folder and paste the python file that's provided in the downloads. Next Shift+Right Click while no file is selected in the folder and click on "Open Command Window here". Type "python ard.py" and wait for it to display:
If python is not set up, watch this tutorial:
Step 4: In-Game
You're almost done now! Next you have to create a new SINGLE-PLAYER world, give yourself a command block using "/give <playername> command_block" and paste this text into it: http://pastebin.com/Tmy4xX8B
Activate the command block with a button and wait for the structure to build. Once it's done you will see a sign that says "Objective Add" click on it and you should be done!
Check the LED(s)! If they're changing colors you did everything right! If they're not check the next step!
Step 5: Any Problems?
If it doesn't work or you're experiencing any problems try theese steps:
- Check the command prompt window did it say "COM5 True"? If not write a comment!
- If 1. worked but the console displays nothing else you probably have a problem In-Game! When the script detects a health change it writes "Detected 0-10!" in the console.
- Check the circuit! Did you connect all the right cables? Check if you connected the power supply and the RGB pins of the LED(s)! Maybe you connected the R cable to the G pin on the LED or vise versa.
- Be sure the LED is actually working!
- Write a comment if you still have a problem!
We have a be nice policy.
Please be positive and constructive.