Arduino Uno 에 ESP8266 WIFI Shield 를 장착해서 Wepserver HellowSever 예제 테스트 해 보기

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ส.ค. 2018
  • Arduino Uno 에 ESP8266 WIFI Shield 를 장착해서 Wepserver HellowSever 예제 테스트 해 보기
    ESP8266 커뮤니티 2.3.0 버전 설치 후 테스트는 아래 동영상을 참조해 주세요
    • Arduino Uno 에 ESP8266 ...
    Please refer to the video below for testing after installing ESP8266 community version 2.3.0
    • Arduino Uno 에 ESP8266 ...
    Be sure to read this post first
    rockjjy.tistory.com/2662
    caution! What if you can't upload with the following message or error?
    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed
    error: espcomm_upload_mem failed
    If you receive the above error message when uploading a sketch, there are a few things to check.
    1. Make sure that the Arduino Uno is initialized sketch (see Posting Arduino Uno sketch at the top of the post)
    2. Make sure that the wiring TX and RX are in good condition
    3. Make sure the switch setting is set to FLASH mode.
    After checking 1 ~ 3, remove and reconnect the Arduino's USB power cable and you will see the blue LED of the ESP8266 module blink.
    (The blue LED of the ESP8266 module on the WIFI shield will blink when powered by USB cable, and the ESP8266 module is ready for upload.)
    What if the blue LED on the ESP8266 module does not blink even after reapplying power with the USB cable?
    In this case, the WIFI Shiled is loosely mounted so that there is a gap between yarns on the Arduino board.
    1. Press the RST reset button on the WIFI shield until it flashes.
    2. Reapply power and verify that the blue LED on the ESP8266 module is blinking.
    Repeat steps 1 and 2, and finally
    The ESP8266 module is ready for upload when the blue LED on the WIFI shield's ESP8266 module blinks when powered by the USB cable.
    When you're ready, proceed with the sketchups and see if they upload correctly.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 58

  • @jarvisattavar5481
    @jarvisattavar5481 5 ปีที่แล้ว +1

    Great Job highly useful thank you

  • @hyunj1332
    @hyunj1332 5 ปีที่แล้ว +2

    저 하나 궁금한게 있습니다. Flash Size : 4M(1M SPIFFS)가 무슨 뜻인가요?
    그리고 제가 와이파이에 연결을 했더니 주소가 뜨긴 하는데, 그 주소로 들어가보려 했더니 연결 시간이 너무 오래 걸린다고 접속이 안됩니다. 혹시 이런 경우는 무엇이 문제인가요?

  • @llilliiillillill513
    @llilliiillillill513 5 ปีที่แล้ว

    와 정말로 감사드립니다 행님

  • @WaterSeason571
    @WaterSeason571 4 ปีที่แล้ว

    Good Tutorial. Should i access it over the internet. Say from Remote Machine not in same network?

  • @hyunj1332
    @hyunj1332 5 ปีที่แล้ว

    안녕하세요, 이 댓글을 보실 수 있을지는 잘 모르겠습니다만 질문드립니다.
    코딩 중에서 const char* ssid "....."; 이라고 되어 있는 부분에서 이 .... 부분에는 실제 사용할 와이파이의 ssid 를 적어넣으면 되는건가요?
    password 부분도 마찬가지일까요?
    그리고...와이파이 쉴드가 찾아보니 여러 종류가 있더라구요. 그런데 각자 아두이노와 결합하는 방법도 다르고 그래서 헷갈리는데, 어쨌든 모두 기능은 같은건가요?

    • @rockjjy99
      @rockjjy99  5 ปีที่แล้ว

      네 맞습니다 자신이 사용하는 WIFI 아이디와 비밀번호를 입력하면 됩니다
      blog.daum.net/rockjjy99/2662
      링크 참조하세요
      그리고 위 동영상은 ESP8266 WIFI 모듈이 탑재되어 있기 때문에 ESP8266 WIFI 예제를 사용하였습니다
      Wiznet 이라던가 다른 WIFI 모듈이 탑재되어 있으면 다른 예제를 사용해야 겠지요

    • @hyunj1332
      @hyunj1332 5 ปีที่แล้ว

      @@rockjjy99 감사합니다. 제가 구한 코딩은 그냥 WiFi.h로 되어있었는데 고려해야겠네요. 정말 감사합니다.

  • @quentinjacobsen6687
    @quentinjacobsen6687 3 ปีที่แล้ว

    Hi it works for just wondering if you can do a serialsoftware using the wifi shield?

  • @josenieto9481
    @josenieto9481 5 ปีที่แล้ว +1

    Hi, thanks for this information, i tried to upload the code into my esp8266 shield but i had this error : espcomm_open failed, did you have this problem uploading the code into arduino ?. The compilation does´nt have errors

    • @rockjjy99
      @rockjjy99  5 ปีที่แล้ว +1

      Be sure to read this post first
      blog.daum.net/rockjjy99/2662
      Caution! What if the following message is displayed or the upload is not possible with an error?
      Warning: espcomm_sync failed
      error: espcomm_open failed
      error: espcomm_upload_mem failed
      error: espcomm_upload_mem failed
      If you receive the above error message when uploading a sketch, you should review some details.
      1. Make sure that the sketch is initialized on the aduino uno (see How to initialize the aduino uno sketch at the top of the posting)
      2. Make sure that the wiring TX and RX are clear (see Wiring at the top of the post when installing the aduino)
      3. Make sure the switch settings are set well in FLASH mode.
      After checking one or three times, remove and reconnect the USB power cable of the aduino and see the flashing blue LEDs on the ESP8266 module.
      (The blue LED on the ESP8266 module on the WIFI shield must flash when power is applied to the USB cable to ensure that the ESP8266 module is ready for upload.)
      What if the blue LED on the ESP8266 module does not flash even after re-energizing it to the USB cable?
      1. Press the RST reset button on the WIFI shield until it flashes.
      2. Re-energize to see if the blue LED on the ESP8266 module is flashing
      Repeat the steps 1 to 2, and finally,
      The blue LED on the ESP8266 module on the WIFI shield must flash when power is applied to the USB cable to be ready to upload the ESP8266 module.
      When you're ready, we'll upload the sketch and see if it's uploading normally.

    • @pipercolt1963
      @pipercolt1963 4 ปีที่แล้ว

      @@rockjjy99 why don't you translate the page in English, u idiot!

    • @arisioz
      @arisioz 2 ปีที่แล้ว

      @@pipercolt1963 Because he's Korean you halfwit

  • @user-vk8zg8cm6x
    @user-vk8zg8cm6x 4 ปีที่แล้ว +1

    시리얼 모니터에 아이피가 뜨는데 브라우저에서는 연결이 안됩니다 ㅜㅜ
    혹시 대학교 공통 와이파이를 사용해서 그런가요 ???
    이유를 아시면 가르쳐주십시요!!!

    • @rockjjy99
      @rockjjy99  4 ปีที่แล้ว

      네 대학교는 보안이 걸려 있는것으로 알고 있습니다 아래 댓글 보시면 동일하게 안되셨던 대학생 분이 있습니다 댓글 확인 바라겠습니다

    • @user-vk8zg8cm6x
      @user-vk8zg8cm6x 4 ปีที่แล้ว

      ​@@rockjjy99​ 한번더 알려주셔서 감사합니다 ㅜㅜ 예제 잘 따라 가볼게요

  • @rockjjy99
    @rockjjy99  4 ปีที่แล้ว

    장착하고 전원을 입력하면 ESP-12 모듈의 파란색 LED 가 깜박여야 준비가 된 것 입니다
    mounted on the Arduino and powered up, the blue LED on the ESP-12 module should blink to be ready for upload

    • @Crazy-Komerican
      @Crazy-Komerican 4 ปีที่แล้ว

      ESP8266 shield 의 파란색 LED 가 어디 부분에 위치해 있는 것을 말씀이신지요? 이 ESP8266 검은 회로도에 있는 작은 LED 를 말씀 하시는 것인지요? 저는 파란색 LED 가 깜박이지 않는것은 shield 에 문제이겠네요.. ㅠㅠ

    • @Crazy-Komerican
      @Crazy-Komerican 4 ปีที่แล้ว

      하기의 답글을 읽어보니, ESP8266 검은색의 회로도가 저도 잠을 자고 있는듯합니다. 또는 파란색이 안켜지는것을 보니, 고장이 난 보드이던가. 저도
      warning: espcomm_sync failed
      error: espcomm_open failed
      error: espcomm_upload_mem failed
      error: espcomm_upload_mem failed 가 뜹니다. ㅠㅠ

    • @rockjjy99
      @rockjjy99  4 ปีที่แล้ว

      ​@@Crazy-Komerican 전원을 공급했을때나 쉴드의 리셋버튼을 눌러 주었을때 ESP8266 ESP-12E 모듈의 파란색 LED가 깜박여야 업로드 준비가 된것입니다
      배선이 이상없고 쉴드 장착후 USB 케이블로 전원을 공급했는데 파란색 LED가 깜박이지 않을 경우 전원을 재공급하며
      이때 아두이노와 쉴드의 간격을 약간띄워서 장착합니다
      너무 타이트 하게 장착한 경우 아두이노와 쉴드 사이가 쇼트가 나서 LED가 점등 되지 않을 수 있습니다
      blog.daum.net/rockjjy99/2662
      블로그 포스팅 하단 파란색 LED가 점등 되지 않을경우 해결방법 부분을 읽어 보세요

    • @rockjjy99
      @rockjjy99  4 ปีที่แล้ว

      @@Crazy-Komerican 위 에러는 점퍼선 TX, RX 배선이 잘못 되었다던가, 아두이노에 스케치 초기화가 안되었다던가, 파란색 LED가 점등되지 않는 ESP 모듈이
      잠자고 있는 상태에서 스케치 업로드를 해주었다던가, 스위치 설정을 플래시 모드로 하지 않았다던가 할때 발생합니다
      blog.daum.net/rockjjy99/2662
      안된다고만 하시지 말고 블로그 포스팅 좀 처음부터 끝까지 차분히 읽어 보시고 테스트 하시길 바랍니다

    • @Crazy-Komerican
      @Crazy-Komerican 4 ปีที่แล้ว

      @@rockjjy99 아! 감사합니다. 약간 띄워서 장착하니, 파란색 LED 가 깜박입니다. 허나, 같은 에러 메세지..아무래도, 저희 회사 미국 회사거든요.. 얘네의 SSID 와 PW 를 했음에도 불구하고, 제 wifi 신호를 튕겨내는 듯? 한 느낌입니다. 아무래도, 집에 가서 한번 다시 해봐야 겠습니다. (혹, 이런경우가 있었는지, 하기에 보니, 무슨 대학에서 튕겨냈다?? 라는 글을 본 듯한데... 여하튼, 빠른 답변 감사합니다.)

  • @Chris-mt9uy
    @Chris-mt9uy 4 ปีที่แล้ว

    File "C:/Users//Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 468, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
    esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
    esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
    HELPP PLSSS

  • @jansynowiec
    @jansynowiec 4 ปีที่แล้ว

    Hi there. I need help after doing everything what is on this tutorial I got the error:Arduino: 1.8.10 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
    Sketch uses 312728 bytes (29%) of program storage space. Maximum is 1044464 bytes.
    Global variables use 27452 bytes (33%) of dynamic memory, leaving 54468 bytes for local variables. Maximum is 81920 bytes.
    esptool.py v2.6
    2.6
    esptool.py v2.6
    Serial port COM4
    Connecting......
    Traceback (most recent call last):
    File "C:\Users\Xardas\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/upload.py", line 25, in
    esptool.main(fakeargs)
    File "C:/Users/Xardas/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 2663, in main
    print("Chip is %s" % (esp.get_chip_description()))
    File "C:/Users/Xardas/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 968, in get_chip_description
    efuses = self.get_efuses()
    File "C:/Users/Xardas/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 964, in get_efuses
    self.read_reg(0x3ff00054) Preferences.

    • @jansynowiec
      @jansynowiec 4 ปีที่แล้ว

      Arduino: 1.8.10 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"
      Sketch uses 249271 bytes (23%) of program storage space. Maximum is 1044464 bytes.
      Global variables use 35772 bytes (43%) of dynamic memory, leaving 46148 bytes for local variables. Maximum is 81920 bytes.
      warning: espcomm_sync failed
      error: espcomm_open failed
      error: espcomm_upload_mem failed
      error: espcomm_upload_mem failed
      This report would have more information with
      "Show verbose output during compilation"
      option enabled in File -> Preferences.

    • @rockjjy99
      @rockjjy99  4 ปีที่แล้ว

      @@jansynowiec Be sure to read this post first
      blog.daum.net/rockjjy99/2662
      caution! What if you can't upload with the following message or error?
      warning: espcomm_sync failed
      error: espcomm_open failed
      error: espcomm_upload_mem failed
      error: espcomm_upload_mem failed
      If you receive the above error message when uploading a sketch, there are a few things to check.
      1. Make sure that the Arduino Uno is initialized sketch (see Posting Arduino Uno sketch at the top of the post)
      2. Make sure that the wiring TX and RX are in good condition
      3. Make sure the switch setting is set to FLASH mode.
      After checking 1 ~ 3, remove and reconnect the Arduino's USB power cable and you will see the blue LED of the ESP8266 module blink.
      (The blue LED of the ESP8266 module on the WIFI shield will blink when powered by USB cable, and the ESP8266 module is ready for upload.)
      What if the blue LED on the ESP8266 module does not blink even after reapplying power with the USB cable?
      In this case, the WIFI Shiled is loosely mounted so that there is a gap between yarns on the Arduino board.
      1. Press the RST reset button on the WIFI shield until it flashes.
      2. Reapply power and verify that the blue LED on the ESP8266 module is blinking.
      Repeat steps 1 and 2, and finally
      The ESP8266 module is ready for upload when the blue LED on the WIFI shield's ESP8266 module blinks when powered by the USB cable.
      When you're ready, proceed with the sketchups and see if they upload correctly.

    • @pipercolt1963
      @pipercolt1963 4 ปีที่แล้ว +1

      @@rockjjy99 did anyone actually think this is what had to be done to make it work when they purchased it from amazon. why in the hell are they still selling them?

  • @hipstagram2564
    @hipstagram2564 ปีที่แล้ว

    Failed uploading: uploading error: exit status 0xffffffff 보기와 같이 따라햇는데 업로드시 이런 에러가 뜨네요...ㅜ

    • @rockjjy99
      @rockjjy99  ปีที่แล้ว

      1. 아두이노 우노에 스케치 초기화가 되어 있는지 확인 (포스팅 상단 아두이노 우노 스케치 초기화 방법 참조)
      2. 배선 TX, RX 가 이상 없는지 확인 (포스팅 상단 아두이노 장착시 배선 참조)
      3. 스위치 설정은 FLASH 모드로 잘 세팅되어 있는지 확인
      1~3번 확인 후 아두이노의 USB 전원 케이블을 제거했다가 다시 연결해 주면 ESP8266 모듈의 파란색 LED가 깜박이는 것을 확인할수 있습니다
      (USB 케이블로 전원 인가시 WIFI 쉴드의 ESP8266 모듈의 파란색 LED가 깜박여야 ESP8266 모듈의 업로드 준비가 된 것입니다)
      rockjjy.tistory.com/m/2662

  • @officeworkers333
    @officeworkers333 5 ปีที่แล้ว

    똑같이 했는데 컴파일은 되는데 업로드할때 esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header 에러가 뜹니다. 무엇이 문제인가요?

    • @rockjjy99
      @rockjjy99  5 ปีที่แล้ว

      blog.daum.net/rockjjy99/2662
      포스팅 하단 컴파일 에러시 해결방법 확인해보세요

    • @officeworkers333
      @officeworkers333 5 ปีที่แล้ว

      @@rockjjy99 답변 감사드립니다.
      하지만 에러자체가 다르고 esp 모듈이 전원을 인가할때 순간적으로 파란색LED가 빤짝이는걸 확인했습니다. 하지만 위와 같은 동일한 에러가 나옵니다. 구글링을 해보았는데 해결을 못하겠네요

    • @officeworkers333
      @officeworkers333 5 ปีที่แล้ว

      제가 따라한 방식은 와이파이쉴드를 아두이노에 장착한 방식입니다.

    • @rockjjy99
      @rockjjy99  5 ปีที่แล้ว

      @@officeworkers333
      1.아두이노 우노에 스케치 초기화 되어 있는지 확인해 주세요
      2. 아두이노 우노에 장착하지 말고 아두이노와 연결해서 스케치 컴파일 및 업로드 해서 에러가 나는지 확인해 주세요
      방법은 아래 링크 중간 부분에 보면 장착하지 않고 아두이노와 연결해서 테스트 하는 방법이 있습니다
      blog.daum.net/rockjjy99/2662
      위 방법으로 에러없이 동작한다면 장착시 케이블이나 케이블 배선 또는 장착 방법 아니면 스위치 설정의 문제로 봐야
      할것 같습니다
      그것도 아니면 강형석님께서 별도로 ESP-12E 의 펌웨어를 변경하셨거나, 아니면 판매처에서 변경하였거나 하는
      경우도 생각해 볼수 있을것 같습니다
      우선 WIFI 쉴드에 이상 유무먼저 확인이 되어야 할것 같습니다
      그리고 구매하신 구매처에 문의하셔서 동작 테스트 후에 출고하는것인지 확인 부탁드리겠습니다
      중국산 제품이라서 수입해서 제품 이상유무도 확인 안하고 마구잡이로 판매하는 도매상들이 많이 있습니다
      구매하실때 동영상 처럼 라이트앵블 케이블 2개를 같이 동봉해서 받지 못하셨다면
      개념없는 도매업체에서 구매하셨을 확률이 큽니다

    • @officeworkers333
      @officeworkers333 5 ปีที่แล้ว

      @@rockjjy99 감사합니다 조언을 받아 시리얼 모니터에 아이피 어드레스 값을 받는거 까지 성공했습니다.
      그런데 한가지 문제가 있습니다.
      아이피 값을 주소창에 치면 응답하는 데 시간이 너무 오래 걸립니다. 라는 문구와 함께 화면이 출력되지 않습니다

  • @rockjjy99
    @rockjjy99  4 ปีที่แล้ว

    Be sure to read this post first
    blog.daum.net/rockjjy99/2662
    caution! What if you can't upload with the following message or error?
    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed
    error: espcomm_upload_mem failed
    If you receive the above error message when uploading a sketch, there are a few things to check.
    1. Make sure that the Arduino Uno is initialized sketch (see Posting Arduino Uno sketch at the top of the post)
    2. Make sure that the wiring TX and RX are in good condition
    3. Make sure the switch setting is set to FLASH mode.
    After checking 1 ~ 3, remove and reconnect the Arduino's USB power cable and you will see the blue LED of the ESP8266 module blink.
    (The blue LED of the ESP8266 module on the WIFI shield will blink when powered by USB cable, and the ESP8266 module is ready for upload.)
    What if the blue LED on the ESP8266 module does not blink even after reapplying power with the USB cable?
    In this case, the WIFI Shiled is loosely mounted so that there is a gap between yarns on the Arduino board.
    1. Press the RST reset button on the WIFI shield until it flashes.
    2. Reapply power and verify that the blue LED on the ESP8266 module is blinking.
    Repeat steps 1 and 2, and finally
    The ESP8266 module is ready for upload when the blue LED on the WIFI shield's ESP8266 module blinks when powered by the USB cable.
    When you're ready, proceed with the sketchups and see if they upload correctly.

  • @hyeok0311
    @hyeok0311 5 ปีที่แล้ว

    혹시 이메일 주소좀 알 수 있을까요? 질문할게 있어서 부탁드립니다.

    • @rockjjy99
      @rockjjy99  5 ปีที่แล้ว

      rockjjy99@gmail.com 입니다
      blog.daum.net/rockjjy99/2662 포스팅을 참조해 주세요~

  • @user-vv7yw8px6d
    @user-vv7yw8px6d 5 ปีที่แล้ว

    주어진대로 했는데 컴파일을 할 수 없습니다. 이유를 알 수 있을까요

    • @rockjjy99
      @rockjjy99  5 ปีที่แล้ว

      컴파일 에러 메세지를 확인해 보셔야 할것 같습니다 ESP8266 not found 이런 메세지가 나온다면
      1번 사전에 아두이노 우노에 스케치 초기화를 해주었는지
      2번 스위치는 플래시 모드로 되어 있는지
      3번 ESP8266 모듈이 슬립모드로 잠자고 있는것은 아닌지
      (스케치 업로드 전 아두이노의 리셋 버튼이나 전원 재인가를 해서 ESP8266 모듈의 파란불이 들어오는것을 확인해야 함)
      4번 점퍼케이블 TX, RX 배선이 제대로 연결되어 있는지
      확인해 보셔야 할것 같습니다

    • @user-vv7yw8px6d
      @user-vv7yw8px6d 5 ปีที่แล้ว +1

      @@rockjjy99 warning: espcomm_sync failed
      error: espcomm_open failed
      error: espcomm_upload_mem failed
      이런 에러가 뜹니다. 무슨 문제 인가요?

    • @rockjjy99
      @rockjjy99  5 ปีที่แล้ว

      @@user-vv7yw8px6d 네 ESP8266 모듈이 잠자고 있어서 그렇습니다
      아두이노 리셋 버튼을 눌러주거나, 전원 재인가해서 ESP8266모듈의 파란불이 정상적으로 들어오는지 확인한 다음에
      스케치 업로드 하시길 바랍니다
      1번과 2번, 4번 사항도 꼭 확인해 보시구요

    • @user-vv7yw8px6d
      @user-vv7yw8px6d 5 ปีที่แล้ว

      @@rockjjy99 전부 확인해도 같은 에러메세지와 함께 컴파일이 불가능 합니다.

    • @rockjjy99
      @rockjjy99  5 ปีที่แล้ว

      @@user-vv7yw8px6d 네 위와 같은 방법으로 여러번 재시도해 보시길 바랍니다
      종종 안되는 경우도 있습니다, 그래도 안되신다면 ESP8266 WIFI 모듈에 문제가 있다고 봐야 할것 같습니다
      어디서 구매한것인지, 출고될때 동작 테스트는 하고 출고하는지 확인해 보셔야 할것 같습니다

  • @rockjjy99
    @rockjjy99  5 ปีที่แล้ว

    Arduino Mega2560 사용시
    th-cam.com/video/V1TIqnZpnxg/w-d-xo.html

  • @rockjjy99
    @rockjjy99  4 ปีที่แล้ว +1

    Arduino IDE 1.8.9 이상 Windows10 에서 테스트는 아래 동영상을 참조해 주세요
    th-cam.com/video/Y1GWoiuE-Ls/w-d-xo.html
    Please refer to the video below for testing on Arduino IDE 1.8.9 or later on Windows 10.
    th-cam.com/video/Y1GWoiuE-Ls/w-d-xo.html

  • @rockjjy99
    @rockjjy99  5 ปีที่แล้ว

    blog.daum.net/rockjjy99/2662

  • @jarvisattavar5481
    @jarvisattavar5481 5 ปีที่แล้ว

    Great Job highly useful thank you