Hey guys
i'm trying to connect my esp8266-01 with a FS1000A to a electrical socket like this:
http://www.conrad.com/ce/en/product/526 ... m?ref=list
I already tried this library:
https://github.com/wuub/micropython-rfsocket
sending specific codes but it didn't work at all.
I also tried it like this:
import machine
from rfsocket import RFSocket
pin = machine.Pin(2, machine.Pin.OUT)
r = RFSocket(pin)
i = 0
while i < 10000:
i = i + 1
print(i)
print(int(bin(i)[2:]))
r._send(int(bin(i)[2:]))
but even after an hour of waiting nothing happend. So i guess the way it sends the information does not work correctly for my switchable power socket.
Is there a way to turn on/off those power sockets in micropython with a FS1000A?
Thanks in advance
433 Mhz / FS1000A libary fo micropython?
Re: 433 Mhz / FS1000A libary fo micropython?
There are no real protocol standards for these 433 devices and many of them aren't even documented so you need to sniff the RF from the supplied remote and reverse engineer it. The various "domotica" OS projects do this all the time. If I wanted to control such a device I would root around in a few domotica repositories for "Conrad RSL" and then translate the code (which is likely to be Arduino or Java, but some of the Pi oriented stuff might be Python).FreakErn wrote:Hey guys
i'm trying to connect my esp8266-01 with a FS1000A to a electrical socket like this:
http://www.conrad.com/ce/en/product/526 ... m?ref=list
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: 433 Mhz / FS1000A libary fo micropython?
433MHz devices don't even use the same modulation method: some are AM and some FM.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: 433 Mhz / FS1000A libary fo micropython?
Grab a cheap DVB-T USB dongle and an SDR (Software Defined Radio) like http://airspy.com/ and check modulation scheme first. BTW, with this setup you can listen FM radio, airband, police, etc. which is a fun
A good starting point is http://www.rtl-sdr.com/
A good starting point is http://www.rtl-sdr.com/
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)
HAM radio call: HA5DI (Béla)
Re: 433 Mhz / FS1000A libary fo micropython?
Thank you for the replies!
I already though something like that... I tried this with an raspberry pi and it worked perfect, so maybe i can reverseengineer the code from there...
I already though something like that... I tried this with an raspberry pi and it worked perfect, so maybe i can reverseengineer the code from there...
Re: 433 Mhz / FS1000A libary fo micropython?
$7 USD for a RTL2832U+R820T2 based TV tuner which supports SDR.
https://www.aliexpress.com/item/USB-2-0 ... 80464.html
Compared to $99 USD for the airspy mini. The higher price reflects the build quality, software and support.
There are 2 Realtek RTL2832U based tuners, each with different coprocessors. Elonics E4000 and Raphael Micro R820T.
The R820T is more commonly available and the E4000 with its higher frequency range is older and harder to find.
Lots of useful information here: http://superkuh.com/rtlsdr.html and on youtube. Search for "RTL-SDR"
I purchased the tuner above so I can sniff my ceiling fans 433 remote and emulate the signal from my esp8266 + FS1000A + XY-MK-5V
Waiting on the slow boat from China.
https://www.aliexpress.com/item/USB-2-0 ... 80464.html
Compared to $99 USD for the airspy mini. The higher price reflects the build quality, software and support.
There are 2 Realtek RTL2832U based tuners, each with different coprocessors. Elonics E4000 and Raphael Micro R820T.
The R820T is more commonly available and the E4000 with its higher frequency range is older and harder to find.
Lots of useful information here: http://superkuh.com/rtlsdr.html and on youtube. Search for "RTL-SDR"
I purchased the tuner above so I can sniff my ceiling fans 433 remote and emulate the signal from my esp8266 + FS1000A + XY-MK-5V
Waiting on the slow boat from China.