Skip to the content
2 layers65 × 30 mmMySensorsPiGw, the printed circuit board in 3D

MySensors RFM69 & NRF24L Gateway for Raspberry Pi (zero & B)

Size
65 × 30 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
48
Pads
124
Tracks, vias
386, 44
Pours
2
Routed
Yes
KiCad
KiCad 4
Created
30 Aug 2017
Updated
27 Apr 2018

Overview

MySensorsPiGw is an open-source printed circuit board by llegoff, from the llegoff/MySensorsPiGw repository on GitHub. It is a 2-layer board of 65 × 30 mm with 29 parts on 48 nets, routed with 386 tracks and 44 vias.

It is built around the AP1117DG and RFM69HW. Its parts include 7 resistors, 6 capacitors, 6 diodes, 4 ICs and 3 connectors.

Main components

2

README

README.md

:fr: :uk:

MySensorsPiGw

MySensors RFM69 & NRF24L Gateway for Raspberry Pi (zero & B)

see https://www.mysensors.org/build/raspberry

revision:

v1

  • bad width of antenna track

v2

  • change width of antenna track
  • add 3.3v regulator
  • add C1, C2, C3, C4

v3

  • add second NRF24L01 on SPI1
  • add capacitor C5 C6
  • add status leds D4 D5 D6
  • change J3 position

Schema

sch

PCB

Top Bottom

RFM69HW

RFM69HW is connected to SPI0

Download dev branch

text
git clone https://github.com/mysensors/MySensors.git --branch development
cd MySensors

configure (Ethernet gateway)

text
./configure --my-transport=rfm69 --my-rfm69-frequency=868 --my-is-rfm69hw --my-port=5003 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18
make

running

text
sudo ./bin/mysgw

install

text
sudo make install

NRF24L01 on SPI0

Download master branch

text
git clone https://github.com/mysensors/MySensors.git --branch master
cd MySensors

configure (Ethernet gateway)

text
./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-port=5003 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18
make

running

text
sudo ./bin/mysgw

install

text
sudo make install

NRF24L01 on SPI1

It's experimental, see https://forum.mysensors.org/topic/7702/double-spi-radio-raspberry-pi

in /boot/config.txt add

text
//*** uncomment for pi3 ***
//dtoverlay=pi3-disable-bt

dtparam=spi=on
//change spi1 cs0 to gpio16 pin 36
dtoverlay=spi1-1cs,cs0_pin=16  

reboot the PI

text
sudo reboot

copy the source

text
cp -r MySensors MySensorsSecond
cd MySensorsSecond

edit file Makefile : replace the string mysgw by mysgwSecond (in nano use Ctrl + \ )

copy file initscripts/mysgw.systemd and initscripts/mysgwSecond.sysvinit to initscripts/mysgwSecond.systemd and initscripts/mysgwSecond.sysvinit

text
cp initscripts/mysgw.systemd initscripts/mysgwSecond.systemd
cp initscripts/mysgwSecond.sysvinit initscripts/mysgwSecond.sysvinit

edit file initscripts/mysgwSecond.systemd and initscripts/mysgwSecond.sysvinit : replace the string mysgw by mysgwSecond (in nano use Ctrl + \ ) and replace the string MySensors Gateway by MySensors Gateway 2

copy file mysgw.cpp to mysgwSecond.cpp

text
cp examples_linux/mysgw.cpp examples_linux/mysgwSecond.cpp

configure the second instance

text
./configure --my-transport=nrf24 --my-rf24-irq-pin=33 --my-rf24-ce-pin=37 --my-rf24-cs-pin=36 --spi-spidev-device=/dev/spidev1.0 --spi-driver=SPIDEV --my-port=5004 --my-leds-err-pin=29 --my-leds-rx-pin=31 --my-leds-tx-pin=32
make

running

text
sudo ./bin/mysgwSecond

install

text
sudo make install

Parts

29
QtyValueFootprintReferences
6470Resistors_SMD:R_0805_HandSolderingR1, R2, R3, R4, R5, R6
3100nCapacitors_SMD:C_0805C2, C4, C6
310uCapacitors_SMD:C_0805C1, C3, C5
2ERRLEDs:LED_0805_HandSolderingD1, D4
2RXLEDs:LED_0805_HandSolderingD2, D5
2TXLEDs:LED_0805_HandSolderingD3, D6
10Resistors_SMD:R_0805_HandSolderingR7
1ANTConnectors:SMA_THT_Jack_StraightJ1
1AP1117TO_SOT_Packages_SMD:SOT-223U3
1CONN_01X01Connectors:PINTSTJ3
1CONN_02X20_LaurentPerso:RaspberryPiZeroHATJ2
1LOGOmysensors_obscurities:MySensors-logo-sticker-largeG***
1NRF24L01 SPI0mysensors_radios:NRF24L01U2
1NRF24L01 SPI1mysensors_radios:NRF24L01U4
1RFM69HWmysensors_radios:RFM69HW_SMD_HandsolderingU1

The 27 most common of 29 parts.

Similar boards

  • 2 layers65 × 31 mmDiy tracker, the printed circuit board in 3D

    Diy tracker

    glidernet/diy-tracker

    Do-it-Yourself OGN Tracker software

    27 parts30GPL-3.0
  • 2 layers35.6 × 20.3 mmSTM32 Sensor, the printed circuit board in 3D

    STM32 Sensor

    freynder/STM32_Sensor

    Tiny STM32 board with RFM69 support

    27 parts12
  • 2 layers50 × 50 mmMysensorsGW, the printed circuit board in 3D

    MysensorsGW

    mysensors/SensebenderGW

    Gateway for MySensors

    76 parts7
  • 2 layers55 × 35 mmMini BT Pcb-328P, the printed circuit board in 3D

    Mini BT Pcb-328P

    d-diot/Mini-BT-Pcb-328P

    MySensors ATMega328P + RFM69 and NRF24 battery (AAA and CR2032) powered pcb

    54 parts3
  • 2 layers48 × 35 mmPax BB5, the printed circuit board in 3D

    Pax BB5

    CalinRadoni/pax-BB5

    STM32L051K8T BaseBoard with RFM69HW and external Flash memory with support for PlatformIO

    27 parts2GPL-3.0
  • 2 layers69.6 × 80.5 mmProtoBoard, the printed circuit board in 3D

    ProtoBoard

    dustinreynolds/STM32Hardware

    Repository for Kicad board development and support libraries

    158 parts2

Questions

How big is the MySensorsPiGw PCB?

It measures 65 × 30 mm and has 2 copper layers, 1.6 mm thick.

What parts does the MySensorsPiGw use?

29 parts, built around the AP1117DG and RFM69HW. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the MySensorsPiGw KiCad files?

From the llegoff/MySensorsPiGw repository on GitHub, at the commit this page was made from: the board is KICAD/MySensorsPiGw.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the MySensorsPiGw design in my own project?

Its repository states no licence, so its author keeps all rights: ask llegoff before reusing the design.