Tuesday, January 27, 2015

[Wireless Room Temperature Monitoring System] How to test the 433 Mhz RF Module (Receive / Transmitter)

I started to receive some of the parts that i ordered. Unfortunately i didn't receive enough to start the project.

Fortunately what i received already can be tested. I received my 5 pairs of RF 433 Mhz modules (RX / TX), jumper cables and some small breadboard, with the Raspberry Pi i already had ... i can cook :)

The idea here is to be able to test the modules in order to see if all 5 pairs work properly (since they were crazy cheap and sent from China)

The strategy here is to use the Raspberry Pi as the sender and the receiver.

First i had to install WiringPi in order to have the GPIO working properly
Then i had to install 433Utils, a neat little module that is allowing me to receive (sniff) and send data.

For the wiring i use a breadboard to power both RX and TX modules using the 5V pin 2 and the GND pin 6.
Then i use cables to connect the RX/TX modules data pins :

  • Emitter : Pin 11 (GPIO 17) of the Raspberry Pi. Also marked as Pin 0 under WiringPi's naming convention)
  • Receiver : Pin 13 (GPIO 27 Rasp Pi B+). Also marked as Pin 2 under WiringPi's naming convention)

With that simple setup on i can go ahead i can try and send data and see if it is being received.

Now on my computer i connect to my Raspberry Pi using ssh
Code 1 : ssh pi@yourlocalIPaddress  (once prompted, enter your password. Default is "raspberry") 
Then i have to go to the specific folder where the 433Utils programs are stored in order to start them.
Code 2 : cd 433Utils/RPi_utils
This bring you to the correct folder where the sending program and the sniffing program are stored.
Now i open another Terminal window and login via ssh (code 1) and i go to the 433Utils folder (code 2)

In the first terminal window start the Sniffer program.
Code 3 : sudo ./RFSniffer
Now in the second terminal window send a code
Cod 4 : sudo ./codesend 121234 (any random integer)
If everything works fine, you should see your integer going through the Sniffer result window just like in the below screenshot :


I noticed that i couldn't send more than 8 digits for that integer.

This is my first victory with this stuff that i never used before as i am not in electronics at all.

Now i have been trying to mess-up with it and tried to "sniff" different 433Mhz RF Remotes in order maybe to know what was the sent signal and use the Rasp Pi as a replacement remote.

I tried with 2 differents things. 

  • A RF wall plug remote (Brand QUIGG), the user can't really do anything with the remote (no channel selection or anything like) ... whatever i tried ... no signal was picked up.
  • A RF Remote for an automated garage door from my building. Same thing here ... no luck in picking the signal from the remote ...












I read in many place that the only of "reading" the signal from a remote was to use a jack and soundcard in order to "see" the pattern of the signal and reproduce it. Anyone have any idea how this works ?




9 comments:

  1. Great post! Very helpful AND interesting! :)

    ReplyDelete
  2. How to run "sudo ./codesend 121234" through the web PHP

    ReplyDelete
    Replies
    1. Hi Mirtis,

      Not sure i understand your question here.

      Delete
  3. Hey, do you know how to "sniff" more then 8 digits?

    ReplyDelete
    Replies
    1. Hi,

      Actually i am not sure for "remote", this is part of the solution proposed by the RPi Utils solution, so it would be more a question to ask them directly.

      Now, for my own use i actually found another program as described here : http://i-build-stuff.blogspot.ch/2015/03/wireless-room-temperature-monitoring_23.html

      This one would allow you to send longer values with even text !

      Delete
  4. Thanks so much Philippe. You just made my life a lot easier today!

    ReplyDelete
    Replies
    1. You are very welcome :) Glad i could help ! If you have any question don't hesitate !

      Delete

  5. Very informative and useful historical post. I see you have a lot of other cool stuff available at your website, simply bookmarking it to check in spare time. Thanks and keep the good work up.

    Generator Monitoring

    ReplyDelete