" Hi my name is Lee.
I'm a writer an engineer a trainer and a public speaker.
I create fixes & I fix headaches...
Welcome to my dev blog."

Blog

Connect & play around with BB-8 by Sphero with JavaScript on a Mac

Posted on in 

I’m a huge Star Wars fan, and like most of you, i’ve seen The Force Awakens as well. I immediately felt in love with BB-8. The little white orange droid. So you can imagine, how happy I was, when I opened my christmas presents, and found the little BB-8 by Sphero droid in a box. BB-8 by Sphero, is a little toy robot that you can control with apps for Android and iOS, via bluetooth. Actually the sphere is the true robot, BB-8’s head is attached to the big sphere, via a magnet, and it has little wheels so it always stays on top, and gives it the Looney Toones Road runner look, while rolling. Cute.

This little droid has the following functionalities; it can roll around (quiet fast,), it can listen to your voice (via the app), it can show colors, it has IMU, 3 axis accelerometer, 3 axis rotation gyro and locator sensors. The BB-8 uses a Bluetooth Low Energy (LE) interface, also known as “Bluetooth Smart” or “Bluetooth 4.0/4.1”.

What’s really awesome is that Sphero opens up their APIs, so developers like me, can play around with this. And that’s great. There are SDKs for Android, iOS, Windows development, and there’s a JavaScript SDK! Since I’m a JavaScript lover, I thought, let’s give it a go, and try this out myself.

Read More