Ks0243 keyestudio EASY plug W5100 Ethernet Module

From Keyestudio Wiki
Revision as of 11:27, 28 November 2018 by Keyestudio (talk | contribs)
Jump to navigation Jump to search
EASY plug Joystick Module

Introduction

W5100 is a multi-purpose single internet interface chip, integrated 10/100 Ethernet controller inside, and applied to embedded system which is high integration, high stability, high performance and low cost.
It can be connected to Internet without operating system and compatible with IEEE802.3 10BASE-T and 802.3u 100BASE-TX.
It contains TCP/IP protocol stack that is full-hardware and verified by market for years, Ethernet medium transport layer and physical layer. You don’t need to consider the Ethernet control, and just need simple program for ports.
The module should be connected to the SPI communication interface on EASY plug control board with only one cable, so the wiring is rather simple.


Specifications

  • Various interface: Direct Bus, Indirect Bus and SPI Bus
  • Supporting TCP/IP protocol stack of hardware, also TCP, UDP, ICMP, IGMP, IPv4, ARP and PPPoE
  • Up to 4 independent ports
  • Integrating 16KBYTE transmit-receive cache
  • Supporting automatic conversion of polarity
  • Coming with Internet access


Technical Details

  • Dimensions: 61mm*30mm*18mm
  • Weight: 14.1g


Connect It Up

Connect the EASY Plug Joystick module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Copy and paste below code to Arduino IDE and upload.

int JoyStick_X = 6; //x
int JoyStick_Y = 7; //y
int JoyStick_Z = 2; //key
  void setup() 
{
  pinMode(JoyStick_Z, INPUT); 
  Serial.begin(9600); // 9600 bps
}
void loop() 
{
  int x,y,z;
  x=analogRead(JoyStick_X);
  y=analogRead(JoyStick_Y);
  z=digitalRead(JoyStick_Z);
  Serial.print(x ,DEC);
  Serial.print(",");
  Serial.print(y ,DEC);
  Serial.print(",");
  Serial.println(z ,DEC);
  delay(100);
}


What You Should See

Done uploading the code, open the serial monitor and set the baud rate to 9600. If push the Joystick button towards different direction, you should get the different value.
thumb


Resources

Download the PDF:
https://drive.google.com/open?id=1eN8fs6Ew9sOMBcJxqhNgWk3qrMnSba9S

Download the Code:
https://drive.google.com/open?id=1QTwt5lOX7qMmIkL-I0b9ANV1N-6RLYl6



Buy from