-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENC28J60 #45
Comments
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... |
Basically, here is below a piece of my code, I have 2 main functions in setup() :
When I execute this, I have an infinite loop in the monitor : 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 |
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. |
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 ! |
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. |
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. |
Hello
I have a small project running on an arduino Uno, when receiving a 433Mz signal from a sensor, the arduino sends an email through ENC28J60 module. Everything almost works, once it's connected to the internet, the initialization of the module makes my arduino to reboot continuously. I discovered that the issue comes from the function mySwitch.enableReceive(0). For some reason, using this interrupt is the root cause. My question is, is there any other solution to use this function with pin 2 and no interruption ?
Thanks !
Mickael.
The text was updated successfully, but these errors were encountered: