วันเสาร์ที่ 15 มิถุนายน พ.ศ. 2556

ตัวอย่างที่น่าสนใจเกี่ยวกับ W5100

- Webserver + Ajex + LED + Switch
http://startingelectronics.com/tutorials/arduino/ethernet-shield-web-server-tutorial/SD-card-IO/

ใช้ Arduino + W5100 กับ Servo มอเตอร์


//zoomkat 3-17-12
//simple button GET server code to control servo and arduino pin 5
//for use with IDE 1.0
//open serial monitor to see what the arduino receives
//use the \ slash to escape the " in the html 
//address will look like http://192.168.1.102:84 when submited
//for use with W5100 based ethernet shields
//Powering a servo from the arduino usually DOES NOT WORK.
//note that the below bug fix may be required
// http://code.google.com/p/arduino/issues/detail?id=605 

วันพุธที่ 12 มิถุนายน พ.ศ. 2556

ใช้ Arduino + W5100 เปิดปิด Relay

/*
Control 2 relays over Ethernet (Ethernet shield)
Supports DHCP
Relays are connected to pins 6 (relay 1) and 7 (relay 2). More relays can be added by putting their pin numbers to the relayPins array
Listening on TCP/IP port 22000
Control command syntax: R([aa],[bb])<CR><LF> where [aa]= relay number 00 for both, 01 or 02. [bb] is 00 (off) or 01 (on)
Response: OK<CR><LF> or ERROR<CR><LF> if a bad relay number or command is given
Multiple commands may be given. The server closes the client socket after 30s inactivity timeout
*/

ใช้ Arduino + ENC28J60 เปิดปิด Relay

ENC28J60 Ethernet Module utilizes the new Microchip ENC28J60 Stand-Alone Ethernet Controller IC featuring a host of features to handle most of the network protocol requirements. This Ethernet LAN module connects directly to most microcontrollers.
Description:
  • Ethernet LAN Module for Arduino/AVR/LPC/STM3
  • ENC28J60 Ethernet chips
  • Can be easily mounted with the MCU
  • Network Interface: HR911105A
  • Supply Voltage: 3.3 V (5V Tolerant DIO)
  • 25Mhz crystal oscillator
  • Size (L x W x H): Approx. 2.3 x 1.3 x 0.7 inch / 58 x 34 x 17 mm