Comments (6)
In the current implementation, I am afraid some pin with interrupt capabilities is required. For the Uno, that means pin 2 or pin 3.
But if you actually have pin 2 available for use with rc-swich, I don't quite see what the problem is / what is causing it. Weird...
from rc-switch.
Basically, here is below a piece of my code, I have 2 main functions in setup() :
- mySwitch.enableReceive(0);
- server.begin();
Serial.println("Starting rcswitch");
mySwitch.enableReceive(0);
Serial.println("Starting comm");
Ethernet.begin(mac);
server.begin();
When I execute this, I have an infinite loop in the monitor :
Starting rcswitch
Starting comm
Starting rcswitch
Starting comm
Starting rcswitch
Starting comm
...
If I disable mySwitch.enableReceive(0); with comments ("//") everything else works perfectly fine, but not rcswitch.Any idea ? Pretty weird. I used pin 2 for RCSwitch (Interr. 0).
Mickael
from rc-switch.
Perhaps something else is also trying to use pin 2 and/or messing with interrupts? E.g. the ethernet code?
In any case, I doubt this is due to a bug in rc-switch. You are most likely better of asking for help in a general Arduino forum. And if you could provide more (or ideally all) of the source code, it would be easier to pinpoint where things go wrong.
from rc-switch.
This is what I was thinking, I guess the issue comes from the ethernet module. I already opened a thread in the general forum and in the github page for ENC28J60, no solution so far... Thanks to you anyway !
from rc-switch.
Actually, what library are you using to drive the ENC28J60? AS far as google tells me, the stock ethernet library is not compatible with it.
from rc-switch.
Without more details (such as what library you use to drive the ENC28J60; or perhaps a complete "minimal crashing demo"), there is nothing really we can do about this.
from rc-switch.
Related Issues (20)
- 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
- Repeat received code
- Dooya DD2702H two way protocol
- Can it support sending 5 bytes of data
- I am a little stuck as I think I have a variable bit count protocol appears manchester?
- Have anyone try Rcswitch with esp32c3 supermini HOT 2
- Library don't work
- Codes decoded with ReceiveDemo_Advanced seem to be incomplete and do not work when used for sending HOT 3
- CH32X035 how to work HOT 1
- Pulseview conversion to match RC-Switch Decode
- Need help decoding 433 signals
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.