본문 바로가기
Arduino(아두이노) 활용 강좌

Arduino Uno 로 Arduino TFT LCD Screen (1.77인치 SPI) 모듈을 사용해 BMP 로고 출력해 보기

by 오마이엔지니어 2017. 5. 31.
반응형

Arduino Uno 로 Arduino TFT LCD Screen (1.77인치 SPI) 모듈을 사용해서 마이크로 SD카드에 저장된 BMP 파일의 아두이노 로고를 출력해 보는 프로젝트 입니다

Arduino TFT LCD Screen (Arduino 1.77 SPI LCD Module with SD)

1.77 인치 160 X 128 픽셀의 그래픽 LCD가 탑재된 SPI 방식으로 통신하는 TFT LCD 모듈입니다
모듈 자체로 아두이노 우노(Arduino Uno) 나 아두이노 레오나드로 (Arduino Leonardo) 등의 AVR 기반 마이크로 컨트롤 보드와 호환이 가능하며, Arduino Esplora 에 장착해서 사용할수 있도록 제작 되었습니다
Arduino.org 이태리 정품으로 가격은 조금 비싼편이지만 이태리 정품 답게 퀄리티가 좋습니다



<Arduino TFT LCD Screen (1.77인치 SPI) 이미지 앞면>


<Arduino TFT LCD Screen (1.77인치 SPI) 이미지 뒷면>

<Arduino TFT LCD Screen (1.77인치 SPI) 모듈 핀맵설명>

<Arduino TFT LCD Screen (1.77인치 SPI) 제품소개>

Arduino Graphic LCD (GLCD) screen 는 헤더가 장착된 백라이트 TFT LCD 스크린 입니다. GLCD 라이브러리 화면에 텍스트, 이미지, 도형등을 그릴수 있습니다 SCREEN 화면에는 비트맵 이미지를 저장할수 있으며 뒷면에는 마이크로 SD카드 슬롯이 장착 되어있습니다. SCREEN 헤더는 Arsuino Esplora의 전면에 있는 소켓에 맞게 설계되었지만 AVR 기반의 Arduino(Uno,Leonardo등)와 호환가능합니다.

The Arduino Graphic LCD (GLCD) screen is a backlit TFT LCD screen with headers. You can draw text, images, and shapes to the screen with the GLCD library. There is an onboard micro-SD card slot on the back of the screen that can, among other things, store bitmap images for the screen to display.

The screen's headers are designed to fit into the socket on the front of the Arduino Esplora, but it is compatible with any AVR-based Arduino (Uno, Leonardo, etc. Datasheet

 

The screen is 1.77" diagonal, with 160 x 128 pixel resolution. The TFT library interfaces with the screen's controller through SPI when using the TFT library. Refer to the screen's data sheet for complete details.

The screen runs on +5 VDC

The micro-SD slot is accessible through the SD card library.

The LED backlight is dimmable by PWM.

The screen's headers are laid out so it easily sockets into the Arduino Esplora and Arduino Robot.

 

You can use this module with Arduino Esplora.

More info on the Arduino product page.


사용된 부품

Arduino Uno R3 (Italy)
Arduino TFT LCD Screen (Arduino 1.77 SPI LCD Module with SD)

브래드보드
점퍼케이블

마이크로 SD카드
전위차계 10K Ohm

구성배선도




+5V:+5V
MISO:pin 12
SCK:pin 13
MOSI:pin 11
LCD CS:pin 10
SD CS:pin 4
D/C:pin 9
RESET:pin 8
BL:+5V
GND:GND


먼저 Arduino.org의 제품이므로 Arduino.org 의 IDE 로 테스트를 진행하였습니다
이태리의 Arduino.org 와 Arduino.cc 는 회사의 법적분쟁으로 인해 두개의 회사로 나뉘어 졌으며
일정부분 호환이 되는 부분이 있지만 그렇지 않은 부분도 있습니다, IDE의 기능면에서도 차이가 있습니다
(자세한 내용은 Arduino IDE 설치하기 포스팅 참조)

테스트를 하기전에 마이크로 SD카드에 "arduno.bmp" 파일이 들어 있어야 합니다
arduino.bmp 파일은 160 X 128 픽셀에 맞게 포토샵등으로 만들어서 넣어 주어도 되고
IDE가 설치된 내 컴퓨터의 C:드라이브 Program Files--->Arduino--->library--->TFT--->examples--->Arduino--->TFTBitmapLogo

폴더에 들어가서 복사해 와도 됩니다 (사이즈 편집하기 귀찮아서 위 폴더에 들어있는 파일로 마이크로 SD 카드에 넣어 주었습니다)

다음에 위 구성배선도와 같이 배선을 한후 아두이노 IDE 를 실행후 "파일--->예제--->TFT--->Arduino--->"TFTBitmapLogo"

순으로 진행하여 스케치를 업로드 해주면 됩니다

프로젝트 동영상


LCD 스크린의 기능에도 이상이 없고, 마이크로 SD카드 슬롯의 기능에도 문제가 없는것을 확인할수 있습니다
이제 Arduino TFT LCD Screen (1.77인치 SPI) 모듈을 이용해서 다양한 프로젝트를 시작해 볼수 있습니다

튜토리얼 페이지 참고

추가로 텍스를 출력해 보는 프로젝트 입니다

구성배선도



위 구성배선도와 같이 배선을 한후 아두이노 IDE 를 실행후 "파일--->예제--->TFT--->Arduino--->"TFTDisplayText"

순으로 진행하여 스케치를 업로드 해주면 됩니다

프로젝트 동영상


간단한 텍스트 출력 테스트로 전위차계를 돌리면 동영상에서도 확인할수 있듯이 Sensor Value 값이 변합니다

튜토리얼 페이지 참고

반응형

댓글