• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Step by step: Getting started with pilight on the Raspberry Pi
#1
This step-by-step assumes you know basic Linux commands to edit text files and have some basic soldering skills.

Step 1: Order the hardware
  1. Go to Shop and order the Full Kit
  2. Get yourself a small blank circuit board to solder the components to
  3. Get a Raspberry Pi with at least an SD card and a charger

Step 2: Hook it up
  1. Hook up the filter according to the schemetic provided with the Filter
  2. Connect the DATA pin on the Receiver to the "433.92 Receiver Data Pin" on the Filter
  3. Connect the 5v pins on the Filter, the Sender and the Receiver to the 5v pin (pin 2 or pin 4) on the Raspberry Pi
  4. Connect the GND pins on the Filter, the Sender and the Receiver to the GND pin (pin 6, 9, 14, 20 or 25) on the Raspberry Pi
  5. Connect the DATA on the Sender to pin 11 on the Raspberry Pi
  6. Connect the pilight IN on the Filter to pin 12 on the Raspberry Pi
  7. The next steps are optional, but recommended, they are for updating the firmware on the Filter
  8. Connect the MOSI on the Filter to pin 19 on the Raspberry Pi
  9. Connect the MISO on the Filter to pin 21 on the Raspberry Pi
  10. Connect the SCK on the Filter to pin 23 on the Raspberry Pi
  11. Connect the RESET on the Filter to pin 24 on the Raspberry Pi
Filter schematic (click for large):
[Image: kmRKr7u.png]

Pin numbers on the Raspberry Pi (click for large):
[Image: Tbj49QG.jpg]


Step 3: Install the software on the Raspberry Pi
  1. Download Raspbian
  2. Follow the instructions to write it to your SD card.
  3. Plug the SD card in the Raspberry Pi and follow the instructions on screen.
  4. Follow the steps under "Apt repository" in the Installation manual to install pilight.

Step 4: Configuring pilight
  1. All configurations are done to the file: /etc/pilight/config.json
  2. Before any configurations are done you have to stop the pilight service (sudo service pilight stop)
  3. After the configuration you have to start the pilight service again (sudo service pilight start)
  4. Read Getting started and read it again.
NOTE: in the default config.json the harware pins mentioned are 0 and 1. This translates to pin 11 and 12 on the Raspberry Pi. See for more info: WiringX

Step 5: More help
  1. Dig through the Website
  2. Dig through the Wiki
  3. Dig through the Forum
  4. Post a question on the Forum

Suggestions?
Do you have any suggestions to improve this step-by-step? Please comment below and I'l update it.
 
Reply
#2
I'd number the steps with numbers, not letters. Otherwise, good instructions Smile
 
Reply
#3
(03-08-2015, 05:04 PM)pilino1234 Wrote: I'd number the steps with numbers, not letters. Otherwise, good instructions Smile

Thanks, done.
 
Reply
#4
Hi nice tutorial. but i have some problems after I change my settings.
I stopped the pilight service and changed the config file. but when i try to restart it , it says

root@raspberrypi:/home/pi# sudo service pilight start
[FAIL] Starting : pilight failed!

even if i reboot the system i cant restart it. i could delete the sd card and reinstall the image, but my problem is, that i dont know how to change the config file. Because i have to stop the pilight service.... or is there another way to change the config file than nano?
 
Reply
#5
You've made a configuration error.

type: sudo pilight-daemon -D
Somewhere at the top is the reason why it won't start.

The service NEEDS to be stopped to change the configuration file, so just: sudo nano /etc/pilight/config.json
 
Reply
#6
I bought the full PCB kit. It was not easy to solder the board together, but I managed. I thought I could install the board with the connector on the Pi. Do I need all kind of wires to use the board? I have a Pi 3 model B.
 
Reply
#7
If you soldered it well you can.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  problem publish to pilight MQTT server Emiks5 4 234 08-31-2020, 07:45 PM
Last Post: Emiks5
  pilight for Raspbian Buster (raspberry pi 4) ? starob 32 8,691 08-10-2020, 09:12 AM
Last Post: simanuel
  pilight switch node in node-red framp 0 359 06-24-2020, 10:01 PM
Last Post: framp
  pilight-control TML 13 1,214 05-27-2020, 07:51 AM
Last Post: curlymo
  API Requests by HTTP from other devices fore use in pilight scootermacro 2 586 05-10-2020, 08:19 AM
Last Post: scootermacro
  Can't send or receive on Raspberry Pi Zero W ChristophH 12 990 04-09-2020, 06:34 PM
Last Post: curlymo
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 3,727 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 1,045 03-08-2020, 12:14 AM
Last Post: beejayf
  raspberry pi 4 config.json Stefan 2 600 02-02-2020, 09:59 AM
Last Post: Stefan
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 1,099 01-28-2020, 08:02 PM
Last Post: hepcat72

Forum Jump:


Browsing: 1 Guest(s)