Git Product home page Git Product logo

Comments (3)

sui77 avatar sui77 commented on July 28, 2024

Sounds cool. From my experience it was tricky to detect unknown signal patterns as there is a lot of noise and hard to tell where a signal starts/ends plus arduino has pretty less memory to analyse long samples.

from rc-switch.

achamely avatar achamely commented on July 28, 2024

FWIW the example ReceiveDemo_simple is what i used to debug/clone one of my transmitters.
The only piece missing was the pulse length. I had to add
Serial.print("Delay: "); Serial.println( mySwitch.getReceivedDelay() );
to the end of the current debug output (line 31) in order to get that but then I was able to successfully duplicate/clone the incoming rf codes with the mySwitch.send function
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
// Optional set pulse length.
mySwitch.setPulseLength(192);
}
void loop() {
mySwitch.send(<received int value>, 24);
delay(1000)
}

from rc-switch.

bau-sec avatar bau-sec commented on July 28, 2024

I'll voice my support for the first half of this feature. I had to modify rc-switch to do the first part (printing a recorded protocol's timings) while adding a protocol so having this available by default would have been useful. If there's interest I could post a portion of that code here, though it's probably pretty obvious how that would be accomplished.

As for the play back of a learned code, here's a guy who implemented that with a RF ceiling fan remote: http://arduinobasics.blogspot.com.au/2014/07/433-mhz-rf-module-with-arduino-tutorial_30.html . There's some weird stuff going on like hooking the receiver up to an analog input (I have the same receiver and it's digital...) but the idea is to skip the statistical analysis, just store the raw timing values. I'm not saying that's necessarily the way to go, but here's someone who's done something similar to the second part of what your suggesting.

from rc-switch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.