2019년 사물인터넷(IoT) 6일 완성



아두이노 39종 스타터키트

  • Raspberry Pi 2 Model B V1.1
  • Arduino UNO
    • SRAM : 2 KB (동적 메모리 공간)
    • Program Memrory : 32 KB

Arduino - VSCode 개발 환경 구성

  • Extension에서 Arduino 0.2.28 설치
    • C/C++ 0.26.1 설치
  • "Ctrl_,"(설정)에서 "확장 > Arduino configuration" 메뉴를 선택 한다.
    • Arduino: Command Path에 "C:\Program Files (x86)\Arduino"를 설정 한다.
  • Ctrl_Shift_P 선택 후 "arduino: Examples"를 입력 한다.
    • "Built-in Examples > 01. Basics > Blink" 메뉴를 선택 한다.
  • Ctrl_Shift_P 선택 후 "arduino: Board Config"를 입력 한다.
    • Arduino UNO와 PC를 USB로 연결 한다.
    • "Selected Board"로 "Arduino/Genuino Uno (Arduino AVR Boards)"를 선택 한다.
  • Ctrl_Shift_P 선택 후 "arduino: Select Serial Port"를 입력 한다.
    • 목록에서 사용할 Serial Port를 선택한다.
    • Windows에서 "장치관리자 > 포트(COM & LPT)"에 Arduino의 port가 표시 된다.
  • ~.ino 소스 처리
    • "Ctrl_Alt_U"를 선택하며 소스를 Arduino로 업로드 한다.

개발 환경 구성

apt  -y  install  python3  python3-dev  python3-setuptools  python3-rpi.gpio
 
#--- WiringPi 설치
cd  /work/install
apt  -y  install  git
git  clone  https://github.com/WiringPi/WiringPi.git
cd  WiringPi
./build

cd  ..
curl  https://bootstrap.pypa.io/get-pip.py  -o  get-pip.py
python  get-pip.py
pip3  install  wiringpi2

gpio  readall

용어 사전

  • MPU (Micro Processor Unit, uP)
    • ALU
    • Control Unit
    • Register Array
    • Memory Unit
  • AP (Application Processor)
  • MCU (Micro Controller Unit)
    • CPU (Central Processing Unit)
    • Memory (RAM & ROM)
    • I/O Ports
    • ADC (Analog to Digital Converter)
    • DAC (Digial to Analog Converter)
    • Timers/Counters
    • Interrupts
    • Serial Communication
최종 수정일: 2022-10-24 19:17:33

이전글 :
다음글 :
상단 menu
arrow_back_ios
arrow_forward_ios