본문 바로가기

[아두이노] USB HOST SHIELD 구매

by rudals.kim 2021. 1. 4. 댓글 개
반응형

아두이노에서 USB HOST 기능을 사용하기 위해 USB HOST SHIELD를 구매하였습니다.

아래와 같은 모양을 하고 있습니다.

MAX3421(USB Peripheral/Host Controller with SPI Interface)을 사용하며 아두이노와 SPI로 인터페이스됩니다.

관련 자료는 아래 사이트를 참고 하시기 바랍니다.

 

Arduino USB Host Shield project landing page « Circuits@Home

Projects USB Host Shield USB Host Shield is an inexpensive ( $25 for the full-sized board and $20 for the Mini variant ) development board designed to be used in embedded applications which require USB Host functionality. The board supports USB 2.0 full/lo

chome.nerpa.tech

 

USB Host Shield 2.0: USB Host Library Rev. 2.0

The code is released under the GNU General Public License. Summary This is Revision 2.0 of MAX3421E-based USB Host Shield Library for AVR's. Project main web site is: https://chome.nerpa.tech/arduino_usb_host_shield_projects/. Some information can also be

felis.github.io

우선 제공되는 예제중 ArudinoBlinkLED를 실행 해 봤습니다.

아래 주석에도 있다시피 아두이노 우노에서 D13핀이 SPI의 SCK핀으로 사용되니 다른핀으로 사용하라고 적혀있습니다. 그래서 저는 8번핀으로 수정하였습니다.

업로드 후 USB HOST와 핸드폰을 케이블로 연결시키면 아래와 같은 화면이 나옵니다.

보기를 클릭하면 웹브라우저가 동작되고, 해당 ArduinoBlinkLED.apk를 다운로드 받습니다.

다운로드 받은 ArudinoBlinkLED.apk를 기기에 설치합니다.

설치한 앱을 실행 시키면 아래와 같이 동작되며 가운데 버튼을 누르면 연결된 붉은색 LED가 ON/OFF됩니다.

아래는 테스트 영상입니다.

 

반응형

댓글