Hi there,
Sorry for my english,
I'm almost sure that this is not the best place to post this, but i can't find a better place right now.
A few days ago, I found an old FADINI ATRO 43 SAZ Dipswitch. It is a 4 relays channel receiver, fixed code. And I wanted to use it in a little automation project.
I tried to find online a compatible remote. It seems to be really old and the only things i found were copy remote, in order to copy a remote i don't have. But as said on the remote manual its modulation is ASK AM.
So i tried to use a cheap 433mhz emitter
https://filafill.com/4214-thickbox_default/radio-emitter-and-receiver-433-mhz.jpg
To communicate with this receiver :
The Dipswitchs are 1110001110 (for test purpose)
I took those 10 bits, and added 2 bits after, expecting that these 2 ultimate bits would be for the channel, 4 codes transmitted, from 300 ms to 500ms, on the 12 protocols, with no results.
Of course i tried to dig online for some technical informations but found nothing.
Maybe the sequence as a head ? maybe it is 20 bits ? "maybe" because i'm completely blind there
So i made a really simple program in order to "brute force" the receiver.
The dictionnary on the SD (aDec20) is a file of decimal translation of every binary possible of the type xxxxxxxx1110001110xx , where x is a 0 or a 1 of course.
#include <SPI.h>
#include <SD.h>
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
File myFile;
char incoming ;
String txt ="";
int compteur = 0;
void setup() {
Serial.begin(9600);
mySwitch.enableTransmit(9);
mySwitch.setProtocol(1);
mySwitch.setRepeatTransmit(10);
mySwitch.setPulseLength(300);
Serial.print("Initializing SD card...");
if (!SD.begin(2)) {
Serial.println("initialization failed!");
while (1);
}
Serial.println("initialization done.");
// open the file. note that only one file can be open at a time,
// so you have to close this one before opening another.
// if the file opened okay, write to it:
myFile = SD.open("aDec20");
if (myFile) {
Serial.println("aDec20");
while(myFile.available()){
incoming = myFile.read();
if(incoming !='\n'){
txt = txt + incoming;
} else {
;
// Serial.println(a);
compteur++;
mySwitch.send(txt.toInt(),20);
txt = "";
delay(20);
}
}
Serial.println("DONE");
} else {
// if the file didn't open, print an error:
Serial.println("error opening aDec20");
}
}
void loop() {
}
But even with this, tried with 12 protocols, and different timings, i wasn't able to get any relay switching.
Is there somebody who knows what i can try to make these relays able to clic clic clic ?
Thanks !