GithubHelp home page GithubHelp logo

isabella232 / node-click-boards Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thethingsystem/node-click-boards

0.0 0.0 0.0 241 KB

A node.js module to interface with various click boards

License: MIT License

JavaScript 100.00%

node-click-boards's Introduction

node-click-boards

A node.js module to interface with various click boards from MikroElectronica, running with the mikroBUS cape on a BeagleBone Black.

The BeagleBone mikroBUS Cape connects upto four click boards to the BeagleBone Black. As of this writing, there are over 70 click boards available.

Before Starting

You will need a BeagleBone Black running Linux and node. I'm running 3.8.13-bone30 with node v0.10.22.

You may find it useful to get the current image from The Thing System and then deactivating the steward. Instructions on finding the current disk image is located here. If you do that, then:

% ssh [email protected]
% sudo bash
# sh /etc/init.d/steward stop
# update-rc.d steward remove

You may also want to edit the hostname for the device, viz.,

# vi /etc/hostname
# vi /etc/hosts

Regardless, you will want to make sure you are current:

# apt-get update
# apt-get upgrade
# apt-get install i2c-tools

Finally, if you are running off an SD card, you probably want to always boot from that SD card (rather than holding down the boot button). Look for Perform Flash to eMMC here and it will explain how.

You will want to make sure that non-root users (e.g., "debian") can access the devices:

# chmod a+rw /dev/i2c*

Install the mikroBUS driver. To summarize:

% wget http://download.tigal.com/tigal/BBBmikroBUScape/
% tar xpf BB_board_dtbo.tar
# cp BB-MIKROBUS-01-00A0.dt* /lib/firmware/
# halt

Now attach the mikroBUS cape and power-up your BeagleBoneBlack. To see if all went well:

% cat /sys/devices/bone_capemgr.9/slots
...
57:P---L BBB-mikroBusCape,00A1,Tigal-KG,BB-MIKROBUS-01
...

Acknowledgements

In terms of hardware:

In terms of software:

  • Kelly Korevec's node-i2c module that provides native bindings for i2c-dev to node.

  • Timothé Fillion Brunet's node-ADXL2345 module that provides the pattern for writing the device drivers, and was used to derive the driver for the Accel click board.

  • MikroElectronica for providing C coding examples for the click board product line.

node-click-boards's People

Contributors

mrose17 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.