-
Arduino MEGA, ENC28J60 module
-
Web
-
I am trying to use this module with arduino MEGA, it is not shield but has the same chip as I know, this module is so widely used is there any way to use this platform with this module if not can be added to wish list?
Welcome to Cayenne!
Have a look at this thread. I got it working with the code posted there.
The connection on MEGA is like this? (As Ethercard custom library said.)
VCC - 3.3V
GND - GND
SCK - Pin 52
SO - Pin 50
SI - Pin 51
CS - Pin 53 # Selectable with the ether.begin() function
You can just use the same pins that are in the post.
- Wire it up:
- VCC – 5V
- GND – GND
- CS – D10
- SI – D11
- SCK – D13
- SO – D12
- INT – D2
There are not such pins on Arduino MEGA
It works for mega!!
`/**************************************************************
* For this example you need UIPEthernet library:
* https://github.com/ntruchsess/arduino_uip
*
VCC - 3.3V
GND - GND
SCK - Pin 52
SO - Pin 50
SI - Pin 51
CS - Pin 53
*
*
**************************************************************/
#define CAYENNE_DEBUG // Uncomment to show debug messages
#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space
#include <CayenneDefines.h>
#include <UIPEthernet.h>
#include <BlynkSimpleUIPEthernet.h>
#include <CayenneEthernetClient.h>
char token[] = "TOKEN"; //NOT MY TOKEN
void setup()
{
Serial.begin(9600);
Cayenne.begin(token);
}
void loop()
{
Cayenne.run();
}`
1 Like