Share this project

Done

Share this project

Done
Eight on-board relays, 8 12-bit ADC channels,12-bit DAC output, 8 opto-isolated inputs, 4 open collector outputs, 6 GPIO's, stackable
Eight on-board relays, 8 12-bit ADC channels,12-bit DAC output, 8 opto-isolated inputs, 4 open collector outputs, 6 GPIO's, stackable
401 backers pledged $21,645 to help bring this project to life.
Last updated

About

Raspberry Pi Mega-IO Expansion Card project video thumbnail
Replay with sound
Play with
sound

Raspberry Pi Mega-IO Expansion Card

$21,645

401

What is a prototype?

A prototype is a preliminary model of something. Projects that offer physical products need to show backers documentation of a working prototype. This gallery features photos, videos, and other visual documentation that will give backers a sense of what’s been accomplished so far and what’s left to do. Though the development process can vary for each project, these are the stages we typically see:

Proof of Concept

Explorations that test ideas and functionality.

Functional Prototype

Demonstrates the functionality of the final product, but looks different.

Appearance Prototype

Looks like the final product, but is not functional.

Design Prototype

Appearance and function match the final product, but is made with different manufacturing methods.

Production Prototype

Appearance, function, and manufacturing methods match the final product.

Dd67b4fbbf284cc6f9efad4bd1c9ae3c original.jpg?ixlib=rb 2.1

Prototype Gallery

These photos and videos provide a detailed look at this project’s development.

Home Automation 101

This project started with the challenge to integrate as many Home Automation functions as possible into a Raspberry Pi platform. The requirements were rather simple technically, but challenging due to the sheer number of I/O's required:

  • Eight relays for zone heating.
  • Eight relays for zone cooling.
  • Eight relays for irrigation.
  • Eight analog inputs for measuring zone temperatures
  • Eight analog inputs for measuring soil humidity
  • Eight digital inputs for presence detectors
  • Sixteen digital inputs for security sensors

An off the shelf solution was possible, but required too many components:

Off-the-shelf possible solution
Off-the-shelf possible solution

 The cost was not the main concern, but the implementation. The first prototype used to develop the software resembled a small jungle.

Raspberry Pi in the lower left corner, two USB IO cards from eBay, two 16 relay boards from eBay also. Needed to add ADC channels, but we ran out of space. So we built the Mega-IO card.

Stack of three Mega-IO cards
Stack of three Mega-IO cards

The small tower gives all the relays needed, and more than enough analog and digital channels. It also leaves the Raspberry Pi connector available for another card, if we ever need one.

Technically, the Mega-IO card is not a HAT, because it's form factor is too big - it occupies all the real estate on top of the Pi. In all other aspects is HAT-compliant, so we'll call it an X-HAT (eXpanded HAT).

We developed a command line utility which accesses all the IO functions, available for download HERE

The easiest way to develop browser software for the Mega-IO card is using the Node Red, a drag and drop visual tool which runs on the Raspberry Pi and can be used for wiring the internet of Things. Click HERE to download a Raspbian operating system image which includes Node-Red and the following examples for accessing Mega-IO functions.

(Alternately, you can download and install Node-Red yourself following the instructions at https://nodered.org/docs/hardware/raspberrypi )

1. Setting the D/A output

 project video thumbnail
Replay with sound
Play with
sound

2. Testing the A/D input

In order to show the Analog to Digital input function, we implemented a heating and cooling thermostat.

Node-red workflow for heating and cooling thermostat
Node-red workflow for heating and cooling thermostat

The User Interface consists of a text input for setting the target temperature, an analog gauge for displaying the current temperature, a fan switch and an on off system switch. 

Thermostat User Interface
Thermostat User Interface

A status box shows if the system is cooling, heating or on standby.  

A thermistor connected to an analog input of the Mega-IO card is used to measure the ambient temperature. Relays are activated for controlling the fan and the heating and cooling functions.  

Multiple thermostat can be implemented using a single Mega-IO card. 

3. Reading optically isolated inputs

The workflow consists of an inject node which sends a periodical signal to a function node which in turn sends a command to the Mega-IO card. 

Opto-inputs Workflow
Opto-inputs Workflow

The card response is parsed and displayed by text nodes.

Opto-inputs Dashboard
Opto-inputs Dashboard

4. Testing the Relays

The Relay Test workflow consist of Button Nodes for turning on and off a relay, and Numeric Nodes for selecting the card stack and the relay number. 

Function Nodes are used for storing variables received from the Numeric Nodes and for passing the command line parameters to the Execution node, which in turn is passing the command line to Raspberry Pi.  

A debug node is checking for error messages.

Relay Test Workflow
Relay Test Workflow

The User Interface has buttons for turning the relays on and off, and select boxes for the stack and relay number.

Relay Test Dashboard
Relay Test Dashboard

Source code download

D/A Output;   A/D Input;   Opto-Isolated Inputs;   Relays;

We hope to build a community which develops and shares applications for the Mega I O card. Please join this community by supporting this project and letting your friends know about it.

Mega-IO Website
Mega-IO Website

 IO SPECIFICATIONS

MICROCONTROLLER: STM8L151C3T6  
SIX GPIO pins :
  • Operating voltage: 3.3V  
  • CPU frequency: 16 MHz  
  • Touch sensing capability  
  • Max. input voltage on any pin: 4V  
  • Series protection resistor on IO pins: 51 Ohms  
  • Output Low Level Voltage on I/O pins: Max. 0.45V  
  • Output High Level Voltage on I/O pins: Min. 2.6V

FOUR OPEN COLLECTOR OUTPUTS: 

  • Driver: ULN2003F12FN-7  
  • Output Low Voltage: 0.6V  
  • Max Pull Up Voltage: 20V  
  • Max sink per channel: 100mA @ 3.3V Logic Input  
  •                                     140mA @ 5.0V Logic Input  
  • ESD: 4kV HBM, 1kV CDM

EIGHT 12 bit ADC

  • Sample rate: Up to 1 Msps  
  • Input low pass filter: 0.22µF/51 Ohms

OPTOISOLATORS: TLP293-4

  • LED current limit resistor: 1 Kohm  
  • Input Forward Current: Typ. 5 mA, Max 50 mA  
  • Input Reverse Voltage: 5V  
  • Input Forward Voltage: 1.25V @ 10 mA  
  • Isolation Resistance: Min 10 exp(12) Ohms  
  • Isolation Voltage: Typ 10,000 V

RELAYS: SRD-05VDC-SL-C

  • Relay max current/voltage: 10A/25V  
  • PCB max current/voltage: 2.5A/24V

Risks and challenges

Assuming enough backers are interested, the risk of not completing this project is very limited. All the software is functional, and potential bugs will be easy to deal with. We have under development a boot-loader which will permit updating the firmware either to fix bugs, or to add new features.

We are, of course, counting on China to be able to supply low cost manufacturing. If this trend continues through our promised delivery date, we strongly believe we'll be able to fulfill all orders.

Learn about accountability on Kickstarter
Questions about this project? Check out the FAQ

Support

  1. Select this reward

    Pledge US$ 5 or more About US$ 5

    Make a Wish

    We have room for a few more features on this packed card. Tell us what you want and if a few people suggest it, we'll do our best to add it.
    PWM? Timers? Stepper controller? Differential A/D? Other sensors?

    Less
    Estimated delivery
    0 backers
    $

    By pledging you agree to Kickstarter's Terms of Use, Privacy Policy, and Cookie Policy.

    Kickstarter is not a store.

    It's a way to bring creative projects to life.

    Learn more about accountability.
  2. Select this reward

    Pledge US$ 10 or more About US$ 10

    LED Display Board for Mega-IO Card

    One 32-LED add-on board for your Mega-IO
    Free shipping with your Mega-IO card.

    Please check the project updates for description.

    Less
    Estimated delivery
    Ships to Anywhere in the world
    4 backers
    $

    By pledging you agree to Kickstarter's Terms of Use, Privacy Policy, and Cookie Policy.

    Kickstarter is not a store.

    It's a way to bring creative projects to life.

    Learn more about accountability.
  3. Select this reward

    Pledge US$ 29 or more About US$ 29

    MEGA-IO Expansion Card

    One fully functional, assembled and tested Mega-IO expansion card for your Raspberry Pi.
    Save $10 off the final retail price.

    Less
    Estimated delivery
    Ships to Anywhere in the world
    88 backers
    Limited (112 left of 200)
    $

    By pledging you agree to Kickstarter's Terms of Use, Privacy Policy, and Cookie Policy.

    Kickstarter is not a store.

    It's a way to bring creative projects to life.

    Learn more about accountability.
  4. Select this reward

    Pledge US$ 34 or more About US$ 34

    MEGA-IO Expansion Card

    One fully functional, assembled and tested Mega-IO expansion card for your Raspberry Pi.
    Save $5 off the final retail price.

    Less
    Estimated delivery
    Ships to Anywhere in the world
    5 backers
    $

    By pledging you agree to Kickstarter's Terms of Use, Privacy Policy, and Cookie Policy.

    Kickstarter is not a store.

    It's a way to bring creative projects to life.

    Learn more about accountability.
  5. Reward no longer available

    Pledge US$ 25 or more About US$ 25

    Early Backer

    One fully functional, assembled and tested Mega-IO expansion card for your Raspberry Pi.
    Save $14 off the final retail price.

    Less
    Estimated delivery
    Ships to Anywhere in the world
    Reward no longer available
    200 backers
    $

    By pledging you agree to Kickstarter's Terms of Use, Privacy Policy, and Cookie Policy.

    Kickstarter is not a store.

    It's a way to bring creative projects to life.

    Learn more about accountability.
  6. Reward no longer available

    Pledge US$ 96 or more About US$ 96

    Set of four Mega-IO Expansion Cards

    Full Home Automation set with one card to spare. Save $50 of the final retail price.

    Less
    Estimated delivery
    Ships to Anywhere in the world
    Reward no longer available
    100 backers
    $

    By pledging you agree to Kickstarter's Terms of Use, Privacy Policy, and Cookie Policy.

    Kickstarter is not a store.

    It's a way to bring creative projects to life.

    Learn more about accountability.

Funding period

- (30 days)

Line icon alert icon Artboard Copy 8 arrow-down icon arrow-down arrow-left icon arrow-left arrow-point-left icon Fill 1 Copy 5 arrow-point-right icon Fill 1 arrow-right icon arrow-right arrow-up-right icon icon--arrow-up-right copy bar-chart icon Artboard Copy 6 bell icon Combined Shape Copy 5 book icon Artboard Copy 3 bookmark icon Fill 1 brand-assets icon Artboard Copy 13 cart icon Artboard Copy 4 chat icon chat check icon Fill 1 Copy 6 circle-back icon Fill 1 Copy 13 circle-forward icon Fill 1 Copy 16 circle-k icon circle-k circle-left icon circle-left circle-right icon circle-right clipboard icon Artboard Copy 12 clock icon Combined Shape close icon close closed-caption icon Fill 1 compass icon Combined Shape Copy 2 conversion icon conversion delta-down icon Fill 1 delta-left icon delta-right icon Fill 1 delta-up icon Fill 1 duplicate icon duplicate embed icon Combined Shape Copy 6 eye icon Combined Shape Copy 12 facebook-contained icon Facebook Contained facebook icon Facebook logo flag icon Fill 1 Copy 3 gear icon Fill 1 Copy 14 global-africa icon Fill 1 Copy 9 global-america icon Fill 1 Copy 10 global-asia icon Fill 1 Copy 17 graph-bar icon Combined Shape Copy 9 graph-line icon Combined Shape Copy 16 heart icon Fill 1 Copy 8 help icon human icon icon--human icon--alarm icon icon--alarm icon--alert icon icon--alert icon--arrow-down icon icon--arrow-down icon--arrow-left icon icon--arrow-left icon--arrow-right icon icon--arrow-right icon--arrow-up-right icon icon--arrow-up-right icon--arrow-up icon icon--arrow-up icon--backer-badge icon icon--backer-badge icon--bell icon icon--bell icon--bolt icon icon--bolt icon--bookmark-outline icon icon--bookmark-outline icon--bookmark icon icon--bookmark icon--calculator icon icon--calculator icon--calendar-check icon icon--calendar-check icon--calendar icon icon--calendar icon--campaign-outline icon icon--campaign-outline icon--check icon icon--check icon--chevron-down icon icon--chevron-down icon--chevron-left icon icon--chevron-left icon--chevron-right icon icon--chevron-right icon--chevron-up icon icon--chevron-up icon--circle-around icon icon--circle-around icon--circle-back icon icon--circle-back icon--circle-forward icon icon--circle-forward icon--circle-loader icon Page 1 icon--circle icon icon--clipboard icon icon--clipboard icon--clock icon icon--clock icon--closed-caption icon icon--closed-caption icon--code icon icon--code icon--collapse icon icon--collapse icon--commissions icon icon--commissions icon--compass icon icon--compass icon--confirmation icon icon--confirmation icon--conversion icon icon-conversion icon--cpu icon icon--curve-right icon icon--curve-right icon--cross icon icon--cross icon--delta-down icon icon--delta-down icon--delta-left icon icon--delta-left icon--delta-right icon icon--delta-right icon--delta-up icon icon--delta-up icon--download icon icon--download icon--ellipsis icon icon--expand icon icon--expand icon--external icon icon--external icon--eye icon icon--eye icon--facebook icon icon--facebook icon--filter icon icon--filter icon--flag icon icon--flag icon--frown-filled icon icon--frown icon icon--gear icon icon--gear icon--globe-africa icon icon--globe-africa icon--globe-america icon icon--globe-america icon--globe-asia icon icon--globe-asia icon--graph-bar icon icon--graph-bar icon--graph-line icon icon--graph-line icon--happy-filled icon icon--happy icon icon--heart-outline icon icon--heart outline icon--heart-thin-outline icon Fill 1 icon--heart icon icon--heart icon--home icon icon--home icon--home-with-door icon icon--human icon icon--human icon--humans icon icon--humans icon--image icon icon--image icon--inbox icon icon--inbox icon--info icon icon--info icon--instagram icon icon/instagram icon--lightbulb icon icon--lightbulb icon--link icon icon--link icon--lock-black-bg icon lock-icon icon--lock icon icon--lock icon--mail icon icon--mail icon--meh-filled icon icon--meh icon icon--menu icon icon--menu icon--message icon icon--message icon--mobile icon icon--mobile icon--overflow icon icon--overflow icon--pause icon icon--pause icon--pencil icon icon--pencil icon--pin icon icon--pin icon--pinterest icon icon--pinterest icon--play icon icon--play icon--plus-human icon icon--plus-human icon--plus icon icon--plus icon--prohibit icon icon--prohibit icon--project-budget icon icon--pull-quote icon icon--pull-quote icon--question-filled icon icon--question-filled icon--question icon icon--question icon--reorder icon icon-reorder icon--reply icon icon--reply icon--save icon icon--save icon--saved icon icon--saved icon--search icon icon--search icon--section-break icon icon--section-break icon--small-k icon icon--sound-hi icon icon--sound-hi icon--sound-lo icon icon--sound-lo icon--sound-mute icon icon--sound-mute icon--star-outline icon Star Outline icon--star icon icon--star icon--subtitles-captions icon icon--subtitles-captions icon--text-bold icon icon--text-bold icon--text-bullet icon icon--text-bullet icon--text-italic icon icon--text-italic icon--textalign-centered icon icon--textalign-centered icon--textalign-right icon icon--textalign-right icon--thumbs-down icon icon--thumbs-down icon--thumbs-up icon icon--thumbs-up icon--thumbsdown-outline icon icon--thumbsdown-outline icon--thumbsup-outline icon icon--thumbsup-outline icon--trash icon icon--trash icon--tumblr icon icon--tumblr icon--twitter icon icon--twitter icon--unlink icon Artboard icon--unlock icon icon--unlock icon--update-freeform-round icon icon--update-freeform-round icon--update-freeform icon icon--update-freeform icon--update-pinned icon Artboard icon--update-qa-round icon icon--update-qa-round icon--update-qa icon icon--update-qa icon--upload icon icon--upload icon--video icon icon--video icon--youtube icon icon--youtube icon-imagealign-center icon icon-imagealign-center icon-imagealign-left icon icon-imagealign-left icon-imagealign-right icon icon-imagealign-right info icon Combined Shape Copy instagram icon instagram copy kickstarter icon Artboard Copy 5 leaf icon leaf lightbulb icon icon--lightbulb link icon Combined Shape Copy 8 loading-spin icon lock icon Combined Shape Copy 4 mail icon Combined Shape map-pin icon Fill 1 menu icon Group message icon Fill 1 Copy 12 mobile icon Page 1 Copy 2 pause icon pause copy pencil icon Combined Shape Copy 3 pin icon Combined Shape Copy 11 pinterest icon pinterest play icon play copy plus-human icon icon--plus-human plus icon Fill 1 Copy 7 question icon Combined Shape Copy 14 search icon Fill 1 Copy 11 shapeshift icon share icon Fill 1 Copy slash icon solid-arrow icon solid-arrow sound-hi icon Combined Shape sound-lo icon Combined Shape sound-mute icon Combined Shape star icon Fill 1 Copy 2 stopwatch icon Group 2 thumbs-up icon Shape tools icon Shape trash icon Combined Shape tumblr icon tumblr copy twitter icon twitter copy user icon Artboard Copy 10 volume-up icon Artboard Copy 9 warning icon Combined Shape Copy 10 write icon Artboard Copy 11 x icon Fill 1 Copy 4 youtube icon Combined Shape