Adminhs пишет:
Да добавить было его не проблема, если есть рабочий пример кода.
Остается только проверить работает ли оно..
Жду отчетов о тестах

The problem is in my transmitter, I think even adjust the timing so as in this example where it is not set in this way I think of such a setup with Arduino I get better results.
void Livolo::sendPulse(byte txPulse) {
switch(txPulse) { // transmit pulse
case 1: // Start
digitalWrite(txPin, HIGH);
delayMicroseconds(550);
//digitalWrite(txPin, LOW);
break;
case 2: // "High Zero"
digitalWrite(txPin, LOW);
delayMicroseconds(110);
digitalWrite(txPin, HIGH);
break;
case 3: // "High One"
digitalWrite(txPin, LOW);
delayMicroseconds(303);
digitalWrite(txPin, HIGH);
break;
case 4: // "Low Zero"
digitalWrite(txPin, HIGH);
delayMicroseconds(110);
digitalWrite(txPin, LOW);
break;
case 5: // "Low One"
digitalWrite(txPin, HIGH);
delayMicroseconds(290);
digitalWrite(txPin, LOW);
break;
}
}
You have already modified the timing as I wrote in this post ? because today I tried to download the firmware again but nothing changed switch reacts still pretty bad.