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();
    }
    }
  • Наука та технологія

КОМЕНТАРІ • 27

  • @MultsElMesco
    @MultsElMesco 3 роки тому

    This was so helpful, thanks!

  • @Roger-rv1nu
    @Roger-rv1nu 4 роки тому +3

    Very helpful video!

  • @kevinkendaru800
    @kevinkendaru800 Рік тому

    This is awesome. Is it possible to create this using pose estimation (vision ai) rather than a movement sensor?

  • @hajrafarhan8891
    @hajrafarhan8891 5 місяців тому

    🤩🤩🤩Wow

  • @priyanshupathak3231
    @priyanshupathak3231 11 місяців тому

    Which platform you have choose fo these

  • @ravindra9787
    @ravindra9787 Рік тому

    Can I do using ESP8266 and ADXL345,??

  • @ayyubishaik171
    @ayyubishaik171 3 роки тому

    Can I Use Arduino Nano For This?

  • @vinayaknagar9297
    @vinayaknagar9297 3 роки тому

    can i usr arduino AtMega for this??

  • @ak2111
    @ak2111 2 роки тому

    Bhai ye jo gesture bnaya hai ye wireless ni hosakta kiya?

  • @AImpowermentX21
    @AImpowermentX21 10 місяців тому

    Hello sir ardino leonard ki jagah ardino Uno use kar sakte hai

  • @sayyedumair2763
    @sayyedumair2763 4 роки тому +1

    Nice

  • @shailkeshamane6326
    @shailkeshamane6326 3 роки тому

    can i apply this code for arduion 33 ble

  • @GIacius
    @GIacius 3 роки тому

    Do you respond quickly? I wanted to know 1. why use the 56k resistor and not a 10k one? 2. are the resistors needed?

  • @dhruvbhilare6676
    @dhruvbhilare6676 4 роки тому

    Can I make this on my Arduino uno

    • @RoboticaDIY
      @RoboticaDIY  3 роки тому

      No... you can only use Arduino Leonardo, Micro, or Due.

  • @ananyathakre8222
    @ananyathakre8222 6 місяців тому

    Can we run any game with this? After changing certain key conditions

  • @uvaneshbaskar826
    @uvaneshbaskar826 3 роки тому +1

    can i use arduino uno for this??

    • @RoboticaDIY
      @RoboticaDIY  3 роки тому +1

      No... you can only use Arduino Leonardo, Micro, or Due.

  • @AImpowermentX21
    @AImpowermentX21 10 місяців тому

    Reply as soon as possible

  • @mukeshcr7442
    @mukeshcr7442 Рік тому

    bro how can we contact you... We have little bit doubt