User Tools

Site Tools


workshop:통신

This is an old revision of the document!


컴퓨터와 통신 하기 RS232

Rs232

Python 설치

arduino code

pyserial

pyserial을 설치하고, 파이썬 인터프리터에서 다음과 같이 입력해보자. 어떻게 될지 예상해보자.

import_serial_s_serial.serial_dev_ttyusb0_s.write_1_1_s.write_0_1}

python gui button

WS2801

LED 드라이버

회로도

Time

클럭이_high일때_데이터를_적용_latch_한다}

여러개 보낼경우. 이어서 보낸다.

delaymicroseconds_500}

I2C

I2C 직렬 컴퓨터 버스 주변기기를 연결하기 위해 사용된다.

데이터와 클럭은 pull-up

Time

실제 실험 해보기 24LC256

arduino i2c 관련 핀

  • Analog4 - SDA
  • Analog5 - SCL

Time

workshop}

master가 slave에 데이터를 보낸다.

master가 slave의 데이터를 읽는다.

workshop/통신.1344866429.txt.gz · Last modified: 2018/07/18 14:09 (external edit)