How to Make Gesture Control Game with Arduino Leonardo
Вставка
- Опубліковано 15 кві 2020
- How to Make Gesture Control Game with Arduino Leonardo
Scroll down for code.....
Please like & Subscribe for more videos
Playing games on mobile or PC is always fun. But we can make that fun even double with adding Arduino gesture control to video game. In this tutorial we will play video game with Arduino Leonardo. You can play any games you want, But for this tutorial I will be playing Traffic Racer Car Game. You can control accelerator & brake with your finger gesture (Bending & Relaxing). For moving car left or right, you have to tilt your hand left or right respectively to control it. To sum up, you are playing video game with your own gesture control via Arduino Leonardo or you can say we are controlling computer with hand gestures.
If you want to support my video please buy any product through my amazon affiliate link. I will receive a commission, at no extra cost to you.
LIST OF COMPONENT (affiliate links)
amzn.to/2K6UTeZ (Arduino Leonardo)
amzn.to/2wfeuDx (Flex sensor)
amzn.to/2vmVxhY (Accelerometer sensor ADXL335)
amzn.to/2wxPmWz (Breadboard)
amzn.to/2vJ3lvo (Jumper wire)
amzn.to/2vmSK8l (56K ohms Resistor)
Track: TonyZ - Road So Far [NCN Release]
Music provided by NoCopyrightNation
Watch: • TonyZ - Road So Far (I...
Stream/Download: NCN.lnk.to/RoadsoFar
#include "Keyboard.h"
void setup() {
Serial.begin (9600);
// initialize control over the keyboard:
Keyboard.begin();
}
void loop() {
int accelerator = analogRead(A0); //Flex Sensor 1
int brake = analogRead(A1); //Flex Sensor 2
int x = analogRead(A4); // ADXL335 x
int y = analogRead(A5); // ADXL335 y
if (accelerator ) 450 ){ //instead of parenthesis () put angle bracket as UA-cam description does not allow angle bracket
Keyboard.write('W');
delay(10);
}
if (brake ) 400 ){
Keyboard.write('S');
delay(10);
}
if (x (330){ //RIGHT
Keyboard.press('R');
delay(250);
Keyboard.releaseAll();
}
if (y (380){ //LEFT
Keyboard.press('L');
delay(250);
Keyboard.releaseAll();
}
} - Наука та технологія
This was so helpful, thanks!
Very helpful video!
Thanks Roger..
This is awesome. Is it possible to create this using pose estimation (vision ai) rather than a movement sensor?
🤩🤩🤩Wow
Which platform you have choose fo these
Can I do using ESP8266 and ADXL345,??
Can I Use Arduino Nano For This?
can i usr arduino AtMega for this??
Bhai ye jo gesture bnaya hai ye wireless ni hosakta kiya?
Hello sir ardino leonard ki jagah ardino Uno use kar sakte hai
Nice
Thanks
can i apply this code for arduion 33 ble
Do you respond quickly? I wanted to know 1. why use the 56k resistor and not a 10k one? 2. are the resistors needed?
I guess he doesn't
@@codeunited5905 xd
lol 2yrs later no response 🤣
Can I make this on my Arduino uno
No... you can only use Arduino Leonardo, Micro, or Due.
Can we run any game with this? After changing certain key conditions
Yep...
can i use arduino uno for this??
No... you can only use Arduino Leonardo, Micro, or Due.
Reply as soon as possible
bro how can we contact you... We have little bit doubt