Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Beantalker

Little app that can communicate with LightBlue Beans. Pairing with Android allows the bean to become a smartwatch or (coming soon!) an infrared remote. Or both.

Arduino sketch

Upload to the LightBlue Bean the beanTap.ino sketch. Alternatively, use the beandroid.ino sketch for a rather innovative accelerometer-driven gesture reader.

Android app

The beantalker app is in the folder named, conveniently, hamdanspam/Beantalker/beantalker. You can load it in android studio and upload it to your phone from there, or use any other programmer available.

How to use it

I knitted a little case for my bean and enclosed my bean with it around an extremely cheap perlon watch strap seen here:

I don't know knitting lingo too well, but I used 2 mm double sided needles, casted on 9 stitches (I shoulda used less, use 7 or 8.), and knitted it in the round for a good 10 rows, then switched to normal knitting, allowing me to go from a tube shape to a flat shape, which is exactly what I needed to secure the bean to the watch strap with buttons. I realized early on that I could get away with knitting in the round with only two needles, which seemed apocryphal at the time but the end product was more just better knitting overall, so I highly recommend it. Use relatively thin yarn, this is about where my knowledge of knitting fails me for more precise instructions.

Or, you could go with this, my later and currently final prototype. It was a simple round-knitted 8-stitch piece barely long enough to cover the whole bean. You can add a little hole for the RGB led if you want, but it should shine through. I'm pretty happy with it.

Install the beanTap.ino sketch for a double tap to get the time. Alternatively, install beandroid.ino, and rotate your wrist to the left, rotate to the right, and then read the time. The code is quite modular, so feel free to add your own "combination lock" type sequence of gestures.

Rotation or double tap activates communication between your phone and the bean, and the bean parses time data from the phone and displays it as a set of blinks in the following way:

Hours

blink #firstsecond
Y+0+0
R+4+1
G+8+2
B +3

Minutes

blink #thirdfourthfifth
Y+0+0+0
R+12+4+1
G+24+8+2
B+36 +3
P+48

So, if you get a reading that goes: Green Blue...Red White Blue, that means

Green = 8, Blue = 3, so 8 + 3 = 12

Red = 12, Yellow = 0 (always), Blue = 3, so 12 + 0 + 3 = 15

12:15.

Hope that makes sense. I make a color coded post it based on the tables above and carried it with me for a while. Enjoy flaunting your masculinity, I know I am enjoying it, with the help of my new knitted color watch.

Note: previous behavior used white as zero, now we use yellow, as it is easier to discriminate between yellow and purple than it is to discriminate between white and purple.

About

Little app that can communicate with LightBlue Beans.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages