workshop:uart
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
workshop:uart [2012/08/13 14:32] – donghee | workshop:uart [2018/07/18 14:10] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
UART(Universal Asynchronous Receiver/ | UART(Universal Asynchronous Receiver/ | ||
- | 시간 클럭 정보가 없는 비동기식 | + | 시간 클럭 정보가 없는 비동기식 |
- | {{http:// | + | 그럼 클럭 정보 없이 데이터를 어떻게 |
- | 속도 설정가능하고 데이터포맷 | + | {{http:// |
+ | |||
+ | 시작(start bit)과 끝(stop bit) 신호가 있고 그 사이를 일정 시간으로 잘라서 데이터의 비트를 구분한다. | ||
+ | |||
+ | UART는 통신의 | ||
| | ||
- | 컴퓨터와 RS232를 통해서 통신을 해보자. | + | |
+ | ====== 컴퓨터와 RS232 통신 ====== | ||
+ | 컴퓨터와 RS232를 통해서 통신을 해보자. | ||
==== Python 설치 ==== | ==== Python 설치 ==== | ||
* Python 2.7.3 http:// | * Python 2.7.3 http:// | ||
* Pyserial Win32 (pyserial-2.5.win32.exe) google에서 pyserial win32 검색 | * Pyserial Win32 (pyserial-2.5.win32.exe) google에서 pyserial win32 검색 | ||
- | + | * 빠른 다운로드 | |
- | {{http://i.imgur.com/1wwVJ.png}} | + | |
==== arduino code ==== | ==== arduino code ==== | ||
Line 31: | Line 38: | ||
value = Serial.read(); | value = Serial.read(); | ||
if (value == ' | if (value == ' | ||
- | | + | |
} else { | } else { | ||
- | | + | |
} | } | ||
} | } |
workshop/uart.1344868328.txt.gz · Last modified: 2018/07/18 14:09 (external edit)