THE KNOB II – Wifi-Hardware

You know, I’m addicted to rotating knobs. And this is my new version. This one works over Wifi. So it works for desktop and mobile, native and Adobe Air. It is build with an Arduino Leonardo, a RedFly Wifi Shield and a ProtoShield with 10 buttons, 1 rotary encoder and 3 LEDs.

On the software side I’m using the OSC protocol over UDP which is very fast and responsive.

Adobe AIR Gyroscope Native Extension with Euler Angles (roll, pitch, yaw) for iOS

UPDATE: I have released the extension including source on google code with some changes.
Euler Gyroscope ANE on Google Code

I baked my very first AIR iOS Native Extension. It’s just an adapted version of this version from Adobe. Because in my opinion the data of radians per second aren’t really good to handle. So I looked into Apples API documentation and found out that there are Euler Angles in the CMMotionManager CMDeviceMotion classes. So I just changed a few lines in the Objective-C Code. I learned much from this tutorial Native Extionsion for Adobe AIR and iOS 101 by Liquid Photo

NSString *myStr = [NSString stringWithFormat:@"%f&%f&%f&%f&%f&%f", 

[motionManager startDeviceMotionUpdates];

motionManager.deviceMotionUpdateInterval = 0;

And added these three parameters roll, pitch and yaw to the Actionscript Gyroscope Event.

new GyroscopeEvent(GyroscopeEvent.UPDATE, _x, _y, _z, _roll, _pitch, _yaw)

You can download source and final iOS .ane Native Extension file here:
iOS Air Native Extension Gyroscope – with Euler Angles

Fastest way to install debug build on iPhone.

If you are developing with an other framework than Xcode, Flash or Appcelerator Titanium it is a long way to get the .ipa file installed on your iPhone. You have to update the .ipa in your iTunes or the iPhone Configuration Utility and than you have to Sync your iPhone again. That needs time an many clicks and drag & drop operations. So I found a new way. It makes use of the OTA (Over The Air) installation feature of IOS 4 and higher.

Step 1: Configuration

  1. Install (If you did not have one installed already) a web server on your local machine. MAMP on Mac or XAMPP on Windows
  2. Create a new directory for the OTA files somewhere
  3. Create an alias in your http.conf to that folder
    Alias /yourapp "/Users/christoph/Documents/path/to/OTA"
  4. Use iOS Beta Builder to create the files to the OTA folder
  5. Open Safari on the iPhone type in your local machines ip plus alias e.g.: http// Click install and OK

Step 2: Use it after every build

And everytime you have an update you have only to do these steps (iOS Beta Builder is opened and used one time):

  1. Switch to iOS Beta Builder, press „Generate Deployment Files“, the folder should be correct, so just „Choose Directory“
  2. Switch to Safari, press the install link from the already opened local machines URL

For me it’s time saving.

Any other ideas how to improve the process to get .ipa files installed on the iOS device? Please comment.

Resign an iPhone App, insert new Bundle ID and send to Xcode Organizer for Upload

The challenge: Create a Flash App, pack it with the Packager for iPhone with my certificate and provisioning profiles, send it to the client that he can resign it with his informations and import it into Xcode Organizer for validating and uploading to the App Store.
Continue reading