Lock Key repetition in EZ-Key

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
giocamela
 
Posts: 5
Joined: Sun Oct 05, 2014 12:33 pm

Lock Key repetition in EZ-Key

Post by giocamela »

Hi,
for a friend with a severe disability, I assembled EZ-Key HID.
I have connected a button to inputs 0 and 1 (in short-cut). I configured the two inputs to the keys Left-ALT and Right-Arrow, .
I paired the device EZ-Key to iPad via Bluetooth.
I enabled Voice Over on iPad.
I started iBook and opened a book.
Pressing the button, the pages go on.
Voiceover enables the keyboard (bluetooth) to send commands to the iPad.
If I send the keys Left-Alt + Right-Arrow, pages of the ibook are moving forward.

My friend was not able to turn the pages of a book on the iPad and now he can do in full autonomy! Thanks to this device! It’s not wonderful?

However I encountered a problem that I hope someone can help me solve.
Not always the pages slide forward one by one.
If the button is pressed too quickly, nothing happens or the focus moves forward. But the page does not change.
If the button is pressed for a longer time, so many pages run forward.
It is really hard to press the button for the exact time to advance only one page!

I would like to know if it is possible to lock the repetition of the Right-Arrow key
Thanks for your help
Riccardo

Attached are photos of the device.
There are two input for the button: one is used to read the books trough iBooks, the other is used to read through the comics Mickey Mouse (It use UpArrow+Down Arrow to move forward).

There is also a small breadboard used to recharge the Li-ion battery via USB cable
Attachments
IMG_2192.JPG
IMG_2192.JPG (68.84 KiB) Viewed 536 times
IMG_2191.JPG
IMG_2191.JPG (94.32 KiB) Viewed 536 times
IMG_2190.jpg
IMG_2190.jpg (144.23 KiB) Viewed 536 times

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: Lock Key repetition in EZ-Key

Post by Franklin97355 »

Thank you for posting. What a great project!

User avatar
adafruit2
 
Posts: 22200
Joined: Fri Mar 11, 2005 7:36 pm

Re: Lock Key repetition in EZ-Key

Post by adafruit2 »

Great project! thank you so much for telling us about it. The unfortunate thing is that key repeat is handled completely by the iOS software. the bluefruit just sends a key down when the button is pressed and a key up when the button is released.
you can solve this, but you will need to use a microcontroller like a Trinket: the trinket would listen to the button press on one pin and when it sees the press, sends a short press (down, wait 10 milliseconds, up) on the EZ-Key. so even if the button is held down, it only sends a short press. does that make sense?

User avatar
giocamela
 
Posts: 5
Joined: Sun Oct 05, 2014 12:33 pm

Re: Lock Key repetition in EZ-Key

Post by giocamela »

Thank you for your compliments on my project.
I think a microcontroller as Trinket could be a solution.
I'll try it.
Thank you for your suggestion

ButchSLP
 
Posts: 5
Joined: Sun Mar 16, 2014 10:24 am

Re: Lock Key repetition in EZ-Key

Post by ButchSLP »

I ran into the same problem as you when trying to make an iPad switch interface. I got as far as you did and had the key repeat problem. I bought a Teensy to use as the microcontroller, but got lost when trying to figure out how to implement it into my project. If you get your project to work would you be able to provide step by step instructions and any necessary code? Much thanks.

User avatar
giocamela
 
Posts: 5
Joined: Sun Oct 05, 2014 12:33 pm

Re: Lock Key repetition in EZ-Key

Post by giocamela »

Certainly. as soon as possible. I'm working with a trinket, but the code should work the same.

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”