Giter Club home page Giter Club logo

lsr32io's Introduction

LSR32IO

LSR 32IO Expansion library designed for Arduino compatible boards for industrial control

Intro

SPI I/O expansion module for microcontrollers and microprocessors. Consists of 32 inputs and 32 outputs per module (64 pins total). Supports input range between +5V to +50V DC and output capability of +9V to 36V DC with each output capable of 100mA curent. Each input and output pin has its indicator LED like modern PLCs. This really helps to visualize and simulate different scenarios without having anything wired.

image image Note: running tests using the SelfCheck example with 2 of the first prototype modules in series, each having mixed ultra bright and normal LED lights. image image Better pictures comming soon

Logic

The module uses the SPI interface to communicate with a host controller. The main logic is based on 4 SIPO (Serial IN Parallel OUT) and 4 PISO (Parallel IN Serial OUT) Latching Shift Registers (LSR). Transmission is controlled by an octal tri-state buffer to better control the SPI signal lines, since the PISO LSR doesn't fully comply with the SPI standard.

Design

The module is made of using almost only off-the-shelf low-cost parts. It is designed to work in industrial environments where reliable I/O control is desired. The board is designed to be connected to multiple modules of the same type serially. This way we can extend the number of IO even more without using any additional pin of the host controller. You can choose between PNP and NPN transistor output amplifiers BUT if you decide to use PNP, you must solder a jumper between the selector pins AND use the correct transistor arrays. Everything is written on the PCB. Just make sure you have each module have its 4 matching transistor arrays. The inputs are passed through a tri-state buffer to trigger equally on very weak/soft signals and very strong/high signals with the same voltage output.

Software

The library is designed to control up to 8 modules connected in series (soft limit). Because why would you need 8x32 I/O (256 inputs, 256 outputs). Using the library is very simple. You just connect to the 3 default SPI pins and define the other 3 control pins (4th optional reset pin) when initializing the library class object. Then in setup call the setup with the number of modules you have connected to the line. Then just start using it. Look up the examples. The examples were tested on STM32 and AVR MCUs, but it can work on any MCU that is Arduino compatible.

Hardware

Link to the Arduino Library files files: https://github.com/Jozo132/LSR32IO Link to the PCB design files: https://circuitmaker.com/Projects/Details/Joe-Vovk/LSR-32IO-Expansion

lsr32io's People

Contributors

jozo132 avatar

Watchers

James Cloos 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.