MySensors node
License:
CERN Open Hardware License
Created:
9 years ago
Updated:
8 years ago
Views:
17529
4 Collect
2 Comments
Share
131 Download (8.51 MB)
Make a donation to Anticimex

Board releases:

I designed this board as a host for the hardware I have collected so far. I have made three layouts of the board; one “low cost” 5x5 cm board (allows the cheapest option at Dirt Cheap Dirty Boards and two layouts tailored for two Superbat boxes. BOX-2252 and LE-BOX-0028.

Feature list (short version):

  • Accepts Arduino Pro Mini 3.3V in all variants I am familiar with
  • Supports both NRF24 and RFM69 but not simultaneously due to lack of available IO
  • Supports MYSX 1.0 to 1.5 daughterboards
  • Supports both “conventional” battery measurement and a low-power variant of it
    • Instead of a dual resistor divider, I use a potentiometer. That way, any analog reference level can be used, and resolution can be tuned against any expected value of battery voltage
  • Two different regulators can be used (depending on input voltage)
    • 12V input or 4.2V input (step-up)
      • 4.2V regulator can be programmatically bypassed for low power operation when battery is high enough for all circuitry. Two options exist; TI TPS61221 and TI TPS61097A, both 3.3V fixed versions (no support for variable voltage versions)
  • 6 different ways of powering the board
    • DC socket
    • Battery wires
    • JST socket (LiPo cells)
    • CR123 socket
    • 24.5mm coincell
    • MYSX daughterboard Vraw supply
  • MYSX 3.3V power can be programmatically switched off
  • ATSHA204A HW authentication/signing
  • 3 dedicated switchable 3.3V/GND rail pins for discrete sensors
  • Onboard SI7021 temp/hum sensor
  • AVR ISP programming header
  • External SPI flash for OTA

Due to limited available IO and to support various use cases some aspects of the board is configurable using jumpers:

  • JP1 - Serves as current measurement tap from on-board power connectors. Has to be shorted if on-board power connectors are used.
  • JP2 - Selects 3.3V regulator. Pos 1-2 for 4.2V input (max) and pos 2-3 for 12V input (max)
  • JP3 - Sort to bypass regulators and tie on-board power connectors directly to 3.3V net
  • JP4 - Short to skips the low-power battery sampling option. This will cause a continuous power drain on the batteries through a 1M Ohm potentiometer.
  • JP5 - Short to skip the switch for MYSX 3.3V rail. MYSX 3.3V rail will be “permanently on”.
  • JP6 - Short to cause MYSX_D10_A4 signal to be used to set low-voltage 3.3V regulator in bypass mode. This can be used if battery voltage is high enough to drive all circuitry without being boosted at the potential expense of the MYSX_D10_A4 pin usage of a daughterboard. JP6 serves as a mean to permit MYSX_D10_A4 to behave according to MYSX specifications if left open (at the corresponding expense of not being able to set regulator in bypass mode).
  • JP7 - Serves as current measurement tap for off-board power connector through MYSX. Has to be shorted if off-board power connector is used.
  • JP8 - Selects INT1 interrupt source. Pos 1-2 for MYSX_D3_INT and pos 2-3 for RF board.
  • JP9 - Selects SPI SS destination. Pos 1-2 for NRF24 and pos 2-3 for RFM69.
  • JP10 - Short to enable MYSX_D9_A3 to be used to take a low-power battery sample. If enabled, analog measurement of a daughterboard on MYSX_D9_A3 might not work as expected.

Feature list (the somewhat more comprehensive version):

  • Any Arduino Pro Mini with A6 and A7 pins available should fit this board (A6 and A7 is required to comply with MYSX specifications.
  • Although the board can take both NRF24 and RFM69 at the same time mounted, they share pin for SPI chip select, so they cannot be used simultaneously (unless you patch the board to re-route one of the chip selects to a different Arduino pin and make the necessary SW modifications)
  • Support the MySensors Expansion port (MYSX) in all versions up to 1.5. MYSX specifications is available here. Depending on what battery sockets are mounted on the board, the MYSX connector may have to be “raised” so a daughterboard can fit in some of the layouts of the board.
  • Flexible options for battery measurement:
    • Voltage divider is implemented using a potentiometer (1M@RV1) which makes it possible to tune the sample voltage to optimize measurement range.
    • JP4 can be shorted to connect battery net directly to potentiometer (which in turn is connected to Arduino pin A0). A footprint for an optional decoupling capacitor is available at C8 to smooth the sample value. It is not recommended to use C8 if low-power sampling option is used.
    • With JP4 open, battery samples are taken by momentarily driving MYSX_D9_A3 low (Arduino pin A1). When sample is taken, MYSX_D9_A3 is set high again, which prevents continuous drain of battery through RV1. This assumes JP10 is shorted. If a daughterboard is connected that uses MYSX_D9_A3, analog samples taken on that pin might be affected by the 0.1uF capacitor (C9) when JP10 is shorted.
  • Depending of power source used, two regulator options are available.
    • For “high” voltage sources a LDO provides the regulated 3.3V voltage. Maximum accepted voltage is 12V. This is enabled by shorting JP2 pos 2-3.
    • For “low” voltage sources a step-up voltage regulator provides the 3.3V voltage. Maximum accepted voltage is 4.2V. This is enabled by shorting JP2 pos 1-2. The step-up voltage regulator also implements a pass-through option in which the regulator is turned off and the input voltage is fed right through it. The pass-through is enabled by driving MYSX_D10_A4 low (Arduino pin A2) and shorting JP6. Be aware that this also goes through the MYSX connector, so it is not recommended to use this feature if a daughterboard is connected that uses MYSX_D10_A4. There are two footprints available for this regulator alternative; SC-70 (TI TPS61221) and SOT-23 (TI TPS61097A). Both has to be the 3.3V fixed version since there is no footprints for adjustment-resistors. Also note that these two regulators are mutually exclusive. Do NOT mount them both at the same time.
  • All different power source options can be simultaneously mounted (not that it has to be). But on some layouts, the BT4 and BT5 (CR123 and coin cell) connectors one of the BT4 connector legs needs to be filed down if a coin cell battery is to be fitted. But the layout will ensure no shorts are risked. On the 5x5cm board, BT4 and BT5 are omitted due to size constraints. The following possibilities exist:
    • DC socket (BOM will use 2.5MM part with center pin being positive and shield ground.
    • Battery wires (or virtually any power source) can be connected to a 2.54mm pitch screw terminal (or soldered directly to the board).
    • A JST (S2B-PH-K-S) connector for LiPo cells (like this or this one).
    • A CR123 socket (not available on 5x5 cm board).
    • A 24.5mm coincell holder capable of accepting up to CR2477 sizes (not available on 5x5 cm board).
    • Vraw supply from a MYSX daughterboard.
  • The 3.3V pin of the MYSX connector can be programmatically switched off.
    • To switch off the 3.3V supply pin drive Arduino pin D4 low. Leave it floating to have the 3.3V pin enabled.
  • ATSHA204A HW signing is available (uses Arduino pin A3).
  • 3 (switchable) 3.3V/GND rail pairs is available to allow discreet mounting of wired sensors (in excess to the pins available on the MYSX connector).
  • An onboard SI7021 sensors is connected to the I2C bus to provide rudimentary sensor possibilities on the motherboard itself.
  • An onboard AVR ISP programming socket provides the possibility to program a custom bootloader to the Arduino (useful for OTA).
  • An external flash is connected to the SPI bus to permit OTA using the Dualoptiboot bootloader.

The schematics and BOMs are done. Schematics and layouts are all stored here and will be updated from time to time. I will notify in this topic once I have done tape-out and have manufactured the boards. I am somewhat confident on the design of revision 1.1 (with lessons learnt from revision 1.0) so I plan to finish all three boards before I manufacture any one of them. For the LE-BOX-0028 (the largest box) the layout has all components mounted top side. It also features more silkscreen text for ease of jumper operation and it places the NRF24 module so that it can accommodate a PA/LNA "extended" module and have the antenna exit the box and still be "turnable". Forum feedback is very welcome! The designed is licensed under CERN OHL V1.2 and is fully Open Hardware. And finally, some eye candy :) (please note that the images might not exactly resemble the actual boards, as I am still making minor tweaks to them)

The 5x5 cm board: (available for purchase at DirtyPCBs)

The BOX-2252 board:

The LE-BOX-0028 board: