Git Product home page Git Product logo

mysensorspigw's Introduction

๐Ÿ‡ซ๐Ÿ‡ท ๐Ÿ‡ฌ๐Ÿ‡ง

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

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

configure (Ethernet gateway)

./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

sudo ./bin/mysgw

install

sudo make install

NRF24L01 on SPI0

Download master branch

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

configure (Ethernet gateway)

./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

sudo ./bin/mysgw

install

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

//*** 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

sudo reboot

copy the source

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

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

cp examples_linux/mysgw.cpp examples_linux/mysgwSecond.cpp

configure the second instance

./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

sudo ./bin/mysgwSecond

install

sudo make install

mysensorspigw's People

Contributors

llegoff avatar sineverba avatar

Watchers

 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.