Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Sign Language To Speech Conversion
Just Do Electronics
September 15, 2022
Component list :-
1.Arduino Nano
2.Df Mini Player
3.Speaker
4.Flex Sensor
5.10k Resister
6.SD Card
Code :-
//Prteek //www.prateeks.in //https://youtu.be/KSBFhaV4YTY #include "Wire.h" #include "SoftwareSerial.h" #include "DFRobotDFPlayerMini.h" static const uint8_t PIN_MP3_TX = 9; // Connects to module's RX static const uint8_t PIN_MP3_RX = 10; // Connects to module's TX SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX); DFRobotDFPlayerMini player; int thumb; int first_finger; int second_finger; int third_finger; int fourth_finger; void setup() { pinMode(A1, INPUT); pinMode(A2, INPUT); pinMode(A3, INPUT); pinMode(A4, INPUT); pinMode(A5, INPUT); Serial.begin(9600); softwareSerial.begin(9600); if (player.begin(softwareSerial)) { Serial.println("OK"); player.volume(30); player.play(1); } else { Serial.println("Connecting to DFPlayer Mini failed!"); } } void loop() { int thumb = analogRead(A0); int first_finger = analogRead(A1); int second_finger = analogRead(A2); int third_finger = analogRead(A3); int fourth_finger = analogRead(A4); Serial.print(thumb); Serial.print("\t"); Serial.print(first_finger); Serial.print("\t"); Serial.print(second_finger); Serial.print("\t"); Serial.print(third_finger); Serial.print("\t"); Serial.println(fourth_finger); Serial.print("\t"); if (thumb < 750 ) { Serial.println("Finger Up 1"); player.play(3); delay(500); } if (thumb > 900 ) { Serial.println("Finger Down 1"); player.play(1); delay(500); } else if (first_finger >= 900 ) { Serial.println("Finger Down 2"); player.play(2); delay(500); } else if (first_finger < 730 ) { Serial.println("Finger Up 2"); player.play(3); delay(500); } else if (second_finger >= 900 ) { Serial.println("Finger Down 3"); player.play(4); delay(500); } else if (second_finger < 760 ) { Serial.println("Finger Up 3"); player.play(5); delay(500); } else if (third_finger >= 900) { Serial.println("Finger Down 4"); player.play(6); delay(500); } else if (third_finger < 720 ) { Serial.println("Finger Up 4"); player.play(8); delay(500); } else if (fourth_finger >= 900) { Serial.println("Finger Down 5"); player.play(9); delay(500); } else if (fourth_finger >= 870 ) { Serial.println("Finger Up 5"); player.play(10); delay(500); } else { Serial.println("NOTHING"); } }
Video :-
2 Comments
Anonymous
21 January 2024 at 11:39
Please how do you input the audio into the memory card
Reply
Delete
Replies
Reply
Anonymous
7 March 2024 at 20:18
I am facing a issue
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer
Older
ESP32 Interfacing With LDR Sensor
Build Your Own Gps Tracking System using Arduino
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Ultrasonic Sensor as a Counter with Arduino
ESP32 Led Blink With Push Button
ESP32 Interfacing Potentiometer
Measure CO2 Level in Air Using Arduino
IoT Based Patient Health Monitoring System Using Blynk App
Vehicle Accident Alert System Using Accelerometer GPS And GSM
Play Audio Sound With Esp8266 With Blink App
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
2 Comments
Please how do you input the audio into the memory card
ReplyDeleteI am facing a issue
ReplyDelete