Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ranger-nf/thaapasakhi

🌡ī¸ Temperature based music player. Made using NodeMCU & Node.js
https://github.com/ranger-nf/thaapasakhi

arduino music nodemcu ntfy temperature useless

Last synced: 2 months ago
JSON representation

🌡ī¸ Temperature based music player. Made using NodeMCU & Node.js

Awesome Lists containing this project

README

        

readme-banner

---


thaapasakhi-logo

🌡 ā´¤ā´žā´Ēā´¸ā´–ā´ŋ đŸŽļ

[pronunciation: Thaa-ba-sa-khi]


## Basic Details
### Team Name: 🧠 MegaMinds

### Team Members
- Team Lead: **Mohammed Fahad** - Government Engineering College Palakkad
- Member 2: **N Fadeela** - Government Engineering College Palakkad
- Member 3: **Mohammed Muflih** - Government Engineering College Palakkad

### Project Description
A beautiful flawless project that plays melodies according to the subjected temperature 😉

### The Problem (that doesn't exist)
Nobody likes to sense the surrounding temperature by themselves, do they?
So, we made this complicated facade to help you with that 😌

### The Solution (that nobody asked for)
We collect data from a temperature sensor and play accurate melodies for you đŸŽļ

## Technical Details
### Technologies/Components Used
For Software:
- Languages used:
- Javascript
- CPP
- Framework ysed:
- Arduino
- Node.JS
- Libraries used:
- Server side: Audic, ws
- Hardware side: dht11, ESP8266WiFi, WiFiClient
- Tools used:
- Code Editors: Arduino IDE & Zed
- Sound editing: Audacity

For Hardware:
- Components:
- NodeMCU v1 (ESP8266)
- DHT11 temperature sensor

### Implementation
1. Read data from DHT11 sensor
2. Send the data to [ntfy](https://ntfy.sh)
3. On the PC, establish a web socket to ntfy api.
4. Checking the temperatures, and playing specified audio files

# Installation
Firstly, copy the repo to your local machine:
```
git clone https://github.com/Ranger-NF/Thaapasakhi/
cd Thaapasakhi
```

Now, there are 2 parts to this repo/project: Server (`src/server`) and NodeMCU (`src/microcontroller`). Follow the following steps for each component:
- Server:
```
cd src/server
npm install
```

- NodeMCU:
- Open `src/mircrocontroller/main/main.ino` file in Arduino IDE
- Enter missing details:
1. Enter your Wifi SSID & Password in main.ino (line 5 & 6):
```
const char* SSID = ""; // File: src/microcontrollers/main/main.ino
const char* password = "";
```

2. Create a topic over at [ntfy](https://ntfy.sh/app) and enter the topic name in main.ino (line 76):
```
String url = "/"; // File: src/microcontrollers/main/main.ino
```

- Connect NodeMCU board and upload the code

# Run
- Server:
```
cd src/server
node index.js
```

- NodeMCU: Just connect it to power

# Diagrams
![Workflow](docs/thaapasakhi-workflow.png)

*There are 3 parts: Microcontroller, Server(ntfy) and your PC(Node.js web server)*

# Schematic & Circuit
![Schematic](docs/thaapasakhi-schematics.jpg)

![Circuit](docs/thaapasakhi-circuit-diagram.png)

*GND(Ground) pin is connected to GND, VDD pin is connected to 3.3v and Signal pin is connected to D2 of NodeMCU*

# Build Photos
![Components](docs/thaapasakhi-components.png)

![Final](docs/thaapasakhi-final-build.jpg)

### Project Demo
# Video

https://github.com/user-attachments/assets/027e1072-a8ac-415e-a078-05ecac469b10

*NB: It would be better if you turn up the volume*

## Team Contributions
- Mohammed Fahad: Server side logic, NodeMCU logic
- N Fadeela: Proposed the idea, collected the melodies and documented the project
- Mohammed Muflih: Assembled the circuit, edited audio files and NodeMCU logic

---
Made with ❤ī¸ at TinkerHub Useless Projects

![Static Badge](https://img.shields.io/badge/TinkerHub-24?color=%23000000&link=https%3A%2F%2Fwww.tinkerhub.org%2F)
![Static Badge](https://img.shields.io/badge/UselessProject--24-24?link=https%3A%2F%2Fwww.tinkerhub.org%2Fevents%2FQ2Q1TQKX6Q%2FUseless%2520Projects)