Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 2.18 KB

BUILDING.md

File metadata and controls

40 lines (25 loc) · 2.18 KB

Building Instructions

The file contains the instructions for scanning your own plugs and adding them to the flow diagrams in Node-Red. As discussed in the README.md, the system uses Docker to containerise the critical subsystems.

Scanning the Plug Frequency

If the developer has a different set of plugs than those specified in the ReadMe. The entire system can still work. It means extra work will be needed to ensure Node-RED can communicate with the Plugs

To scan the frequency that the plug uses, five bits of equipment are needed:

  • Logic Analyser - Required for seeing the signals Transmitted by the Remote
  • 433MHz Receiver - Required to receive the On, Off signals from the remote
  • RF Plugs Remote - Required to send the On, Off Signals
  • Some form of power source (Raspberry Pi, Bench Power Supply)
  • Laptop- Required to View the Logic Analyser Signals

The diagram below describes visually how the monitoring system should be set up:

Scanning System Diagram

Once this architecture is implemented, each button on the remote should be pressed one after another, and the waveform captured using the Signal Analyser software of your choice. Once captured, it should be converted into a BitString and kept in a file for future use in Node-RED. You should also capture the short and long delays so that the waveform can be accurately reproduced.

Once all this information is gathered, inside Node-RED, the function blocks will need changed to contain the correct bit sequences.

Setting Up the RF Transmitter Docker Container

The docker container is now built using docker compose as this means all the control is done using docker compose. This allows the simple shell script command to be used

 docker-compose up -d

For more information regarding Docker and how to work with Dockerfiles, please consult the Docker Docs.

Integration with Node Red

In terms of Integrating with Node-RED, you have to make sure the system's IP address running the SocketTransmitter container is put into the Node-RED flow. Otherwise, it will never connect. The project used the same Raspberry Pi for both Node-RED and the SocketTransmitter.