Skip to main content

Getting Started for Arduino (KR)

WIZ Ethernet Library Update#

Step 1 : Download for Arduino WIZnet library

  • WIZnet GitHub Repository์—์„œ WIZ Ethernet Library๋ฅผ download ํ•œ๋‹ค.
  • Download ZIP button์„ ํด๋ฆญํ•˜์—ฌ ๋‹ค์šด๋กœ๋“œ ํ•œ๋‹ค.


Step 2 : Library Copy & Paste

  • ๋ฐ›์€ ZIPํŒŒ์ผ์˜ ์••์ถ•์„ ํ‘ผ๋‹ค.
  • C:\Program Files\Arduino\libraries ๊ฒฝ๋กœ๋กœ ์ ‘์†ํ•œ๋‹ค.

Arduino IDE 1.0.x

  • 1.0.x Version์€ Arduino IDE 1.0.x ํด๋” -> Ethernet ํด๋”๋ฅผ ์•„๋ž˜์˜ ๊ฒฝ๋กœ์— ๊ทธ๋Œ€๋กœ ๋ณต์‚ฌ&๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•œ๋‹ค.
  • ๊ฒฝ๋กœ = C:\Program Files\Arduino\libraries

Arduino IDE 1.5.x

  • 1.5.x ์ƒ์œ„ Version์€ Arduino IDE 1.5.x ํด๋” -> Ethernet -> src ํด๋”๋งŒ ๋ณต์‚ฌํ•˜์—ฌ ์•„๋ž˜์˜ ๊ฒฝ๋กœ์— ๋ณต์‚ฌ&๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•œ๋‹ค.
  • ๊ฒฝ๋กœ = C:\Program Files\Arduino\libraries\Ethernet


Step 3: Arduino Library Import

  • Arduino IDE๋Š” ๋‹ค์Œ ๊ทธ๋ฆผ๊ณผ ๊ฐ™์ด Library๋ฅผ Importํ•˜์—ฌ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

  • Arduino Ethernet shield๋ฅผ ํ™œ์šฉํ•˜๊ธฐ ์œ„ํ•œ library๋Š” Sketch ๋ฉ”๋‰ด์˜ Import Library > Ethernet์„ ์„ ํƒํ•˜๋ฉด ํ”„๋กœ์ ํŠธ์— ๊ด€๋ จ header file๋“ค์ด ์ถ”๊ฐ€๋œ๋‹ค.


Arduino Web Server Examples#

Step 1 : Arduino ์‹œ์ž‘ํ•˜๊ธฐ

  • Arduino๋ฅผ ์‹คํ–‰ํ•œ๋‹ค.
  • Examples -> Ethernet -> Webserver๋ฅผ ์„ ํƒํ•˜์—ฌ ์‹คํ–‰ํ•œ๋‹ค.

  • Uno, Mega, Due ๋“ฑ ๋ณด๋“œ ์ข…๋ฅ˜์— ๋”ฐ๋ผ ์•Œ๋งž๊ฒŒ Settingํ•œ๋‹ค.
  • ๋„๊ตฌ -> ๋ณด๋“œ -> Arduino Uno
  • ๋„๊ตฌ -> ํฌํŠธ -> COMx


Step 2 : Arduino ๋™์ž‘ํ™•์ธ

  • Verify์„ ํด๋ฆญํ•˜์—ฌ ์ฝ”๋“œ ์—๋Ÿฌ๊ฐ€ ์—†๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.
  • ์ด์ƒ์—†๋‹ค๋ฉด, Upload๋ฅผ ํด๋ฆญํ•˜์—ฌ Arduino ๋ณด๋“œ์— Uploadํ•œ๋‹ค.

  • Upload์™„๋ฃŒ ํ›„ Serial Monitor๋ฅผ ํด๋ฆญ
  • ๋‹ค์Œ๊ณผ ๊ฐ™์€ IP Address๊ฐ€ ๋‚˜์˜ค๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.

  • ์ด์ œ Internet Explore & Chrome์„ ์ด์šฉํ•˜์—ฌ Serial Monitor์— ๋‚˜์˜จ IP๋กœ ์ ‘์†ํ•œ๋‹ค.
  • ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜์˜จ๋‹ค๋ฉด ์ •์ƒ๋™์ž‘ํ•˜๋Š” ๊ฒƒ์ด๋‹ค.


Step 6 : Enjoy it !

  • Let's play
  • Create your new application & new content