Setting up OTG communication with MIT app inventor

  Рет қаралды 24,646

Tabletop Robotics

Tabletop Robotics

Күн бұрын

Today I'm Going to go over how to set up serial communication between a Arduino and a smart phone using a OTG cable and MIT app inventor. I'm using an Arduino mega for this project and a old phone I had lying around. If you are powering anything with the Arduino I suggest to power the Arduino with a second power supply, just so you don't drain your battery.
Like, Subscribe and hit that bell icon would very much be appreciated.
Instagram: / tabletop_robotics
ThingIverse: www.thingiverse.com/tabletop_...

Пікірлер: 37
@kevalnakar6269
@kevalnakar6269 2 жыл бұрын
I liked and subscribed before watching the video because it's only video that describes mit or kodular app with OTG support. Thank you so much sir.
@epartsacc
@epartsacc 2 жыл бұрын
Cool ending music!
@zikermu
@zikermu Жыл бұрын
Great .Thanks a lot
@antonioarenas4473
@antonioarenas4473 3 жыл бұрын
thanks a lot!! it works perfectly, thanks from Mexico
@antonioarenas4473
@antonioarenas4473 3 жыл бұрын
could you make one where you use serial communication to play a game??
@robotech2566
@robotech2566 3 жыл бұрын
OTG communication is much effective than wifi or bluetooth
@claudiojambo
@claudiojambo 2 жыл бұрын
Excellent! Can you share the code?
@MichelangeloRossini
@MichelangeloRossini 2 жыл бұрын
I don't see you set serial at 9600 in AI blocks. Why?
@nadeeshpeiris7496
@nadeeshpeiris7496 3 жыл бұрын
Thank you very much for this video. unfortunately its not getting connected when call OpenSerial in my case, but ArduinoDroid samples are working fine. Could you please tell me what should I have to do troubleshoot this? Thanks :)
@nadeeshpeiris7496
@nadeeshpeiris7496 3 жыл бұрын
Okay, I think it is because of it doesn't show me the dialog box to "allow permission" when I click the "connect" button
@viktorashistan7207
@viktorashistan7207 2 жыл бұрын
@@nadeeshpeiris7496 me neither, have you found a fix?
@lifeai1889
@lifeai1889 Жыл бұрын
cuz ur arduino have ch340g serial chip
@muhammadfirman8159
@muhammadfirman8159 2 жыл бұрын
Can u share code?
@anishrathodscience119
@anishrathodscience119 3 жыл бұрын
hey I am trying to get this app to work but it just won't connect to my Arduino. There aren't any errors. It's just that when I click connect, it won't connect
@VinithMC
@VinithMC 3 жыл бұрын
Hey did u ever find a fix to this issue? Currently dealing with this right now
@anishrathodscience119
@anishrathodscience119 3 жыл бұрын
@@VinithMC I'm very sorry, but I have not found a fix to this issue
@MrIgor269
@MrIgor269 2 жыл бұрын
У меня такая же проблема. Может нужно изменить настройки для USB в телефоне (или планшете)?
@anishrathodscience119
@anishrathodscience119 2 жыл бұрын
@@MrIgor269 Maybe but I don't think that'll fix it.
@MrIgor269
@MrIgor269 2 жыл бұрын
@@anishrathodscience119 Я уже разобрался. Оказывается в моем телефоне не был включен USB Host! Я зашел в системные файлы Android и дописал пару строчек, чтобы включить USB Host - в итоге у меня на Android 4.0.4 - все заработало!!!
@savkegt500
@savkegt500 3 жыл бұрын
Hi. I have tried this but no sucess. I got "Error 3901: Serial was not initialized". Tried with two phones same. I have tried app ArduinoDroid to flash my board Arduino Uno and it works so cables are ok. Can you give me some idea what can be? Thanks
@TabletopRobotics
@TabletopRobotics 3 жыл бұрын
that error usually occurs when you try to open serial communication before initializing. make sure you have [call serial1 .initializeSerial] then [call serial1 openSerial].
@savkegt500
@savkegt500 3 жыл бұрын
@@TabletopRobotics thans for replay. I get error immediately as i start application, not even click on conect. And it keep pop up every second
@TabletopRobotics
@TabletopRobotics 3 жыл бұрын
then there's a problem with your timer. try moving [set global number to call serial1 .readSerial] so its right below the [set checkbox1 .checked to true]
@savkegt500
@savkegt500 3 жыл бұрын
@@TabletopRobotics that solved error problem, but still no connection, i don't get this promt to allow usb permission when i click conect. Tried via ArduinoDroid to send serial data (two numbers) and i get back sum via serial
@TabletopRobotics
@TabletopRobotics 3 жыл бұрын
I dont really know why. its hard to troubleshoot a problem when its not right in front of me, but i know some phones don't support usb host mode, what version of android are you using?
@germanskena6537
@germanskena6537 3 жыл бұрын
HI. I get this message and i cannot see the video. (An error occurred. Please try again later. .... and a playback Id.).
@TabletopRobotics
@TabletopRobotics 3 жыл бұрын
Are you getting this error with only my video?
@germanskena6537
@germanskena6537 3 жыл бұрын
@@TabletopRobotics yes.
@TabletopRobotics
@TabletopRobotics 3 жыл бұрын
I trying to look into it. But a quick google search says youtube is having some technical problems today so there might not be anything I can do. Sorry. But I'll try my best.
@germanskena6537
@germanskena6537 3 жыл бұрын
@@TabletopRobotics . Thanks for the speed replay to me. Now is working!. I will see it right now. Is strange. I have no problem watching the video from my tv but, i have the problem with linux and windows. :/ (by the way, My tv have Android tv). ..... Strange things from youtube. Again. Thanks.
@TabletopRobotics
@TabletopRobotics 3 жыл бұрын
Glad to hear it :)
Setting up Bluetooth with  MIT app inventor
16:25
Tabletop Robotics
Рет қаралды 10 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 113 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 14 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 2,6 МЛН
Getting Started with the Arduino Mega 2560
3:56
James Foster
Рет қаралды 45 М.
MIT App inventor 2- Accelerometer Car Control App
16:36
Knowled
Рет қаралды 9 М.
HC-05 Bluetooth Module with Arduino-MIT App Inventor
27:57
BINARYUPDATES
Рет қаралды 963 М.
Arduino - Send Commands with Serial Communication
17:23
Eli the Computer Guy
Рет қаралды 47 М.
Arduino Android Serial Communication using OTG cable
3:49
BlueAct
Рет қаралды 95 М.
MQTT Android Application | MIT app inventor
14:12
High Voltages
Рет қаралды 62 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,1 МЛН
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,2 МЛН