Bluetooth Control With Chrome

All the cool projects now can connect to a computer or phone for control, right? But it is a pain to create an app to run on different platforms to talk to your project. [Kevin Darrah] says no and shows how you can use Google Chrome to do the dirty work. He takes a garden-variety Arduino and a cheap Bluetooth interface board and then controls it from Chrome. You can see the video below.

The HM-10 board is cheap and could connect to nearly anything. The control application uses Processing, which is the software the Arduino system derives from. So how do you get to Chrome from Processing? Easy. The p5.js library allows Processing to work from within Chrome. There’s also a Bluetooth BLE library for P5.

Once you know about those libraries, you can probably figure the rest out. But [Kevin] shows a nice example that you could easily replicate. The Arduino and Bluetooth code aren’t very hard to follow.  The Processing program looks a lot like an Arduino program with a setup and loop function, but it also has canvases, buttons, and other things you don’t usually have in an Arduino.

It is surprisingly easy to create a Chrome app that talks to the hardware. Our usual go to for phone apps is Blynk. We even used it as a joystick for a robot.

3 thoughts on “Bluetooth Control With Chrome

  1. More and more of device features are becoming available through the browser. A number of entities are trying to elevate users to interacting with computers of any sort *only* through the browser (I’m looking at you ChromeOS ((I’m an chromebook owner…)). The Device Sensor API gives access to accelerometers and gyroscopes. Between that and web bluetooth, the line between webpage and native app will get very blurry in the future.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.