Comments on: Reusing an Old Android Phone For GPIO With External USB Devices https://hackaday.com/2024/11/04/reusing-an-old-android-phone-for-gpio-with-external-usb-devices/ Fresh hacks every day Tue, 05 Nov 2024 07:30:05 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Dude https://hackaday.com/2024/11/04/reusing-an-old-android-phone-for-gpio-with-external-usb-devices/#comment-8058101 Tue, 05 Nov 2024 07:30:05 +0000 https://hackaday.com/?p=732739#comment-8058101 In reply to Zoot.

It’s not that hard to cut a few strips of wood and glue them together to make a simple picture frame.

Even if you don’t have the materials or woodworking tools, go to the local market and buy a bamboo clipboard, then rip it into suitable strips with a knife. This is literally kids’ arts and crafts level stuff – and people are instantly jumping to use a 3D printer to make objects that look like cheap plastic crud.

]]>
By: localroger https://hackaday.com/2024/11/04/reusing-an-old-android-phone-for-gpio-with-external-usb-devices/#comment-8058038 Tue, 05 Nov 2024 00:31:45 +0000 https://hackaday.com/?p=732739#comment-8058038 In reply to RetepV.

This. Any old phone can connect to an ESP32 or even ESP8266 configured in ap mode. Make a shortcut on the phone’s browser to 192.168.4.1, and bam. I do this regularly with an old Galaxy S5 that doesn’t have phone network service any more for various troubleshooting and minor control purposes. Actually makes it worth keeping the old S5 in fresh batteries since the back pops off for easily replacing them.

]]>
By: Kåre Smith https://hackaday.com/2024/11/04/reusing-an-old-android-phone-for-gpio-with-external-usb-devices/#comment-8058005 Mon, 04 Nov 2024 22:48:06 +0000 https://hackaday.com/?p=732739#comment-8058005 A product like this should work: https://www.ebay.com/itm/166349961415?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=cvpnyidpsvc&sssrc=4429486&ssuid=zgvpWGsuTTm&var=&widget_ver=artemis&media=COPY

Just make sure the adapter or splitter cable specifies data (as usb host) while simultaneously charging.
For integration like this, USB 2 data rates (480 megabits pr sec) are sufficient, and most USB serial adapters usually support just 12 megabits pr sec anyways.

]]>
By: Kåre Smith https://hackaday.com/2024/11/04/reusing-an-old-android-phone-for-gpio-with-external-usb-devices/#comment-8058001 Mon, 04 Nov 2024 22:31:53 +0000 https://hackaday.com/?p=732739#comment-8058001 “With modern phones without removable batteries simultaneous USB/audio dongle and charging usage via the USB-C connector is claimed to be possible, but this is something to check beforehand.”

Most phones of todays and last five to seven years, use USB-C with USB PD for charging. PD – Power delivery, makes it possible for a device to be set to be USB host while charging. All Samsung Galaxy since S9, probably also the S8, support this. I use this feature every day.
To make it work, one can either buy a powered USB hub with HDMI and/or Ethernet connector, but they cost a few tens of dollars, or one could buy a simple and cheap USB C splitter cable with PD support from eBay or Ali Express.
The handling of usb devices is wonderfully simple to program in Android apps, and there are several GitHub libraries for handling a variety of different USB RS232 chips.

]]>
By: Chris https://hackaday.com/2024/11/04/reusing-an-old-android-phone-for-gpio-with-external-usb-devices/#comment-8057972 Mon, 04 Nov 2024 21:27:16 +0000 https://hackaday.com/?p=732739#comment-8057972 So like a homebrew version of the IOIO ?

]]>
By: RetepV https://hackaday.com/2024/11/04/reusing-an-old-android-phone-for-gpio-with-external-usb-devices/#comment-8057964 Mon, 04 Nov 2024 20:49:41 +0000 https://hackaday.com/?p=732739#comment-8057964 In reply to Greg A.

But ok. Realistically? We live in 2024. Just buy an ESP32 for a few dollars and use Bluetooth Serial Port Profile or BLE.

Or WiFi, why not? Those old phones all support WiFi. You can put your whole app in the ESP32 as a web-based application and use your old phone’s web browser to control your peripheral. As long as you only use basic HTML, any old browser on any old phone is going to work.

And then you also have the connector free for charging.

]]>
By: RetepV https://hackaday.com/2024/11/04/reusing-an-old-android-phone-for-gpio-with-external-usb-devices/#comment-8057958 Mon, 04 Nov 2024 20:39:11 +0000 https://hackaday.com/?p=732739#comment-8057958 In reply to Greg A.

Hehe, I was about to write something like this too. Some phones don’t have USB OTG, like the iPhones. But specifically the old iPhones with the 30-pin dock connector, have audio in and out on the connector. You could quite easily implement an FSK protocol to talk to peripherals.

With the new iPhones it’s harder, they don’t have analog in and out anymore, lightning is all digital and you need an Apple-provided chip to authenticate your peripheral, or the iPhone will immediately ban it.

You could actually still go the ‘acoustic coupler’ way, using a phone’s speaker and microphone. But I guess the screeching sounds would annoy anyone, including yourself, within a few seconds.

Maybe you could modulate data on top of an audio stream. E.g. use modulated Amiga mod music to transfer data, so you can listen to Amiga mods when controlling your peripheral. ;)

]]>