Author Topic: Automating a finger press on iPad screen  (Read 830 times)

0 Members and 3 Guests are viewing this topic.

Offline tifkatTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: au
Automating a finger press on iPad screen
« on: November 17, 2020, 12:26:27 pm »
I have a small project I am interested in exploring, to automate a finger press on a touch screen tablet/iPad.

If I was to purchase something like the silicon nib in this AliExpress sale:

https://a.aliexpress.com/_mrVjShP

and have it screwed into a 3D printed jig which was actuated by a suitable MCU, would it work as is, or does the nib need to have some electrical connection, say to ground, or to a capacitor?

How likely is this to be universally compatible with older or newer screens? Say we have iPad 9.7", and future plans might involve an upgrade to iPad Pro 2020 or Air 4th gen?
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: Automating a finger press on iPad screen
« Reply #1 on: November 17, 2020, 12:55:47 pm »
I know nothing about the Apple family.

In the Android world I know how and have implemented this three ways.

1) Android has the shell "adb shell input tap 100 200" command. You issue it over ADB.
This is actually pretty boring and slow because the default is a Java process that takes forever to spin up.
Maybe Apple has something similar?

2) Android uses Linux and it has the regular /dev/uinput system.
Just do an ioctl UI_DEV_CREATE to /dev/uinput and create your own input device of any type.
Create a process and have a pipe to take taps/text/whatever.

3) Use USB host mode. Make a custom USB HID device
On the side plugged into your device it's a keyboard/mouse/whatever.
If your µP has two USB interfaces, just connect the other to your host.
If not, use a serial interface and a USB UART to connect to host.
 

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1133
  • Country: lt
Re: Automating a finger press on iPad screen
« Reply #2 on: November 17, 2020, 01:28:54 pm »
Yes, mechanical solution will work, if the tip has enough capacitance - if it is coupled to something big in size or to mains ground. It is probably the most reliable way (no false touch), except, of course, software solutions, which were already mentioned.

Yet, because this is an electronics forum, I will mention that you might be able to simulate touch electronically. In fact I tried this once for fun and it worked. You stick a conductive disc shape "electrode" on a screen, size of finger tip and switch it to ground by using small very low capacitance mosfet. It might need a little play, like for example, applying thin isolation layer on the bottom of electrode - bare metal might be not good. Electronic solution is more risky and migh generate false touch in some cases because of electrical noises.
 

Offline Fraser

  • Super Contributor
  • ***
  • Posts: 13265
  • Country: gb
Re: Automating a finger press on iPad screen
« Reply #3 on: November 17, 2020, 01:41:26 pm »
Modern projected capacitance touch screens, as found in iPads use a form of proximity sensing. Disruption of the projected field is detected and not an earthing or EM noise proximity process. It just requires a stylus with a conductive tip, carbon coated rubber etc, to disrupt the projected field enough to be detected by the touch detection matrix.

https://zytronic.co.uk/insights/article/how-does-projected-capacitive-touch-technology-work/
« Last Edit: November 17, 2020, 01:44:57 pm by Fraser »
If I have helped you please consider a donation : https://gofund.me/c86b0a2c
 

Offline Fraser

  • Super Contributor
  • ***
  • Posts: 13265
  • Country: gb
Re: Automating a finger press on iPad screen
« Reply #4 on: November 17, 2020, 01:48:05 pm »
This reminds me of a keep awake device I once saw that used a nodding toy  ;D

Completely different requirement but an interesting mechanical solution to a ‘problem’  ;D

https://youtu.be/Lw243n4djCs

Fraser
If I have helped you please consider a donation : https://gofund.me/c86b0a2c
 
The following users thanked this post: Ed.Kloonk

Offline Fraser

  • Super Contributor
  • ***
  • Posts: 13265
  • Country: gb
Re: Automating a finger press on iPad screen
« Reply #5 on: November 17, 2020, 01:50:13 pm »
If I have helped you please consider a donation : https://gofund.me/c86b0a2c
 

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1133
  • Country: lt
Re: Automating a finger press on iPad screen
« Reply #6 on: November 17, 2020, 02:09:59 pm »
I remember doing experiment by puting AA battery on a touch screen with flat (minus) end down. It reacted to me touching the other end. So then I tried switching to ground with a small mosfet and it worked. It was all like 5 min experiment just for fun. Not sure how repeatable or reliable it is. I think it was iPhone 7 or 6.
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: Automating a finger press on iPad screen
« Reply #7 on: November 17, 2020, 04:53:59 pm »
Well, I apologize for only coming up with three ways to do this.

4) Reverse engineer the app to allow control programatically.

5) Use a capacitive contact like already suggested.
I use copper foil with an adhesive backing, about 1 cm x 1 cm.
Use CMOS inverters (or complimentary outputs of a µP) to drive two 1N4148 forward and reverse polarized.
I use a 1 k resistor in series with each diode on the driver board (in this case, a pusbutton & CD4093).
(It's hard to get a good photo.)

6) Use a solenoid and a soft tip.
 

Offline tifkatTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: au
Re: Automating a finger press on iPad screen
« Reply #8 on: November 18, 2020, 02:22:16 am »
From what I've seen here, and others places, the nib would need to be connected to a common ground with the device.

I could make a charging dock which would also feature the MCU controlled nib which would be connected to a common 0v/GND with the charger output. I had considered a solenoid, but having little experience, am no sure on impact velocity, and probably would desire to avoid the noise.

I have actually considered a small geared motor driving a cam shaft to actuate the 'finger'

My main concern was electrical requirements for the silicon nib, which it turns out should be GND in common with the target device.
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: Automating a finger press on iPad screen
« Reply #9 on: November 18, 2020, 02:45:19 am »
7) Build a custom Bluetooth HID device

You've got a lot of possibilities here. Why do you want to stick with a physical touch?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf