I'm getting started on a weatherballoon/glider project, and evaluating hardware choices with an eye toward minimizing everything of course, also getting into a lot of unfamiliar territory- one of the first details I'm trying to get my head around is usb host modes. The info I found initially suggested my options are very limited if I want to use a USB cable to interface, I guess the very large Arduino Due is one of very few options there. However, this example includes the advice
"Android Phone - The phone used needs to support USB Host Mode (i.e OTG Support). While most Android devices running Android 3.1+ support this, you can check by using the USB Host Diagnostics" Meanwhile user wvmarle states "Most Arduinos are USB client only, a few (Due, Yun?) should also be able to offer USB host mode. Likewise most Android devices are USB client only."
So its not clear to me yet how much struggle it will be to get an android to talk to an arduino microcontroller via usb. Maybe that's a terrible idea compared to just getting a board like beetle BLE that can use bluetooth, but I was hoping to draw power from the usb as well, so it seems a little silly to power bluetooth for the sole reason of working around interface hardware. Intially I was thinking this would be easy and I could even get as small as a tiny85 to receive data from the android, but maybe that's not going to happen. This project started as me wanting to put my little palm PVG100 (3g) to work before Verizon discontinues it at the end of the year.
thanks for any advice!
oh i know y pain with android (not saying go iphone bcz im android fan)
do you have HC-06, connect Its tx to arduinos tx and RX to arduinos RX pain solved
Its still not clear to me yet, but I'm stumbling through the tutorial at the first link, and step one is upgrading my OS since I guess android studio won't run on Oreo. Maybe there's an alternative to that app but for now that's my new problem #1 and it seems like it will take about an hour to upgrade this phone.
OMG I ALSO HAVE OREO 8.1 ON MY MAIN DEVICE. also HC-06 doesnt fix my problems my work tablets microUSB port is a little bit rotated also it doesnt give arduino any power
i need usb for a BASIC project (with UNO R3,ST7789 Blue SPI IPS LCD 240*240)
(i need to make it a portable project with an Android Tablet,(im gonna try with an old 6.0 work tablet)
Mine does ok with delivering power via usb, and the data cable works but so far I still haven't been able to control a servo with it. I have a few different android things- seems like most are running oreo. My most recent efforts have been trying to get the "servo controller" app to do what it does. On paper it sounds ideal but in practice I still have not succeeded. I have an arduino nano in between servo & phone.
also im trying to do same with UNO, my USB-B cable is fine and i upload using it. also i tryed to swap OTG cable with others. (i think youts problem is in servo code. try it with serial.println. also my System needs Two unos. Also i have two question, why ST7789 lcd has voltage divider and only works when hold reset button whats wrong, i dont have 2.2k ohm resistor (only 1) 2. how to mix hardware serial on arduino (computer/android and 2st arduino)
We just got back from an unexpected trip, but tomorrow I plan to try this out:
Wouldn't that be great if you could control servos directly with nothing else involved? I really only need one.
Here are a few other related links that I've found while researching this. Some may be useful to you:
Yes, I only need to control one servo and if I could just get this to work it would be PERFECT! I am also curious why this isn't a more popular topic as the applications seem like they could/would be amazing. Weird.
8.1 still- evidently its possible to upgrade the OS version entirely but it's more complicated that just doing standard menu upgrades. I did that once on an older phone but I don't recall the details. I ordered a OTG to 3.5mm audio jack adapter- it has an integrated DAC circuit in there so I think that shows promise for potentially running a servo or two from signals meant for audio. Worth a shot anyway since it could really streamline things for my project.