Chapter 3. Physical Computing Recipes Using JavaScript, the BoneScript Library, and Python
Now that you're armed to the…er, fingertips with your Linux commands and can happily control your BeagleBone Black remotely like a pro, it's time to get physical with the board. So, to begin with our exercises in physical computing, we're whipping up some essential recipes on the following topics:
- Controlling external LEDs
- Using buttons – button press function
- Using analog sensors
- Variable resistance sensor – photocell
- Using motors
Our programming language of choice will principally be JavaScript in tandem with BoneScript, which is a Node.js and browser-side library. We will also include or reference a few Python script analogues to broaden our skills with the ...
Get BeagleBone: Creative Projects for Hobbyists now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.