Code Monkey home page Code Monkey logo

abelectronics_nodejs_libraries's Introduction

AB Electronics UK Node JS Libraries

Node JS Libraries to work with Raspberry Pi expansion boards from https://www.abelectronics.co.uk

Raspberry Pi Models: A, B, A+, B+, 2, 3, 4, 400, Compute Module, Zero.

To download to your Raspberry Pi type in the terminal:

git clone https://github.com/abelectronicsuk/ABElectronics_NodeJS_Libraries.git

All library files can be found in the lib folder All example programs can be found in the examples folder

ADCDAC Pi

The adcdacpi directory contains the library to use with the ADC DAC Pi Zero

ADC Pi

The adcpi directory contains the library to use with the ADC Pi

ADC Differential Pi

The adcdifferentialpi directory contains the library to use with the ADC Differential Pi

I2C Switch

The i2cswitch directory contains the library to control the functions of the 4-channel I2C switch

Expander Pi

The expanderpi directory contains the library to control all of the functions on the Expander Pi

IO Pi

The iopi directory contains IO Pi Python Library and demos to use with the IO Pi Plus and IO Pi Zero.

IO Zero 32

The iozero32 directory contains IO Zero 32 Python Library and demos to use with the IO Zero 32

RTC Pi

The rtcpi directory contains the library to use with the RTC Pi

abelectronics_nodejs_libraries's People

Contributors

abelectronicsuk avatar vincentdauliac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

abelectronics_nodejs_libraries's Issues

Undefined variable in the lib iopi.js

Hello,

First, thanks for the lib, it's very useful when working with the IO Pi Plus.

Nonetheless, I'd like to report a bug I faced in lib/iopi.js
I don't have any log report on hand, but the problem is quite easy to see and fix :

l.145, in the function setPinDirection, portAdir is undefined, because a "this." is missing.
The same thing occurs l.148, with the var portBDir.

Hope it helps

Some help in determining pwm values for servo

I do not quite understand how to pick the min and max values for the pwm. Some questions I have:

  • in the servomove demo min and max values are 250 and 500. What is the unit and range of these values?
  • what is the significance of the "on" and "off" arguments of setPWM? I would guess it is the high time and low time in a pwm cycle, but then it seems over constrained as the frequency is also set. Also, the "on" argument is always 0 in the example

My servos should be driven at 50Hz and an impulse length between 0.9 ms and 2.1 ms. What should the min and max values be?

Working with 'onoff' gpio library?

Would it be possible to make the extension board Pi Plus work with the 'onoff' gpio library? Onoff is way more advance, since it has interrupt detection.

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.