433 Mhz / FS1000A libary fo micropython?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
FreakErn
Posts: 2
Joined: Tue Nov 01, 2016 2:50 pm

433 Mhz / FS1000A libary fo micropython?

Post by FreakErn » Tue Nov 01, 2016 3:43 pm

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

Lysenko
Posts: 62
Joined: Wed Aug 17, 2016 1:21 pm

Re: 433 Mhz / FS1000A libary fo micropython?

Post by Lysenko » Wed Nov 02, 2016 8:38 am

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
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).

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: 433 Mhz / FS1000A libary fo micropython?

Post by pythoncoder » Wed Nov 02, 2016 9:19 am

433MHz devices don't even use the same modulation method: some are AM and some FM.
Peter Hinch
Index to my micropython libraries.

User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Re: 433 Mhz / FS1000A libary fo micropython?

Post by bmarkus » Thu Nov 03, 2016 8:44 am

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/
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)

FreakErn
Posts: 2
Joined: Tue Nov 01, 2016 2:50 pm

Re: 433 Mhz / FS1000A libary fo micropython?

Post by FreakErn » Thu Nov 03, 2016 10:04 am

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...

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: 433 Mhz / FS1000A libary fo micropython?

Post by mcauser » Tue Nov 08, 2016 9:35 am

$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.

Post Reply