Это видео недоступно.
Сожалеем об этом.
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.
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?
Excellent Tutorial, Thanks
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
when i start the programm on Arduino it doesnt work, all arrays are 0.
I used your Code
Please can you help me :)
thank you. very helpful!
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?
can i use this yostick to steering robot esp 8266 ? in webserver ?
wow that's simple
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?
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
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.
U could use the hs06 module it has a better response time
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..
What program did you use to simulate the App/Arduino code? Thank you!
I didn't simulate anything. I just used a screen capture software or capture the serial monitor and my phone.
I followed each step and do not show the blocks screen like your video
Thanks for your video. Where can I download a copy of the appinvertor code?
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.
No sir it is coming like this file is unsupportive
how can i do that with wifi?
why do you have the "evaluate but ignore result" block in your Bluetooth code?
u are so fast did u have created a video and presenting ?
what have u written in intilialize i cannot understand i have wrote button data
what have u Written
I think your referring to 1:03, I wrote "Button_state"
Value goes over 250, How can i limit that? even i limit like you said
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.
@@TabletopRobotics Yeah, That's what i did. I just add value box and see value go over the limit
It's might be just a glitch, I followed all your step 1 in 3 off .apk file work as it should.
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.
@@TabletopRobotics drive.google.com/file/d/1_BL0rUNhhvIuL8Y9DGEQs5xKOJV-77V2/view?usp=sharing This is the block i just change 250 to 180.
but good
how to rename and config my hc-06. pls
And where is the code?
Please, I need read your code arduino. :'(
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
This site is not opening
Only i have got the Arduino code, i want application. please help me
J'ai réussi je crois que j'ai eu la beyneydiction
arduino code please
move to fast
It doesn't work
i need code and aia file
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
when i start the programm on Arduino it doesnt work, all arrays are 0.
I used your Code
Please can you help me :)