Bangert 30 1619GJ Andijk
Bangert 30 1619GJ Andijk > Raspberry Pi 433Mhz

Raspberry Pi 433Mhz

433mhz send recieve and cheap action.com remote wall sockets
Try to make computer raspberry pi controlled wall sockets Domoticz
Sniff the code from the remote and later send it by raspberry pi gpio controlled by Domoticz
ITS AMAZING!!! Grandioso!!!
This makes a 3 wireless computer controlled wallsockets for less then 10 dollar clickon clickoff klikaan klikuit

Action older impuls set advert

Action now has Flamingo 3 socket set 9.95 Euro
         Flamingo not working with RPi utils rfsniffer 
         The flamingo has to be learned, noth snif
              see solution at end of this page
              i got the flamingos working with that description

Lidl has a 4 socket set for 14.99 euro
       Lidl SilverCrest sockets not tested, your on your own
       Out off Money

Gamma Handson 3 socket set 25.90=>12.95 Wat een BullShit, Hoe maak je je als winkel OnGeloofWaardig
        Not tested, your on your own



Sender size 1cm x 1cm         Reciever size 1cm x 2cm

Bought a 433mhz sender reciever kit for something like a dollar alibaba / aliexpress
spend hours on it, 
looks like the reciever doesnt like to be in the neighbourhood of the pi = loads off noise
Reciever DATA conected to pin13 GPIO27 that makes wiringpi 2
if u use 5v for reciever power, i think data possible not 3.3v safe for raspberry input
so 3.3v reciever power would be safe

Connected:   DATA line => 560 Ohm Resistor => LED ->|-  => Ground, 0vdc
Looks like a lot of noise, the LED is blinking like CRAZY
Useless piece of junk, electronics near the raspberry pi, 
BUT if I SEE the battery powered arduino guys they have better luck with these cheap send/recieve components
I have to put the action impuls remote on 1cm from the reciever to snif the code = useless piece off ....

For the 433 MHz band the wavelength is lightspeed 299.792.458 / 433.000.000 = 69,24 cm. 
Half of this is 34,62 cm and a quarter is 17,31 cm.

a quarter wave antenna should be optimal for recieving / sending 
a 173mm x 0.8mm solid copper wire antenna is also not helping much




Powered the 433mhz reciever by a 9volt battery and 7805 voltage regulator      
7805 pinout pins down text facing to you = 9vdc in / ground / 5vdc out
and moved reciever away from the pi
Now the data line LED is better its almost off
LED is only on when something is transmitting (got some 433mhz thermometers sending for later fridge/freezer temp logger  project)
used 2 meters of wire to get the data to the pi
Now the code sniffing goes better
Hmmm
LED also blinks on my car keys, hmmm i wonder record/play copy paste, could not be that easy to enter a car
Maybe better to open/close the car with key and not with remote

Maybe an optoisolator / optocoupler between reciever dataline to the pi is even better to have less recieving noise

Reciever DATA conected to pin13 GPIO27 that makes wiringpi 2
if u use 5v for reciever power, i think data possible not 3.3v safe for raspberry input
so 3.3v reciever power would be safe


i have some old www.action.nl 433mhz impuls remote wall sockets

with rfsniffer i found the sended / transmitted code

now i can send the sniffed on / off code  to control the remote wall sockets
and do it computer controlled from Domoticz

MyPi
433Mhz sender / transmitter connected to the raspberry pi 3b not+
White = ATAD DATA is connected to pin11 gpio17 what makes wiringpi 0
Orange = +5vdc
Black = Ground 0vdc
transmitting range will improve when use +12vdc but is not availeble on the pi
433Mhz sender / transmitter connected to the raspberry pi 3b not+


RPiUtils codesniffer and codesend

Another dutch helpfull shoarma page



My 433mhz sender / transmitter data is connected to pin11 gpio17 what makes wiringpi 0
red 5v and  bleu ground you have more of them
why did they make such a **** big mess of the numbering 

My 433mhz sender / transmitter data is connected to pin11 gpio17 what makes wiringpi 0
red 5v and  bleu ground you have more of them
why did they make such a **** big mess of the numbering 

in terminal command:
gpio readall
gives you pinout names and state



in terminal command:
gpio readall
gives you pinout names and state














domoticz send 10 times the A channel on  and off code
sends it more times wich is better (on the normal remote the code is also send multiple times)
scripts for on and off
script:///home/pi/433Utils/RPi_utils/verzenden.sh 16762196 10
script:///home/pi/433Utils/RPi_utils/verzenden.sh 16762193 10

a shoarma script ;-)
contents of the file verzenden.sh (a terminal script)                ussage                verzenden.sh codetosend numberoftimestosend
#!/bin/bash
for (( i=1; i < $2; i++ ))
do
sudo //home/pi/433Utils/RPi_utils/codesend $1
done


domoticz
timer button colors purple when there are timers present




the edit button screen
here is the on and off action set
call the file verzenden.sh




timer button screen
timed events domotics triggers 433mhz remote on times
so 
      light on fom sunset to 23:00
and 
      light on from 5:30 to sunrise                           => Possible PitFall if sun rises before 5:30 = OFF before ON stays ON



inside the action impuls remote is an ic LP801B
Description of IC LP801B
LP802B, LP801B is used in conjunction with a remote decoding dedicated ASIC. 
Manufactured in CMOS technology, 
up to 12-bit triple-state address pins provide up to 531441 (or 312) address codes, 
thereby greatly reducing code collisions and the possibility of illegally scanning the codes for matching.

The last sentence part, i do not get ;-)
                                     thereby greatly reducing the possibility of illegally scanning the codes for matching.

Features:
1. LP801B and LP802B are used to match the remote control code IC
2. Applicable to RF (radio frequency) and IR (infrared) two kinds of modulation
3. Up to 6-bit data pins or 12-bit tri-state address pins, providing a total of 531441 (312) address codes
4. Latch type (L) and transient type (M) output

Applications:
1. Car safety system, garage control
2. Digital remote control doorbell, remote control toys, remote control fan
3. Industrial control and home security, automatic control and other fields






Sniffed codes from action.nl impuls remote
All 5 dipswitches system code  to ON

            ON                OFF
A   16762196     16762193

B   16765268     16765265

C   16766036     16766033

D   16766228     16766225

E   16766276     16766273

later i discovered this sniffing codes whas not needed
raspKaku action adress letter on/off 
does the trick for impuls wall sockets
details further on this page






ok some more action wireless stuf


Action polyphonic wireless doorbel 230Vac plug in 36 melodieen 5.95 euro
code sniffed
          Received 681396

/home/pi/433Utils/RPi_utils/verzenden.sh 681396 10
          and the doorbel is playing

i wonder will all action doorbels have the same code
          buy a verry strong transmitter and send the doorbell code at 3 at night
whats your age mr diekman?
    sorry, dont act like my age

no, the doorbell is only the first minute open for doorbuttons connection 
so each bellpresser has its own adress
you can connect something like 5 button pres senders to 1 bell

thats why i thought the thing whas not working first time
i plugged in the doorbell 
and the after some minutes when i finnaly had the presser opened en finaly got the buttonbattery in 
the thing whas not working
sure the sender whas not connected to the bell, connecting timed out

in Domoticz
          script:///home/pi/433Utils/RPi_utils/verzenden.sh 681396 10

doorbell presbutton how piscope monitors data pin from reciever = recieved signal
i think rfsniffer makes 681396 out off above image ?
i do not see it yet, whats 1 and whats 0 ?
if you know the answer 


     sudo pigpiod -s 2 -b 200 -f
     piscope


PiScope would be nice if you can play this recieved data on another pin to transmitter
should be possible to record and play with python

Modulation, bit decoding and interpreting the payload




Some text about action 433mhz flamingo remote wall sockets
Flamingo does not work with RPi_Utils rfsniffer
But possible solution
******************************************************************************
******************************************************************************

Door  Tweakers user tryingtohack, vrijdag 21 september 2018 21:56

Ik heb de Action/Flamingo SF-501P set werkend met wiringPi.

Zie hier meer info over deze schakelaar: 
Action Flamigo Slimme schakelaar

Gebruikt het nieuwe kaku protocol. 
Om dit te kunnen "spreken" heb je ook raspKaku nodig naast de wiringPi library:

https://github.com/chaanstra/raspKaku

Download deze op je pi. Een van de laatste regel in newkaku.cpp is:

NewRemoteTransmitter transmitter(address, 15, 260, 3);

parameter 15: hardcoded 433MHz data pin voor wiringPi
parameter: 260, pulse lengte
parameter 3: aantal keer signaal herhaald wordt 

Verander deze parameters voor compileren indien nodig. 

Compileer executable met het commando:
g++ -o newkaku newkaku.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi

Nu kan je met commando 
./newkaku 
de Action SF-501P inleren en schakelen.

***********************************************************************************************
***********************************************************************************************




OK MyTry went to the ACTION and bought again too much shit 
       including flamingo SF-501P 
              Home wizard compatible
              Wow, home wizzard 180,- euros, No Action prices
https://www.homewizard.nl/shop           Thats NO Place for Me to Be
 Not  prices for me, way to expensive for me
And there is NO FUN in it for me to buy these ready to use products, not braindead yet

Action flamingo 433mhz remote wall sockets Domoticz for the dutch cheap
Going DUTCH!
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
i Diekman make a Guess 

the wiringpi is allready installed so dont have to do that again

from /home/pi/
     git clone --recursive git://github.com/chaanstra/raspKaku.git

     cd raspKaku
so we have /home/pi/raspKaku/
     g++ -o newkaku newkaku.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi
./newkaku 

Well i had to change the code
To match the RPiUtils rfsniffer codesend send adres, so that i can use the same 433mhz transmitter
textedit the file
newkaku.cpp
                int pin_out = 0; // Pin out using wiringPi pin numbering scheme 
                int device = 0;
                NewRemoteTransmitter transmitter(address, 0, 260, 3);    //changing the 3 looks like stops working/sending

and compile it again
    g++ -o newkaku newkaku.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi

Plug in the wall socket, LED blinks you have to learn it (program the wall socket with an adres)
            be quick, learn it while blinks 
./newkaku A 1 on

now you can control the Action 433mhz remote flamingo wall socket
./newkaku A 1 on
./newkaku A 1 off

in Domoticz
script:///home/pi/raspKaku/newkaku A 1 on
script:///home/pi/raspKaku/newkaku A 1 off

if transmission is to short we can allways make a shoarma like script ;-)
     maybe like this 
     ussage  flamingo.sh Letter adress onoroff numberoftimestosend
     flamingo.sh A 1 on 10                     send a 1 on 10 times        
create a file flamingo.sh with next content in directory  raspKaku                 
#!/bin/bash
for (( i=0; i < $4; i++ ))
do
sudo //home/pi/raspKaku/newkaku $1 $2 $3
done



pi@raspberrypi:~/raspKaku $ ./flamingo.sh A 1 on 10
bash: ./flamingo.sh: Permission denied
change permisions anyone can do anything

pi@raspberrypi:~/raspKaku $ ./flamingo.sh A 1 on 10
adress1A test 
address= 0 device= 1
adress1A test 
address= 0 device= 1
adress1A test 
address= 0 device= 1
adress1A test 
address= 0 device= 1
adress1A test 
address= 0 device= 1
adress1A test 
address= 0 device= 1
adress1A test 
address= 0 device= 1
adress1A test 
address= 0 device= 1
adress1A test 
address= 0 device= 1

ok that works

in Domoticz
    script:///home/pi/raspKaku/flamingo.sh A 1 on 10
    script:///home/pi/raspKaku/flamingo.sh A 1 off 10



Well Problem mostly solved

but do not understand it completely yet
if i learn a1 with computer i can conrol it with the hand remote a
if i learn a1 with hand remote i can not control it with computer

if i program one with A 2 i can control it with  the computer but not with the hand remote also not with master on/off

if computer switch b1 off a1 also off

i do not get it yet
           ik snap er helemaal geen zak meer van
           die handleiding is niet gemaakt voor het geklooi van dijkman


im not sure if the character A-Z does something
      looks like 1-10 does it
      if i programmed Z99, F99 also seems to work



Each wall socket can be programmed with 5 remote adresses
         so a wall socket can have de adres A from manual remote
 but can also have adress Z 99 from computer remote
    so would be handy to give a wall socket a computer adres an a manual remote adres
        then you can always override with manual remote

To program an adres into a wall socket
powerup led blinks  Send newkaku K 33 on
         now K 33 is programmed into the wall socket
         and you can control it with 
         newkaku K 33 on
         newkaku K 33 off

To clear an adres form the wall socket
         for example Z 99
you have to send newkaku Z 99 off
        take the wall socket out powerdown for 5 seconds
        powerup led blinks and send  newkaku Z 99 off
        now Z 99  is cleared from wall socket

Is there a master clear??? 
      if i dont remember what was programmed in the wall sockets???
      i do not know

what happens if you have 5 adresses programmed into a wall socket
      and you program a 6 adress
      no answer yet

im not sure if the character A-Z does something
      looks like 1-10 does it
      if i programmed Z99, F99 also seems to work


Action die impuls was simpeler, maar deze is ook wel leuk

Made some money again for Action, 
            hot selling product now ;-)

Wat kan je een hoop lol hebben voor een tientje
Hele avond zoet
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++















vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
raspkaku action for  impuls 


another thing
in the raspkaku directory
there is a file action.cpp
curious whatsthat?

edited the action.cpp to match my transmitter data pin 11 gpio 17 wich is wiringpi 0
      int pin_out = 0; // Pin out using wiringPi pin numbering scheme 
compiled it
     g++ -o action action.cpp -I/usr/local/include -L/usr/local/lib -lwiringPi

action its not for action flamingo wall sockets

but its for action impuls wall sockets
./action 1 B on
./action 1 B off
hmmm, doing nothing
inside impuls wall socket a dipswitch
1to5=systemcode 6to10=ABCDE so B on this picture
wild guess
i have all 5 system code dipswitches to ON in the remote and in the wall socket
binary 1+2+4+8+16 = 31

./action 31 B on
./action 31 B off

Cool this is working for the old action impuls 
no sniffing needed

if transmission is to short we can allways make a shoarma like script like verzenden.sh but has to be modified then
think its better to send longer 
if a thermometer is sending its blocking the wall socket sending
and thus possible not switching

     maybe like this 
     ussage:  
                    impuls.sh adress letter onoroff numberoftimestosend
     impuls.sh 31 A on 10                     send 31 A on 10 times        
create a file impuls.sh with next content in directory  raspKaku                 
#!/bin/bash
for (( i=0; i < $4; i++ ))
do
sudo //home/pi/raspKaku/action $1 $2 $3
done

pi@raspberrypi:~/raspKaku $ ./impuls.sh 31 B on 10
bash: ./impuls.sh: Permission denied         

change impuls.sh file permisions to anyone can do anything

pi@raspberrypi:~/raspKaku $ ./impuls.sh 31 B on 10
ok working

in Domoticz
    script:///home/pi/raspKaku/impuls.sh 31 B on 10
    script:///home/pi/raspKaku/impuls.sh 31 B off 10



raspkaku action for  impuls 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^








Website van Randy Simons.


Another Dutch WeeJeWel


Arduino Home Automation with self-learning 433 power switches (action flamingo)



in terminal command:
gpio readall
gives you pinout names and state

in terminal
         bash -c 'while [ 0 ]; do clear;gpio readall;sleep .25;done'
loops the gpio read all screen every .25 seconds 
until you press ctrl+c
find it nice for monitoring i/o


read something somewhere
       De action-apparaatjes zijn HT12D/E gebaseerd en dat betekent dat 1 ontvanger eigenlijk 4 apparaten kan schakelen 
       en heeft ook nog een VT-uitgang, 
       deze is kort actief na een juist ontvangen code (Valid transmission) 
hmmm does the flamingo wall socket sends a valid code?




Ordered a long range 433Mhz transmitter alibaba / aliexpress 
Much more power as this 10mw sender/transmitter 
Then i can control everything in the neighborhood ;-) for 2 dollar

Do you want to have a look in My Pi
My RaspBerry Pi Domoticz home control


Mistake i make many times
     i test things on my desktop Raspberry Pi 3b+
     edit Domoticz via browser
     and forget to put the files on the Domoticz Raspberry Pi 3b
and thus things are not working

RaspBerry, Cant Wait for an Octal Core 2.4Ghz version off the RaspBerry!, Hurry Up?
    For replacement of my Desktop Pi
And Facebook make a light version for the Pi

Donations would be greatly appreciated, my electronics smoke is getting expensive 
     And my lifelong desire to open things to reveal / see the inner workings is still alive but so Fckng expensive  
         Well you know my addres
             Every day is a surpise, what my mailbox holds   ;-)
                  Surprise me?

Dutch is my Mothers Language
Praat Nederlands met me


Comments or GuestBook?



De hele dag met zijn cut achter de computer , Dan zou je denken dat je er toch weleens achter komt dat je meer als 2 wijsvingers hebt en dat als je die gebruikt dat het dan veel sneller gaat
Got your ip


Big thanks to BingBot, GoogleBot, YandexBot for being the best visitors to my sites ;-)

GuestBook