B4R Library rRCSwitch library

janderkan

Active Member
Licensed User
433-chip.jpg

This is a wrapper for RCSwitch library.
https://github.com/sui77/rc-switch
Receive from or operate 433/315 MHz remote radio controlled devices.
Tested with Uno, Mega and Wemos D1.

Installation steps:
Go to Arduino
Select Sketch/Include Library/Manage Libraries
In Library manager, search for and install 'rc-switch'

Copy the rRCSwitch files to your B4R AddLibraries folder.

Now you are ready to create a 433MHz to MQTT 2way gateway,
a simple project that turns on the light when someone rings your doorbell or
your own alarm system.

Tested with several of these devices:
433-pir.jpg

433-dw.jpg

433-socket.jpg

433-remote.jpg

433-doorbell.jpg
 

Attachments

petr4ppc

Active Member
Licensed User
Dear friends,

ESP32 have this situation:
Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed)
Core 1 register dump:
PC : 0x400d7324 PS : 0x00060034 A0 : 0x400817f8 A1 : 0x3ffbe950
A2 : 0x0000001b A3 : 0x3ffc7884 A4 : 0x00000000 A5 : 0x08000000
A6 : 0x00000000 A7 : 0xffffffff A8 : 0x80080ff4 A9 : 0x00000001
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x800980e5 A13 : 0x3ffcfc90
A14 : 0x00000000 A15 : 0x3ffcfccc SAR : 0x0000001e EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x40001609 LEND : 0x4000160d LCOUNT : 0x00000000
Core 1 was running in ISR context:
EPC1 : 0x4009827c EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x400d7324
Backtrace: 0x400d7324:0x3ffbe950 0x400817f5:0x3ffbe970 0x40098279:0x3ffcfcf0 0x40098a75:0x3ffcfd10 0x400827f0:0x3ffcfd30 0x401551f1:0x3ffcfda0 0x40153c71:0x3ffcfdc0 0x401540bf:0x3ffcfde0 0x4015288d:0x3ffcfe50 0x40153397:0x3ffcfea0 0x40151e41:0x3ffcff00 0x401523bd:0x3ffcff40 0x400d751d:0x3ffcff60 0x400d44b8:0x3ffcff90 0x400d4511:0x3ffcffb0 0x400d37f3:0x3ffcffd0 0x400d1b8e:0x3ffd0010 0x400d2849:0x3ffd0030 0x400d4afa:0x3ffd0050 0x400d867d:0x3ffd0070 0x4008dea1:0x3ffd0090
I found this advices(from discussion to This is a wrapper for RCSwitch library):
https://github.com/sui77/rc-switch/issues/261
here is described that:
Hi, thanks for you reply. I just found out, that i do not have any problems when i use the Arduino IDE instead of using PlatformIO.
Please, it is possible to solve this situation for ESP32 with B4R?

Best regards
p4ppc
 
Last edited:

candide

Member
Licensed User
i would like to test this library, but i don't know how to connect transmitter and receiver ?

on reception side i found : rcs.enableReceive("rcs_Available", rcs.WEMOS_Receivepin_3) => is it GPO3?
on transmission side i found : rcs.EnableTransmit(35) => what is 35?

transmitter and receiver are working in 5V : can we connect directly on ESP ?

thanks for your help
 
Top