Это видео недоступно.
Сожалеем об этом.

How to make a simple joystick app

Поделиться
HTML-код
  • Опубликовано: 17 авг 2024
  • How to make a simple joystick application I made in MIT app inventor using a Bluetooth module and a arduino uno.
    *I'm using the default settings for the Bluetooth module.

Комментарии • 44

  • @tank_m3_tanker575
    @tank_m3_tanker575 9 месяцев назад +1

    Question to understand arduino portion:
    Everytime it loops back to the next index in the array is it reading the next value the app is sending and setting that index to that read value? For example, once it reads 255 and stores 255 in the first index, it reads the button state and stores it in the second index of the array?

  • @hassnainmuraj6306
    @hassnainmuraj6306 Месяц назад

    Excellent Tutorial, Thanks

  • @prambhimani4808
    @prambhimani4808 Год назад +1

    code keeps glitching for some reason when adding a second joystick and its pretty slow to update. Good job though. Tell me how I can fix this as well

  • @AtomiczDE
    @AtomiczDE 3 года назад +2

    when i start the programm on Arduino it doesnt work, all arrays are 0.
    I used your Code
    Please can you help me :)

  • @quocthong5920
    @quocthong5920 5 лет назад +2

    thank you. very helpful!

  • @cadenschmieder4749
    @cadenschmieder4749 3 года назад

    Is it possible to use this program without the Arduino or Bluetooth module and just use the built in module in the computer to connect?

  • @SKEK-kc2rz
    @SKEK-kc2rz 2 года назад

    can i use this yostick to steering robot esp 8266 ? in webserver ?

  • @SlamaWolfPlays
    @SlamaWolfPlays 5 лет назад +1

    wow that's simple

  • @deboyokapo
    @deboyokapo Год назад

    Intente utilizarlo en un ESP32 pero no funciona, es posible que el problema sea la frecuencia con la que el ESP32 recibe datos y que esta sea diferente a la del modulo bluetooth de arduino?

    • @deboyokapo
      @deboyokapo Год назад

      Bueno acabo de solucionarlo, en el app inventor se coloco un timer llamado "sendrate" de 15 microsegundos, por lo que en el codigo de arduino hay que colocar un delayMicroseconds(15); dentro de loop para que este sincronizado con el envio de datos, ademas en la linea "if (in_byte == (0)) { // if the variable is 0 stet the array inxed to 0. this will make sure that every number goes into the correct index" como el comentario dice verifica el "0" para ordenar los datos en el array, sin embargo esto no funciona ya que el boton y el mismo joystick envian valores de 0 confundiendo el orden de los datos, por lo que (creo yo que el tipo se confundio y el penso en hacer esto desde el principio) hay que colocarr un "255" en lugar de "0" ya que ese valor se envia por la app y nunca varia, indicando el comienzo del array y el joystick tampoco puede llegar a ese valor y el boton tampoco, por lo que no hay forma de que los datos se desorganicen

  • @BasilHerb
    @BasilHerb 4 года назад

    Is it possible to speed up the send and receive? Currently, if I press a button or move the stick, theres about half a second of delay until a change accurs on the monitor, which is a lot when you want to make a drone robot.

    • @proslayer2998
      @proslayer2998 2 года назад

      U could use the hs06 module it has a better response time

  • @user-po4pk8zg6o
    @user-po4pk8zg6o 5 лет назад

    can i see the code on your on this vdo.....but not it all....missing Bluetooth connect ..... yes or no......i'll test it as soon as..

  • @jpweezy1
    @jpweezy1 2 года назад

    What program did you use to simulate the App/Arduino code? Thank you!

    • @TabletopRobotics
      @TabletopRobotics  2 года назад

      I didn't simulate anything. I just used a screen capture software or capture the serial monitor and my phone.

  • @prixlightning5272
    @prixlightning5272 Год назад

    I followed each step and do not show the blocks screen like your video

  • @markparente6532
    @markparente6532 5 лет назад +1

    Thanks for your video. Where can I download a copy of the appinvertor code?

    • @TabletopRobotics
      @TabletopRobotics  5 лет назад +2

      you can go to my google site at: sites.google.com/view/tabletop-robotics/coding-and-how-to/simple-joystick-app?authuser=0 and download the aia file. If that doesn't work just tell me. I'm going tomake a git repository in the near future to make this easier.

    • @ishmartindra
      @ishmartindra 2 года назад

      No sir it is coming like this file is unsupportive

  • @inesdemariajorge5691
    @inesdemariajorge5691 2 года назад

    how can i do that with wifi?

  • @case_sensitive
    @case_sensitive 4 года назад

    why do you have the "evaluate but ignore result" block in your Bluetooth code?

  • @priyashahtgt4458
    @priyashahtgt4458 3 года назад

    u are so fast did u have created a video and presenting ?

  • @priyashahtgt4458
    @priyashahtgt4458 3 года назад

    what have u written in intilialize i cannot understand i have wrote button data
    what have u Written

    • @TabletopRobotics
      @TabletopRobotics  3 года назад

      I think your referring to 1:03, I wrote "Button_state"

  • @aimless3827
    @aimless3827 5 лет назад +1

    Value goes over 250, How can i limit that? even i limit like you said

    • @TabletopRobotics
      @TabletopRobotics  5 лет назад

      One of the most simple ways is to make an if statement in a separate section of code:
      if variablename >250
      Then set variablename to 250
      This will make sure that the variable won't go over 250. Another way to solve this is to make a ratio but that's a lot more complicated.

    • @aimless3827
      @aimless3827 5 лет назад

      @@TabletopRobotics Yeah, That's what i did. I just add value box and see value go over the limit

    • @aimless3827
      @aimless3827 5 лет назад

      It's might be just a glitch, I followed all your step 1 in 3 off .apk file work as it should.

    • @TabletopRobotics
      @TabletopRobotics  5 лет назад

      Ya it might be a glitch. The last things I would try is make sure the if statement is actually running, and the last thing you could try is making a new clock, set it to a low value and place the if statements there.

    • @aimless3827
      @aimless3827 5 лет назад

      @@TabletopRobotics drive.google.com/file/d/1_BL0rUNhhvIuL8Y9DGEQs5xKOJV-77V2/view?usp=sharing This is the block i just change 250 to 180.

  • @priyashahtgt4458
    @priyashahtgt4458 3 года назад

    but good

  • @nacerboussedjra3054
    @nacerboussedjra3054 5 лет назад

    how to rename and config my hc-06. pls

  • @ricardocallejo7422
    @ricardocallejo7422 10 месяцев назад

    And where is the code?

  • @dulceodetejardonpina5220
    @dulceodetejardonpina5220 5 лет назад +1

    Please, I need read your code arduino. :'(

    • @TabletopRobotics
      @TabletopRobotics  5 лет назад +2

      you can get the code here: sites.google.com/view/tabletop-robotics/coding-and-how-to/simple-joystick-app if it doesn't work just tell me please

    • @arushmaurya9990
      @arushmaurya9990 4 года назад +1

      This site is not opening

    • @arushmaurya9990
      @arushmaurya9990 4 года назад +1

      Only i have got the Arduino code, i want application. please help me

  • @lapeluche114
    @lapeluche114 4 года назад

    J'ai réussi je crois que j'ai eu la beyneydiction

  • @handosara5521
    @handosara5521 5 лет назад

    arduino code please

  • @shuusan
    @shuusan 5 лет назад +1

    move to fast

  • @estefenisfreitas5070
    @estefenisfreitas5070 2 года назад

    It doesn't work

  • @hajar2629
    @hajar2629 5 лет назад +1

    i need code and aia file

    • @TabletopRobotics
      @TabletopRobotics  5 лет назад

      I just added all the files to my google site follow the link sites.google.com/view/tabletop-robotics/projects/simple-joystick-app hope this helps

  • @diegodemestre9134
    @diegodemestre9134 3 года назад

    when i start the programm on Arduino it doesnt work, all arrays are 0.
    I used your Code
    Please can you help me :)