Node

Node types

  • Energy monitoring
    • Powered by battery or on main
    • 2 Hal, 1 Strait
    • 4 current sensors
    • Environment sensors
  • Relay nodes
    • Powered by main
    • Can switch N relays
    • Can measure current through each relays
    • Environment sensors
  • Switch nodes
    • Powered by main
    • Fits in wall sockets
    • Has N push buttons
    • Has N leds

Pin Assignment

Requirements

  • Two HAL : 2 Dig
  • One Dry Pulse : 1 Digi
  • Temp and Humidity : I2C
  • VIn : 1 Ana + 1 Digi (trigger)
  • Two Push Buttons (2 Digi)
  • 4 Digital Output (4 Digi)

Total :

  • I2C
  • 1 Ana
  • 8 Digi
  • 1 Interrupt

Notes

  • One interupt pin can be used to monitor multiple inputs with the helps of diodes
  • Digital inputs can be extended with I2C Digital extender
  • Analog inputs can be extended with ADS1515
  • We can easely read 5 digital inputs on an analog input with the help of a tension divider

Assignment

The moteino has 22 a/d pins from which some are reserved for the internal use of the moteino (flash, rf)

  • D0,1 : Serial
  • D2,10-12 : Transceiver
  • D3 : Interrupt
  • D4 : HAL1
  • D5 : HAL2
  • D6 : Dry Pulse 1
  • D7 : Vin Trigger
  • D8,11-13 : Flash
  • D9 : LED
  • D14 : Free
  • D15 : Free
  • D16 : Free
  • D17 : ConfigReset
  • D18,19 : I2C
  • A6 : Vin
  • A7 : Free (Could be up to 5 input based on voltage divider)
  • I2C 8 Port Extender : DOUN 1-8

MCP23018 Allow 16 Digital I/O with interrupt to control 5 relays, 5 push buttons and 5 leds

Components

  • Current Measurement : testing TA12-200 (5A as low as 1.25$ on AliExpress, used in Grove)