Comments (3)
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.
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.
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)
- Esp32 issue... another one, yes... HOT 1
- How to implement a custom protocol?
- Which pin for Arduino pro mini AtMega328P 5V
- control with more than one command
- Problem with recieved value HOT 1
- How to send()? HOT 1
- How the ISR function handle the filtering out first high pulse in SYNC bit
- void RCSwitch::disableReceive()
- ReceiveDemo_Advanced work with Platform.IO and VSCode HOT 1
- How can i modify this protocol? HOT 5
- Cant receive anything with receive demo HOT 1
- Small contribution
- SURNICE: receiver and transmitter HOT 1
- Protocol 6 optimization doubt
- A modest proposal - expose the interrupt so a user can write a callback function.
- How to add a new protocol for my RF receiver HOT 1
- SimpleRCScanner return error 500
- Switch does not respond
- SimpleRCScanner returning random numbers with no RF signal (no button pressed) HOT 1
- 433MHz 4-button code copy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rc-switch.