Comments on: ESP8266 Remote Controlled Sockets https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 16 Oct 2024 14:05:50 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Chris https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-972608 Wed, 16 Oct 2024 14:05:50 +0000 http://randomnerdtutorials.com/?p=12260#comment-972608 In reply to Armen.

Hi
Look up arduino esp8266 pin mapping.
There you will see arduino D0 = esp8266 16

]]>
By: Armen https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-972380 Tue, 15 Oct 2024 20:33:28 +0000 http://randomnerdtutorials.com/?p=12260#comment-972380 Hello
Thanks for great share learning.
I want to ask…
Do you know about modify this code for esp8266 – ESP-12F ?

mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin #2

I want use interrupt to read RF433/315Mhz module in loop.
as same as Arduino but I can’t do it by ESP-12F.

Thanks
Armen
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin
}
void loop() {
if (mySwitch.available()) {
output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
mySwitch.resetAvailable();
Serial.print(b);
Serial.println();
}
}

]]>
By: txinga https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-874913 Wed, 29 Nov 2023 20:06:26 +0000 http://randomnerdtutorials.com/?p=12260#comment-874913 In reply to Sven.

Sven,

Take a look at the documentation for different types of data can be used. I changed mine to use myswitch.send(“decimalcode”, 24) as the suggestion from this page:
https://web.archive.org/web/20151007014308/https://code.google.com/p/rc-switch/wiki/HowTo_Send

Quote from that page:
Transmission methods
There are three methods to send raw codes:

Binary string
send(string binaryCode)

Sends the binary string.

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
mySwitch.enableTransmit(10); // Using Pin #10
}

void loop() {
mySwitch.send(“000000000001010100010001”);
delay(1000);
}
Decimal value
send(int decimalCode, int bitLength)

Same as the first one but using the decimal value. The bit length is needed to zero-fill the binary code.

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
mySwitch.enableTransmit(10); // Using Pin #10
}

void loop() {
mySwitch.send(5393, 24);
delay(1000);
}
Tri-state string
sendTriState(string triStateCode)

Tri-state codes are according to the data sheets of some encoding chips. Take a look at this blogpost if you are interested in details.

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
mySwitch.enableTransmit(10); // Using Pin #10
}

void loop() {
mySwitch.sendTriState(“00000FFF0F0F”);
delay(1000);
}

]]>
By: Jorge https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-871854 Mon, 13 Nov 2023 21:05:19 +0000 http://randomnerdtutorials.com/?p=12260#comment-871854 Hello, I always follow your publications, I really like the teaching, always very well explained, with diagrams, etc.
I’m from Brazil and we speak “almost” the same language
When I was in Lisbon I almost had to use the “translator” lol
then
I would like to assemble the receiver using an ESP-01, due to its practicality and possibility of using that board that already has the regulator, relay, terminals, etc.
I will only use it to monitor the 433mhz RF sensors of my alarm and close the relay (of the siren) if there is a violation of any of the sensors
but I didn’t find any instructions on how to use the IRQ on this board.
thanks

]]>
By: Sven https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-827537 Thu, 30 Mar 2023 20:28:00 +0000 http://randomnerdtutorials.com/?p=12260#comment-827537 Hello Rui Santos

Tutorial works fine by me. Have now integrated my RF-Remote in Home-Assistant too.

But i wont add a another RF Remote but i get no Tristate value.
only that

Decimal: 10296496 (24Bit) Binary: 100111010001110010110000 Tri-State: not applicable PulseLength: 104 microseconds Protocol: 3
Raw data: 7398,949,611,435,1128,438,1129,957,616,953,610,943,621,426,1150,936,622,423,1153,415,1142,426,1137,944,621,944,632,937,627,418,1154,410,1152,938,630,414,1132,963,618,943,630,415,1152,415,1167,396,1149,422,1126,

it is possible to add Binary as Value (change Code)? Any Idea?

]]>
By: marcelo https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-792543 Mon, 17 Oct 2022 23:50:23 +0000 http://randomnerdtutorials.com/?p=12260#comment-792543 boa noite ,
estou a procura de um similar a esse porém com controle pwm para dimer,para fins academico…

]]>
By: Peerke https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-785666 Sat, 24 Sep 2022 14:17:44 +0000 http://randomnerdtutorials.com/?p=12260#comment-785666 hi great work around.

for some reason it is not possible to get the tri-state codes, is it also possible to use the binary code in this sketch?

]]>
By: Dann Lima https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-583428 Fri, 02 Apr 2021 19:48:23 +0000 http://randomnerdtutorials.com/?p=12260#comment-583428 In reply to Sara Santos.

Sara,
I also Noticed the tutoril you listed is hardwired to the relays and there is no use of the RF Transmitter.
Thanks again,
Dann

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-583320 Fri, 02 Apr 2021 14:35:23 +0000 http://randomnerdtutorials.com/?p=12260#comment-583320 In reply to Dann Lima.

We have this tutorial that may help: https://randomnerdtutorials.com/alexa-echo-with-esp32-and-esp8266/
Regards,
Sara

]]>
By: Dann Lima https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/#comment-583082 Fri, 02 Apr 2021 00:56:06 +0000 http://randomnerdtutorials.com/?p=12260#comment-583082 Hello Rui and Sara,
Have you had any attempts at adding Fauxmo, or ESPAlexa to make it so that one could control these outlets with Alexa? If so, What would that code look like?

]]>