Just got my OnePlus 2 today and took a sec tonight to check out a suspicious set of connectors on the Styleswap cover.

We have a VERY easy way to add hardware Buttons and Sensors to the Phone.
On the OnePlus 2 StyleSwap cover connectors :

That connector is just a SMALL sticker with a single thin-film resistor in it.
The Bamboo cover has a 22.1k ohm resistor.

It means that ONE pin supplies the voltage (Lower Pin) while the other is a weak pulldown GND.

It shows the Voltage running across those two pins is 2V. This explains the relatively high values chosen for the resistor as it is already a weak pull and easily poll-able. I do not like however, that this pin set is set to 2V constantly in my limited testing that means a weak power drain and something to add noise to a system. At least its not adding more ground noise… a problem which plagued the ONEPLUS ONE which had weak starr-ed ground and virtually no smoothing capacitance or ground loop isolators which caused the most problems with AUDIO. The ground noise was beyod fixable for the Qualcomm DSP to be able to compensate for in something like a high end IEM.

There is no possible way to connect NFC to the back plate UNLESS they devellop their own chips/protocol that require no ground reference. Also most NFC receiver chips use SPI or I2C connection interfaces as the communication clock frequency is important No ground reference shared… bad clocks.

So, if you are Chinese or get the Chinese version, All you need is some copper tape and a 20k ohm thin film resistor and you can have the Bamboo style theme…Cost is $0.01 maybe…plus shipping.

Then I found this in like 2 seconds .

Here is the code (complete with ASCII art schematic!) :

Its even interrupt driven! So no need to reboot the phone to get new data streams or be able to change dynamically like you would expect of a button.

* Cover | Phone
* |
* —–|—-R2(2K Ohm)——[3.3 V
* | |
* R1 |
* | |
* |____|___________ADC
* | |
* | |
* | R3(51K ohm)
* | |
* | = GND

* cover type | cover resist(K 0hm) | ADC voltage (V)
* 1 | 0 | 3.18
* 2 | 5.6 | 2.87
* 3 | 12 | 2.59
* 4 | 20 | 2.31
* 5 | 30.9 | 2.01
* 6 | 51 | 1.62
* 7 | 82 | 1.25
* 8 | 121 | 0.97
* 9 | 200 | 0.67
* 10 | 470 | 0.32
* .. | .. | …

We can assume that Bamboo is Cover type 4.

Here is the Kernel Config paramerter
#changhua 2015-02-12 add for switch theme when change rare cover
default n
tristate “switch theme when change rare cover support by ADC”
Say Y here if you want to enable the feature.
#add end

Connecting sensors
Will require a new API into the OS for accessing that info, but not very difficult honestly. Then we would need apps to be able to access that and make sure that we attach a “dangerous” level to the system permission for that API. Still, not a big deal.

We also have the RIGHT amount of voltage to be able to do this, even with a a native 2k impedance output from voltage. We can likely use the phone casing underneath the styleswap cover for Ground reference, since some of the panels are ground connected. So we could get Power (3.3V, low current), GND, and ADC input to the phone right under the OnePlus styleswap hardware.

Still, it will require a kernel patch and likely a shared object library topside with some simple tie-ins for frameworks on buttons (something I have done all of this before). However I know that this will take about a week of time after work with a simple API to get going in CyanogenMod. I am booked through mid-October with speaking gigs, travel, and contract engineering work.

Looks like we have a reasonable amount of bit-depth to work with here too. Humidity sensors anyone? Multiple Hardware buttons like Camera shutter? Answer Phone Calls?

600_438815984Join us at Meetup.com : http://www.meetup.com/Women-Techmakers-DFW

Our Google+ community : https://plus.google.com/communities/103909031862462598468

And please send me a gChat message or message on the community pages to get an invite to our SLACK channel : wtmdfw.slack.com


Hi guys, I made some Women Techmakers  3D CAD (for #3dprinting  on something like a +MakerBot  ) of the Women Techmakers icon as Badges, Signs, Earrings, and Keychains! Bunch of different variations, just something I did with my Sunday Afternoon.

Download Here (Many more variations and designs available):

WTM_bracket_word_badge_preview_featured WTM_BRACKETS_3d_preview_featured WTM_Keychain_flat_preview_featured

Meet Bender, the insulting, cigar smoking, drunk robot from #Futurama​ in #Pumpkin Form! #Fox #happyhalloween2014

CODE: https://github.com/childofthehorn/bender_insulting_pumpkin/blob/master/Bender_MP3.ino

When you pass by, the LED flashes while he spits insults. LED flashes as he speaks. When no motion is detected, he is silent and the LED is doing an RGB sequence.

Mp3 Serial module, PIR sensor, Intel Galileo, Seeduino Grove Shield,and RGB led.

Programmed, carved, and decorated in 1 Hour with my team from work for company Halloween Party. Runs on Battery Pack inside pumpkin.

Made using SeeedStudio #Grove and Intel #Galileo #Intelmaker

Code will be posted on my website and such later this afternoon. Its cross compatible with all #Arduino – based boards.

Supported Wifi updates (since everything is INSIDE the pumpkin) and commands to remotely turn off functions (silence, volume control).

Android Ramdisks for the Practical Hacker

Feel free to grab my presentation from the Big Android BBQ 2014 Conference.


Stacy and Miguel from OnePlus

Stacy and Miguel from OnePlus


Finished BABBQ14 Hats!WIP BABBQ13 hats

This will install the true Spotify for Linux (no Wine!)

Just copy/paste these commands:

sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" > /etc/apt/sources.list.d/spotify.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
sudo apt-get update && sudo apt-get install spotify-client-qt

You say this and I say that

Then What I think….

Stacy's App development




At first I was like: 
Then, I was like: “I dunno ’bout this…”
And finally…. WHATTT????!!!
“No guys?!”

Google I/O 2014

I have had the pleasure of going to Google I/O this year and it was a BLAST!

I got to

– Have drinks with the GDE group (courtesy of Linda)

– Eat dinner with Women Techmakers

– Learn Stuff and talk to the Core Android Team

– Go to Pandora After party

– Google Afterparty

– Learn more stuff

– Big Android BBQ Meet and Greet Afterparty

– Geek out with Steve Kondik (Cyanogen) on Headphones and Amplifiers

– Yahoo Afterparty

– very short stint at Dropbox Afterparty  (so very tired…)

Women's Techmaker's Dinner (Linda Lawton on the left - awesome GDE!)

Women’s Techmaker’s Dinner (Linda Lawton on the left – awesome GDE!)

GennyBoy needed coffee

GennyBoy needed coffee


Protestors... there were many of these...

Protestors… there were many of these…

Awesome Seats for the Presentation

Awesome Seats for the Presentation

I was edmacated

I was edmacated

IO at Night

The main IO afterparty - went to many of these.

The main IO afterparty – went to many of these.

British guy brings his own Tea Bags to IO and the IO afterparty - thought we were supposed to drink beer?

British guy brings his own Tea Bags to IO and the IO afterparty – thought we were supposed to drink beer?




Just hanging with some of the CyanogenMod team

Just hanging with some of the CyanogenMod team

Inside the Moscone - last Day

Inside the Moscone – last Day

The Big Android Meet and Greet party at IO

The Big Android Meet and Greet party at IO