Does it support ENC28J60 module?


#1
  • 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?


#2

Welcome to Cayenne!

Have a look at this thread. I got it working with the code posted there.


#3

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


#4

You can just use the same pins that are in the post.


#5
  • 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


#6

Those pins exist on all Arduino boards. Here they are on the mega (pink numbers):


#7

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();
}`

How to stop Cayenne.run() running continuously?
#8

This module is going too hot 45-55C. How can I put this module on sleep mode to increase the lifespan like here with the old EtherShield library? (Should I make new thread?)