Ethernet module enc28j60


#1

can I use an ethernet module instead the ethernet sheild ?


Does it support ENC28J60 module?
#2

Which module do you have in mind?

Craig


#3

enc28j60


Is ENC28J60 supported
#4

Looks like it’s supported by Blynk, so it will potentially work with Cayenne.

Craig


Is ENC28J60 supported
#5

@kreggly @ I just ordered this ethernet module and will try it out. @mariomedhat9 Let us know if you can get it working!

-B


#6

ok


#7

thank you verry much :smiley:


#8

I don’t have this module, but I slapped some code together.

Install the arduino_uip library, wire up you pins as defined in the comments, and give it a go:

@bestes, did you get one yet?

/**************************************************************
 * For this example you need UIPEthernet library:
 *   https://github.com/ntruchsess/arduino_uip
 *
 * Wire it up:
 *  VCC -- 5V
 *  GND -- GND
 *  CS  -- D10
 *  SI  -- D11
 *  SCK -- D13
 *  SO  -- D12
 *  INT -- D2
 *
 *
 **************************************************************/
#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[] = "YOUR TOKEN"; //NOT MY TOKEN

void setup()
{
  Serial.begin(9600);
  Cayenne.begin(token);
}

void loop()
{
  Cayenne.run();
}

#9

I have one. I’ll have to find it first but can probably test tomorrow if it’s not buried somewhere.


#10

Finally found it after looking for my GPS module (which I didn’t find :’( )

Confirming it works fine. You have to install the UIPEthernet library from https://github.com/ntruchsess/arduino_uip which gives some annoying warnings in the compile output, but hey it works, right?