Skip to content

Ranger-NF/light-em-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Electronic Whack-A-Mole 🔨
Made using NodeMCU and Node.js.


🔍 Project Overview

Light 'Em Structure

  • Circuit design is available in nodemcu/design folder (Includes fritzing file)

🚧 Setup

Clone the repo

git clone https://github.com/Ranger-NF/light-em-up.git

Setup NodeMCU:

  • Open nodemcu/nodemcu.ino in Arduino IDE
  • Enter ntfy.sh topic name in arduino.ino (line number: 283) String url = "/<ENTER_NTFY_TOPIC_NAME>";
  • Connect NodeMCU to PC and upload it

Setup Server:

  • Get into nodemcu/ and install npm packages:
cd nodemcu
npm i

🤟🏻 Usage

  • Setup WiFi/Hotspot with the following credentials (can be changed in nodemcu/nodemcu.ino):
    • SSID: light-em-up
    • Password: 8096light
  • Give power to NodeMCUs via battery pack
  • Note down the IP Addresses sent to ntfy.sh
  • Enter the following command for starting server:
    cd server
    node index.js
    
  • Go to http://localhost:3000/setup and enter the IP Addresses we got earlier (eg: http://192.168.1.53/)
  • (Optional) Add player name whlist adding IP Address
  • You are all ready to play the game!

📹 Demo video

light-em-up.mp4