vectraboyv6
Posts: 43
Joined: Fri Aug 17, 2012 11:28 am

433mhz cheap power plugs

Mon Nov 11, 2013 5:52 pm

hi,

i have a pi with a cheap 433mhz transmitter and im trying to get these 433mhz power plugs to remotely switch.

https://github.com/dmcg/raspberry-strogonanoff

i'm following this but just cant get it to run the last command just comes back with no wiringpi module installed even tho there is

is there another way I've been using webiopi with some success for temperature measuring.

thanks stuart

vectraboyv6
Posts: 43
Joined: Fri Aug 17, 2012 11:28 am

Re: 433mhz cheap power plugs

Mon Nov 11, 2013 8:24 pm

now trying to use rcswitch-pi which is installed but dont know how to use it any idears?

Hugh Jarse
Posts: 46
Joined: Mon Mar 05, 2012 5:03 pm

Re: 433mhz cheap power plugs

Tue Nov 12, 2013 7:08 am


kenmc
Posts: 58
Joined: Fri May 04, 2012 8:02 am
Location: Dublin, Ireland
Contact: Website

Re: 433mhz cheap power plugs

Tue Nov 12, 2013 11:07 am

vectraboyv6 wrote:now trying to use rcswitch-pi which is installed but dont know how to use it any idears?
I'm using RCSwitch successfully on arduino if that helps. Using Energenie power plugs. Have also got a set of Silvercrest ones from Lidl, but have not tried to capture or tx the code yet.
http://goatstownweather.eu.pn

Ant232
Posts: 115
Joined: Thu Jul 12, 2012 9:34 pm

Re: 433mhz cheap power plugs

Tue Nov 12, 2013 10:57 pm

I did a similar thing but I used GPIOs to switch the remote that came with the plugs. Not as efficient as using the transmitter though as you need more GPIO pins to get in working. All working using Webiopi. I have attached a pic of the board I built for it. It has 8 opto inputs and outputs so I'm using it to control the heating in the house too.

Image

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 433mhz cheap power plugs

Tue Nov 19, 2013 8:52 am

vectraboyv6 wrote:hi,

i have a pi with a cheap 433mhz transmitter and im trying to get these 433mhz power plugs to remotely switch.

https://github.com/dmcg/raspberry-strogonanoff

i'm following this but just cant get it to run the last command just comes back with no wiringpi module installed even tho there is

is there another way I've been using webiopi with some success for temperature measuring.

thanks stuart
For installing wiringpi for python, I use PIP. Note that those instructions are a bit dated now as wiringpi is now a version two. To install try this :

Code: Select all

sudo apt-get install -y python-pip git-core python-dev
sudo pip install wiringpi2
but you'll need to alter the code to use wiringpi2 instead of wiringpi - maybe alter the WiringPin.py program to

Code: Select all

import wiringpi2 as wiringpi
You could also try

Code: Select all

sudo apt-get install -y python-pip git-core python-dev
sudo pip install wiringpi
and it may just work.

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

txt3rob
Posts: 365
Joined: Sat Aug 11, 2012 3:45 pm
Contact: Website

Re: 433mhz cheap power plugs

Thu Nov 21, 2013 1:28 pm

try my project pre made with links to devices
http://www.guthub.com/txt3rob/RPI-Control/
The Raspberry Pi Hell Guy - Random Ramblings to assist me and others.
http://raspberrypihell.blogspot.com
My Github - http:/www.github.com/random-robbie/
http://www.smspi.co.uk - send free uk sms via your raspberry pi from here

thienson30
Posts: 26
Joined: Mon Jul 08, 2013 7:53 am

Re: 433mhz cheap power plugs

Fri Nov 22, 2013 11:08 pm

Attachments
logo raspi-speech2txt with rc antenna.jpg
logo raspi-speech2txt with rc antenna.jpg (46.81 KiB) Viewed 7769 times

pyrotuc
Posts: 10
Joined: Sat Dec 14, 2013 10:15 pm
Location: texas
Contact: Website AOL

Re: 433mhz cheap power plugs

Sun Jan 05, 2014 7:25 pm

the problem may be with wiring up your transmitter. the 433mhz modules that are all over ebay pinout as such: :

/
/
/
/
/
/
/
_____________/ ____________________________________
| ___ O | | _ =------= |
| (_~_) cccc | | { } o /-\ =|____|= |
| | | {_} \-/ ___ |
|___*_*_*___: : :| | O_________________*__*__*__*_______|
| | | / | | | |
| | | / | | | |
1 2 3 / 1 2--3 4
D 5 G / 5 D G
A V R / V A R
T O O / O T O
A L U / L A U
T N / T N
S D S D

transmitter receiver

that should clear things up. on the receiver, the two middle pins are data, and they are joined. use both or use one, shouldnt matter. its too bad they dont have matching or mating pinouts, i guess that would just be too easy

antennas should be quarter wave (E/Hz=M)*(1/4) yields ~0.173
so this gives us about 17.3 cm or about 6.8 inches

antenna material is not super stringent. piece of magnet wire, piece of wirewrap wire, thin is better than thick, to a point.for whatever reason (poor groundplane? cheap chip?) using shorter or longer can yield much better results instead of what should be formulaically perfect.
/*
Kris Tucker
http://pyrotuc.com
http://pirhotech.com
alias webExposedEmail='rpiforum@pyrotuc.com'
sudo echo "1" > /sys/class/awesome
*/

pyrotuc
Posts: 10
Joined: Sat Dec 14, 2013 10:15 pm
Location: texas
Contact: Website AOL

Re: 433mhz cheap power plugs

Sun Jan 05, 2014 7:26 pm

AAAARRRGGGHHHH i spent freaking forever on that ascii art and its RUINED. *pout*

user your imagination
/*
Kris Tucker
http://pyrotuc.com
http://pirhotech.com
alias webExposedEmail='rpiforum@pyrotuc.com'
sudo echo "1" > /sys/class/awesome
*/

User avatar
DougieLawson
Posts: 36105
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: 433mhz cheap power plugs

Sun Jan 05, 2014 8:48 pm

pyrotuc wrote:AAAARRRGGGHHHH i spent freaking forever on that ascii art and its RUINED. *pout*

user your imagination
Try putting it in [code][/code] tags.

Code: Select all



                                        /
                                      /
                                    /
                                  /
                                /
                              /
                            /
_____________/                                                                  ____________________________________
|     ___           O |                                                                  |          _                                       =------=    |
|    (_~_)   cccc |                                                                  |         {  }      o /-\                         =|____|=   |
|                          |                                                                  |         {_}         \-/                  ___                   |
|___*_*_*___: : :|                                                                   | O_________________*__*__*__*_______|
       |   |   |                                                                              /                                      |     |     |     |
       |   |   |                                                                            /                                        |     |     |     |
      1  2  3                                                                         /                                          1    2--3    4
   D    5       G                                                                  /                                         5          D          G
   A    V       R                                                                /                                            V         A           R
   T    O       O                                                             /                                              O          T          O
   A     L       U                                                          /                                                 L          A          U
          T        N                                                       /                                                   T                       N
          S        D                                                                                                           S                       D                   

   transmitter                                                                                                                   receiver
less scrambled that way, but this forum isn't the place for ASCIIart.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

pyrotuc
Posts: 10
Joined: Sat Dec 14, 2013 10:15 pm
Location: texas
Contact: Website AOL

Re: 433mhz cheap power plugs

Sun Jan 05, 2014 9:43 pm

Screen shot 2014-01-05 at 3.42.13 PM.png
Screen shot 2014-01-05 at 3.42.13 PM.png (28.12 KiB) Viewed 6951 times
/*
Kris Tucker
http://pyrotuc.com
http://pirhotech.com
alias webExposedEmail='rpiforum@pyrotuc.com'
sudo echo "1" > /sys/class/awesome
*/

pyrotuc
Posts: 10
Joined: Sat Dec 14, 2013 10:15 pm
Location: texas
Contact: Website AOL

Re: 433mhz cheap power plugs

Sun Jan 05, 2014 9:48 pm

it would be nice if the font that is used for the text in this compose box was the same as the font that the posted message would use. in fact, why in the world is it different? makes no sense

looks like yall dont have a font bbcode enabled, is that correct? im rarely on forums, not nearly enough to have noticed these gestalts
/*
Kris Tucker
http://pyrotuc.com
http://pirhotech.com
alias webExposedEmail='rpiforum@pyrotuc.com'
sudo echo "1" > /sys/class/awesome
*/

txt3rob
Posts: 365
Joined: Sat Aug 11, 2012 3:45 pm
Contact: Website

Re: 433mhz cheap power plugs

Mon Jan 06, 2014 9:11 am

i have a project that might be suitable
http://www.github.com/txt3rob/RPI-Control/

it uses the cheapo status remotes
The Raspberry Pi Hell Guy - Random Ramblings to assist me and others.
http://raspberrypihell.blogspot.com
My Github - http:/www.github.com/random-robbie/
http://www.smspi.co.uk - send free uk sms via your raspberry pi from here

FallChallenge
Posts: 18
Joined: Wed Feb 01, 2012 2:28 pm
Contact: Website

Re: 433mhz cheap power plugs

Sun Feb 07, 2016 6:43 pm

I'd like to advice also my open source project ;)

Take a look: https://github.com/roccomuso/iot-433mhz

Return to “Automation, sensing and robotics”