workshop:통신
This is an old revision of the document!
Table of Contents
IC와 통신 하기
1. UART 2.
Uart 통신
컴퓨터와 Uart를 통해서 통신을 해보자. UART 디버깅 할때 유용함.
Python 설치
- Python 2.7.3 http://python.org/download/
- Pyserial Win32 (pyserial-2.5.win32.exe) google에서 pyserial win32 검색
arduino code
pyserial
pyserial을 설치하고, 파이썬 인터프리터에서 다음과 같이 입력해보자. 어떻게 될지 예상해보자.
import_serial_s_serial.serial_dev_ttyusb0_s.write_1_1_s.write_0_1}
python gui button
WS2801
I2C
I2C직렬 컴퓨터 버스주변기기를 연결하기 위해 사용된다.
데이터와 클럭은 pull-up
Time
실제 실험 해보기 24LC256
arduino i2c 관련 핀
- Analog4 - SDA
- Analog5 - SCL
Time
master가 slave에 데이터를 보낸다.
master가 slave의 데이터를 읽는다.
workshop/통신.1344866585.txt.gz · Last modified: 2018/07/18 14:09 (external edit)