MicroPyton, Android and serial #17071
Replies: 3 comments 2 replies
-
Most micropython devices connect over a USB serial connection. Devices with built in USB all use the standard CDC serial drivers. Other devices (like many esp32's) use a uart and separate usb-serial chip, some of which use the standard driver, others require a custom driver. My understanding of Android is that yes it supports the standard USB CDC serial driver as long as the phone / tablet in particular supports USB host mode. For devices with separate usb-serial chip most will likely work but not necessarily all of them. |
Beta Was this translation helpful? Give feedback.
-
You can first try an Android application called "Micro REPL" from the Google Play Store. If your board can connect to your Android phone and you get a REPL, then your app will most likely work too. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info. I'm pretty busy so it might be a while before I report back but I'll investigate my options. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to ask if the following is possible and if so, how to go about it.
I would like to connect a MicroPython device to an Android phone on the USB port, read serial data and send commands over serial.
I'm looking at Kivy(MD) to build the Android app.
I asked Perplexity AI if it can be done and 'the computer says yes' (see attached pdf's).
But I value human input more :)
So does the info from Perplexity make any sense? Has anyone tried this before?
Thanks for reading.
micropython-android-kivy_perplexity_01.pdf
micropython-android-kivy_perplexity_02.pdf
Beta Was this translation helpful? Give feedback.
All reactions