Skip to content

Getting Started

Franz Schnyder edited this page Sep 18, 2014 · 5 revisions

Wiring the Hardware

You need a Raspberry Pi and a nRF24L01+ transceiver. The transceiver modules can easily be obtained via eBay and many other places for prices as low as $2. To extend the reach use a transceiver module with a power amplifier and a SMA antenna.

Wire the nRF24L01+ transceiver to the GPIO's of the Raspberry Pi:

nRF24L01+ PIN Raspberry Pi GPIO
VCC 27
GND GND
CE 25
CSN 8
SCK 11
MOSI 10
MISO 9
IRQ 24

WiringPicture

Installing the Software

Download the BtMqttSnGateway.tar.gz from the latest release.

wget https://github.com/bittailor/BtEmbedded/releases/download/v0.1.1/BtMqttSnGateway.tar.gz

Extract it.

tar -xvzf BtMqttSnGateway.tar.gz

Change into the BtMqttSnGateway-version folder and adapt the Broker entry in the settings.xml to your MQTT brokers URL and provide user and password if needed.

pico settings.xml
<Broker>
    <Url>iot.eclipse.org</Url>
	<!-- <User>mqtt</User> -->
    <!-- <Password>password</Password> -->
</Broker>

Start the gateway with root privileges since root privileges are needed for the GPIO low level access.

sudo BtMqttSnGateway

Clone this wiki locally