pI 9

Raspberry Pi

- 라즈베리 파이는 영국 기반 비영리 단체인 라즈베리 파이 재단에서 2012년에 처음 소개- 소형 컴퓨터로, 개인용 컴퓨팅, 교육 및 다양한 프로젝트에 활용되는 하드웨어 플랫폼https://www.raspberrypi.com/ Raspberry PiFrom industries large and small, to the kitchen table tinkerer, to the classroom coder, we make computing accessible and affordable for everybody.www.raspberrypi.com 라즈베리 파이는 작은 사이즈에 저렴한 가격으로, 프로세서, 메모리, 입력/출력 포트 및 다양한 연결 인터페이스를 지원함. 일반적으로 리눅스 기반의 운영체제인 Raspb..

Raspberry Pi/Pi4 2025.03.19

Raspberry pi CM4 - EEPROM Bootloader

1. Raspberry Pi Compute Module 4(이하 CM4)의 EEPROM 부트로더 개요- CM4에는 EEPROM이 내장되어 있으며, 이 EEPROM에는 부트로더(Bootloader)가 저장됨- CM4는 EEPROM에 저장된 부트로더를 실행하여 운영체제를 로드 2. CM4의 부트 과정CM4의 부팅 과정은 다음과 같음(1). EEPROM에서 부트로더 실행- CM4는 부팅 시 SPI EEPROM에서 부트로더를 로드하고 실행- 이 부트로더는 Raspberry Pi 재단에서 제공하며, 펌웨어 업데이트를 통해 변경할 수 있음 (2). 부팅 소스 확인 (3). 부트로더는 설정된 부팅 순서(BOOT_ORDER)에 따라 가능한 부팅 장치를 검색기본적인 부팅 순서는 다음과 같습니다:- eMMC (또는 SD ..

Raspberry Pi/CM4 2025.03.19

Raspberry Pi CM4 - 크로스 컴파일 환경 구축(1)

TargetBoardRaspberry Pi CM4 + IO BoardHostPC - Window목표Raspberry Pi CM4 - 크로스 컴파일 환경 구축(1) Raspberry Pi CM4 구동1. Raspberry Pi Imager 설치2. Boot 프로그램 설치3. rpiboot 실행4. CM4에 Image Write5. 구동 확인Raspberry Pi CM4 구동 1. Raspberry Pi Imager 설치https://www.raspberrypi.com/software/ Raspberry Pi OS – Raspberry PiFrom industries large and small, to the kitchen table tinkerer, to the classroom coder, we make..

Raspberry Pi/CM4 2025.03.19

Raspberry Pi4 - YOCTO 개발 환경 구축 및 확인(2)

TargetBoardRaspberry Pi4HostPC - Ubuntu 22.04목표Raspberry Pi4 - YOCTO 개발 환경 구축 및 확인(2) Raspberry image build1. 외부 레이어 추가2. 빌드 환경 준비3. 빌드4. Raspberry에서 구동 확인 1. 빌드 환경 설정PC $ source oe-init-build-env build-rpi  2-1. 필요한 레이어 다운로드PC $ cd ~/home/your yocto directory/yocto  2-2. open-Embedded 소스 코드를 다운로드PC $ git clone git://git.openembedded.org/meta-openembedded - b dunfell  2-3. git clone으로 raspberryp..

Raspberry Pi/YOCTO 2025.03.19

Raspberry Pi4 - YOCTO 개발 환경 구축(1)

TargetBoardRaspberry Pi4HostPC - Ubuntu 22.04목표Raspberry Pi4 - YOCTO 개발 환경 구축(1) Yocto image build1. 사전 준비2. Poky 시스템3. 빌드 환경 준비4. QEMU에서 이미지 실행 Cross Compile?- 임베디드 시스템은 매우 제한된 리소스를 가지고 있어 S/W 개발은 호스트 시스템에서 이루어져야 한다.- Host System의 프로세서와 Embedded System의 프로세서가 서로 다르기 때문에 Host System의 컴파일러로 Embedded의 S/W를 컴파일 할 수 없다.- 따라서 호스트 시스템에서 작성된 프로그램을 임베디드 시스템에서 수행시키기 위해서는 cross compiler(교차 컴파일러)가 필요하다. bi..

Raspberry Pi/YOCTO 2025.03.19

Raspberry Pi4 - Flutter 개발 환경 구축 확인(3)

TargetBoardRaspberry Pi4HostPC - Ubuntu 22.04목표Raspberry Pi4 - Flutter 개발 환경 구축 확인(3) 4. Linux PC- raspberry_test 예제 파일 생성PC $ flutteer create raspberry_test - build raspberry_testPC $ cd raspberry test/ PC $ flutterpi_tool build --arch=arm64 --release - 생성된 file raspberry로 복사PC $ rsync -a --info=progress2 ./build/flutter_assets/ id@xxx.xxx.xxx.xxx:/home/pi/dev/raspberry_test - 실행 하여 동작 확인pi $ f..

Raspberry Pi4 - Flutter 개발 환경 구축(2)

TargetBoardRaspberry Pi4HostPC - Ubuntu 22.04목표Raspberry Pi4 - Flutter 개발 환경 구축(2)2. PC2-1. 아래 링크에서 Raspberry Pi Imager 다운로드 및 설치https://www.raspberrypi.com/software/ Raspberry Pi OS – Raspberry PiFrom industries large and small, to the kitchen table tinkerer, to the classroom coder, we make computing accessible and affordable for everybody.www.raspberrypi.com 2-2. Raspberry Pi Imager로 64bit OS ..

Raspberry Pi4 - Flutter 개발 환경 구축(1)

TargetBoardRaspberry Pi4HostPC - Ubuntu 22.04목표Raspberry Pi4 - Flutter 개발 환경 구축(1)Qt?- 주로 사용되는 UI 프레임워크임- Qt는 다양한 플랫폼을 지원하고, 강력한 기능을 제공하며, 개발이 쉬움- 상업용으로 Qt를 사용할 경우, Qt Commercial 라이센스를 구매하며 비용이 매우 비쌈- Qt 오픈 소스 버전을 사용하지만 한계에 다다름- Qt의 라이센스 비용이 부담스러워 지면서 Flutter가 대안으로 떠오름 Flutter?- 구글에서 개발한 UI 오픈 소스 크로스 플랫폼 개발 프레임워크- Android, iOS, Web, Desktop 등 다양한 플랫폼을 지원하며, Dart 언어를 사용 https://flutter.dev/ Flutt..

SENSOR - Photo Interrupters(포토 인터럽터)

SensorPhoto Interrupter목표Photo Interrupter의 개요와 사용법에 대해 알아봄 1. Photo Interrupters- 발광 다이오드와 포토 트랜지스터를 조합한 것으로, 발광 다이오드가 내뿜는 빛을 포토 트랜지스터가 수광해서 트랜지스터를 작동시키는 반도체 소자- 포토 트랜지스터에 빛이 들어오거나 안 들어 오는것으로 동작 유무를 알 수 있음- 아래는 KODENSHI(광전자) SG220 기준으로 설명 합니다. 2. Dimensions- 보통 아래의 모양. Gap은 3mm, Slit(빛이 들어가는 부분)은 0.25mm이다. - slit이 가릴때 빛의 변화량이 어떤지 스펙시트에 표기되있다.3. Specifications(1) Maximum Ratings (2) Electro-Opti..