npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

click-boards

v1.0.0

Published

A node.js module to interface with various click boards from MikroElectronica

Downloads

12

Readme

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.