Physical Buttons For iOS Simulator
When testing iPhone/iPad apps in iOS Simulator, you will sometimes need to press the ‘Home’ button, lock button & screen shots etc… This is quite easy with the drop down menu or keyboard shortcuts. But thats still to hard for me having to learn a keyboard shortcuts with three buttons, thats absurd!
So I created this quick and dirty solution, using spare parts and a Adafruit Trinket
I also quickly designed a really simple case and 3D printed it out.
Bluetooth Enabled Tool Cupboards
I needed a new lock for my tool cupboards, but I don’t like keys. How about the finger print reader on my phone?
Using the Adafruit Bluetooth LE breakout I was able to build a simple to use keyless locking system for two tool cupboards.
I used lock-style solenoid for securing the doors, and also added a capacitive sensor to each door handle, when you touch the door handle the lock is driven ‘open’, this way the solenoid does not run all day (if I leave it unlocked all day)
After connecting to the lock you can lock or enter 'touch’ mode, in 'touch’ mode if you touch any of the door handles the solenoid will turn on for one second allowing you to open the door. I have also added manual control buttons for each lock.
On the Software end it quite simple security through obscurity, each button just sends a single character over serial to the Arduino. To save writing an iPhone app from scratch I simply 'skinned’ the Adafruit app, replacing the terminal window with buttons that send corresponding characters.
For capacitive sensing I used the Arduino Capacitive Sensing Library