Minecraft Game Life-bar

by Jiaqi in Circuits > Arduino

404 Views, 1 Favorites, 0 Comments

Minecraft Game Life-bar

MC life-bar
7ecc1c35356fe316c14e043f130a0d2.jpg

This is MC game life-bar, I hope to remind exercise and drink water through it, the LED will decrease with time, after completing exercise or drinking water, you can replenish the LED through the phone button, of course, you can also define the button as other tasks.

Supplies

  • 1/16' Acrylic sheet (4*4’ is enough)
  • Laser cutting
  • One small button
  • 3D printer
  • 3D printer filament (Black)
  • NeoPixel 8 LED strip*2
  • ESP8266 chip
  • Scissors
  • Wires
  • Color printing
  • A data cable
  • Hot glue

Create Your Adafrout IO and Your IFTTT Account

Snipaste_2023-12-06_19-30-17.png
Snipaste_2023-12-06_19-30-31.png
Snipaste_2023-12-06_19-38-25.png
Snipaste_2023-12-06_19-37-53.png
Snipaste_2023-12-06_19-28-40.png
Snipaste_2023-12-06_19-29-15.png
Snipaste_2023-12-06_19-30-00.png
Snipaste_2023-12-06_19-35-48.png
bc28a244b18eb246f4894f8ab6eb84d.png

Follow the steps of picture to Create Your Adafrout IO Account and Your IFTTT Applet.

Create two new feeds in your Adafruit IO account and name them "command" and "command2"

Download the code and open it using the Arduino IDE. Update the settings to match your Adafruit IO username and key, as well as your WiFi network name and password. Make sure to install the Arduino libraries "ArduinoHttpClient," "Adafruit IO Arduino," and "Adafruit MQTT."

Download IFTTT app, add component and get buttons like the last picture.


Perpare Code and Create Circuit

Snipaste_2023-12-06_19-45-01.png
e2d72bf5cf7834c1e82858a69984784.jpg

After finish your circuit.

Upload the code to your board.

(My code is to lose one heart every two hours and one drop of water every eight minutes, which you can adjust to your needs.)

Downloads

Making Form and Assemble

Snipaste_2023-12-06_21-35-29.png
b5b8d7d58c51f7cc116447335cc6288.jpg
48bda04deca3cd80f12fe7dc5525014.jpg
2e050a95ef89bd6d2fd54d516bd5fc6.jpg
a72ee913482a01bd527626e49eeb350.jpg
10e76fb81cf6b5dcad0c92b6a9550e0.jpg
39359694ebab56f0a59e57746953529.jpg
68ab6dc55fae0641736a34905572e59.jpg
3dc4ae301fc7d8162b10e680f7c1708.jpg
044d753df1f375692fd76a68efe4706.jpg

3D printing the shell, of course, you can also pick up any box.

Laser-cut acrylic sheets serve as front shell and decorative parts.

Align position for soldering.

Final assembly completed.

Final Part

808d201d44361748ad6b86e097b688f.jpg
7ecc1c35356fe316c14e043f130a0d2.jpg

You can put any pattern you like on it, as long as you make it into the right acrylic sheet.

Once connected to Wifi, both the physical button and the phone button will work properly, so start your MC journey.

Strive to become better, stronger, backpack can hold 64*4 oak group lol.