Files
journal/Stock Cropper/433MHz.md
Thaddeus Hughes 608c43a71f init
2025-10-09 20:43:40 -05:00

122 lines
4.9 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Sketch:
```
// Arduino script using RCSwitch library to decode EV1527 OOK signals on pin 2
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
  Serial.begin(115200);  // Serial output at 115200 baud for clarity
  while(!Serial);
  mySwitch.enableReceive(0);  // Receiver on interrupt 0 => pin 2
  Serial.println("Ready to receive EV1527 signals...");
}
void loop() {
  if (mySwitch.available()) {
    if (mySwitch.getReceivedBitlength() == 24) {  // Filter for EV1527's 24-bit messages
      unsigned long value = mySwitch.getReceivedValue();
      Serial.print("Received EV1527 packet: ");
      Serial.print(value);  // Decimal value
      Serial.print(" (Hex: ");
      if (value < 0x100000) Serial.print("0");  // Pad for consistent hex output
      Serial.print(value, HEX);
      Serial.print(")");
      Serial.print(" / ");
      Serial.print(mySwitch.getReceivedBitlength());
      Serial.print(" bits / Pulse length: ");
      Serial.print(mySwitch.getReceivedDelay());  // Typical: ~275-350 µs
      Serial.print(" µs / Protocol: ");
      Serial.println(mySwitch.getReceivedProtocol());  // Should be 6 for EV1527
      delay(500);  // Delay to prevent flooding from repeated transmissions
    }
    mySwitch.resetAvailable();
  }
}
```
output:
```
08:53:19.607 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:53:21.379 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 354 µs / Protocol: 1
08:53:24.444 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:53:25.552 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 349 µs / Protocol: 1
08:53:26.427 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 353 µs / Protocol: 1
08:53:27.054 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 353 µs / Protocol: 1
08:53:27.733 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:53:28.490 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 352 µs / Protocol: 1
08:53:30.107 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:53:30.966 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 352 µs / Protocol: 1
08:53:32.402 -> Received EV1527 packet: 6098020 (Hex: 5D0C64) / 24 bits / Pulse length: 352 µs / Protocol: 1
08:53:34.361 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:53:34.915 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 353 µs / Protocol: 1
08:53:35.526 -> Received EV1527 packet: 6098020 (Hex: 5D0C64) / 24 bits / Pulse length: 355 µs / Protocol: 1
08:53:36.400 -> Received EV1527 packet: 6098024 (Hex: 5D0C68) / 24 bits / Pulse length: 352 µs / Protocol: 1
08:53:49.512 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 352 µs / Protocol: 1
08:53:51.189 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 354 µs / Protocol: 1
08:53:52.344 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:53:53.030 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 352 µs / Protocol: 1
08:53:53.549 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 354 µs / Protocol: 1
08:53:54.431 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:53:55.606 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 352 µs / Protocol: 1
08:53:56.782 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 353 µs / Protocol: 1
08:53:57.801 -> Received EV1527 packet: 6098018 (Hex: 5D0C62) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:54:05.964 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 353 µs / Protocol: 1
08:54:06.525 -> Received EV1527 packet: 6098017 (Hex: 5D0C61) / 24 bits / Pulse length: 349 µs / Protocol: 1
08:54:08.224 -> Received EV1527 packet: 6098020 (Hex: 5D0C64) / 24 bits / Pulse length: 350 µs / Protocol: 1
08:54:08.917 -> Received EV1527 packet: 6098020 (Hex: 5D0C64) / 24 bits / Pulse length: 351 µs / Protocol: 1
08:54:09.780 -> Received EV1527 packet: 6098024 (Hex: 5D0C68) / 24 bits / Pulse length: 350 µs / Protocol: 1
08:54:10.516 -> Received EV1527 packet: 6098024 (Hex: 5D0C68) / 24 bits / Pulse length: 351 µs / Protocol: 1
```
Analysis:
- button 1: 5D0C61
- button 2: 5D0C62
- button 3: 5D0C64
- button 4: 5D0C68
https://www.amazon.com/QIACHIP-Wireless-Receiver-Long-Distance-Transmitter/dp/B09P89RF8R:
![[Pasted image 20250926101243.png]]
https://www.adafruit.com/product/1096:
![[1096-05.jpg]]
Gama electronics could be useful