Product Brief Manual ELS-6XM Motion Sensor Processing Unit Embedded and Logic Solution elogics ์ด๋ก์ง์ค Rm607-1,DigitalEmpire,#685Gasandong,Geumcheon-gu ๋์งํธ์ ํ์ด์ด 607-1ํธ ( ์ฐ : 153-023) ์์ธํน๋ณ์๊ธ์ฒ๊ตฌ๊ฐ์ฐ๋ 685 Seoul, Korea. (Zip: 153-023) ์ ํ : (02) 2624-2573 Phone: (02) 2624-2573 ํฉ์ค : (02)2624-2575 Fax: (02)2624-2575 naaman@paran.com naaman@paran.com http://www.elogics.co.kr 1
๋ชฉ์ฐจ 1. ์ ํํน์ง... 3 1.1 STM32F CPU ํน์ง... 3 1.2 ELS-6XM(Motion Sensor Processing Unit) ํน์ง... 3 2. ์ ํ์ค๋ช ... 3 3. ELS-6X Motion Sensor Processing Unit Output (UART)... 4 3.1 UART ์ถ๋ ฅ... 4 3.2 ์ค๋ช ... 4 4. UART TX command : HOST -> ELS_6XM ๋ณด๋๋ก์ ์ก... 4 4.1 ์ด๊ธฐํ๋ฐ๋์์... 6 5. ์์ฉ๋ถ์ผ... 6 6. ๋ชจ์ ์ผ์๊ตฌ์ฑ์ฌ์ง... 7 6.1 ์ผ์๋ชจ๋... 7 6.2 ํ๋ฉด์ฌ์ง... 7 6.3 STM32F103 BLOCK DIAGRAM... 8 7. Mechanical Drawings (Top View)... 9 8. ๋ชจ๋ Block Diagram... 9 9. Pin Map... 10 10. ์ ํ๊ตฌ์ฑ... 11 ์ ๊ณต BIN ํ์ผ... 11 11. ํ๋งคํํ๋ฐ๊ฐ๊ฒฉ... 11 12. ํ๋ก๊ทธ๋จ๋ผ์ดํธ์ค๋ช ์... 11 2
1. ์ ํํน์ง 1.1 STM32F CPU ํน์ง Core: ARM 32bit Cortex-M3 CPU 72Mhz ๋์์๋,Low power MCU Memory : 128Kbyte Flash Memory, 20Kbyte SRAM 7 Timers - 3๊ฐ์ 16bit timer - 16bit motor control PWM Timer 2๊ฐ์ I2C, SPI BUS Uart 3๊ฐ (ISO7816) : Com 1 ์ฝ์ํฌํธ USB 2.0 full-speed interface 1.2 ELS-6XM(Motion Sensor Processing Unit) ํน์ง AICHI STEEL์ AMI603 6 ์ถ์ผ์ (3.0 3.0 1.1mm,www.aichikorea.com) - Motion Data ์ถ๋ ฅ (Azimuth, Roll, Pitch) - 3์ถ์ง์๊ธฐ์ผ์ (0.1667μT / LSB) - 3์ถ๊ฐ์์ผ์ (1 milli-gravity / LSB) - Pedometer( ๋ง๋ณด๊ธฐ ) ๋ด์ฅ. (Operating Current: 0.3 ma at Walking, 0.13 ma at Stop) ์ด์ํ์ฌ์ด์ฆ (20.5mm x 13.3mm) 2.54mm ํ๊ฐ๊ฒฉ์ด๋ฏ๋ก๋ง๋ฅ๊ธฐํ์์ฅ์ฐฉ๊ฐ๋ฅ TTL UART ํต์ ํฌํธ์ ๊ณต (TTL 3.3V :TXD,RXD) ), Base ๋ณด๋ : rs232 ์ ์ถ๋ ฅ์ ํ ํ๋ก๊ทธ๋จ๋ผ์ดํธํ์ฌ์ฉ SPI1ํฌํธ์ ๊ณต ์ํ LED ๋ชจ์ ์ผ์์๊ณ ๋ฆฌ์ฆ์ฅ์ฐฉ (Yaw, Roll, Pitch ์ถ๋ ฅ ) ๋ชจ๋๋์์ ์ 3.3V, Low Power Micom ์ฌ์ฉ์ (1.8V ~ 3.3V) Base ๋ณด๋ํฌํจ์๋น์ ๋ฅ : ๋์์ 5V 30mA, Rom ์ฝ๋๋ด์ฅ 2. ์ ํ์ค๋ช ELS-6XM(Motion Sensor Processing Unit) ์ AICHI STEEL AMI603 6์ถ์ผ์๋ฅผ์ด์ฉํ๋ฐฉ์๊ฐ, ํ์ ๊ฐ๋ฑ์์ธก์ ํ ์์๋์ผ์๋ณด๋์ ๋๋ค. ๊ธฐ์กด์์ ํ์์ผ์์์ raw๋ฐ์ดํฐ๋ฅผ์ง์ ์์ ํ์ฌ์์ฉํ๋ก๊ทธ๋จ์ด์๊ณ ๋ฆฌ์ฆ์์ ์ฉํ๋๋ฐ๋ฐํด์ด์ ํ์์์ฒด์ 32bit ๋ง์ด์ปด์ด๋ด์ฅ๋์ด์๊ธฐ๋๋ฌธ์๋ณต์กํ์๊ณ ๋ฆฌ์ฆ์์์ฒด์ ์ผ๋ก์ฒ๋ฆฌํ๊ณ ์์ต๋๋ค. ๋ฐ๋ผ์ Host๋์์ฉ๋ง์ด์ปด์์์ฒ๋ฆฌ๋๊ฒฐ๊ณผ๊ฐ๋ง์์ ํ์ฌ์ค์ ์ ํ์๋ถํ์์ด์ฌ์ฉํ๋๋ฐ์ฅ์ ์ด์์ต๋๋ค. 3
3. ELS-6XM Motion Sensor Processing Unit Output (UART) 3.1 UART ์ถ๋ ฅ Azimuth(Yaw)*100, Roll*100, Pitch*100, Accurcy, Mag X*100, Mag Y*100, Mag Z*100, Acc X*100, Acc Y*100, Acc Z*100, Pedo Count, Pedo Time, Pedo State. 3.2 ์ค๋ช Azimuth(Yaw) : 0 ~ 359๋, ๋ฐฉ์๊ฐ, Device์ Z์ถํ์ ๊ฐ. Roll : -90 ~ 90๋, Device์ Y์ถํ์ ๊ฐ. Pitch : -180 ~ 180๋, Device์ X์ถํ์ ๊ฐ. Accurcy : ๋ฐฉ์์ ํ๋ 0~3, 0 : lowest, 3 : highest. Mag X, Y, Z : ๊ฐ์ถ์์์ฅ๊ฐ, ๋ง์ดํฌ๋กํ ์ฌ๋ผ (ut) ACC X, Y, Z : ๊ฐ์ถ์๊ฐ์๋๊ฐ, ๋ฏธํฐํผ์ํฌ์์น (m/s^2) Pedo Count : Pedometer ๋ณดํ Count ๊ฐ Pedo Time : Pedometer ๋ณดํ์๊ฐ Pedo State : Pedometer state ๊ฐ, 0 : stop, 1 : walking check, 2 : walking. 4. UART TX command : HOST -> ELS_6XM ๋ณด๋๋ก์ ์ก Port setting - Bit/sec. : 115200 - Data bit : 8 - Parity : None - Stop bit : 1 - Flow control : None - Linefeed code : CR mes [mode] [speed] : Start the measurement cycle. - mode : sensor active mode 0: Stop 1: Force active (Host measurement mode, Orientation, Magnetometer, Accelerometer start). Speed is free to set. 2: Normal active (Sensor measurement mode, Orientation, Magnetometer, Accelerometer start). Speed can be 4, 20, 40, 80, 100 3: Normal active (Orientation, Magnetometer, Accelerometer, Pedometer start). Speed can be 20, 40. 4: Normal active (Pedometer start). Speed can be 40. - Speed : sensor measurement speed. 4
Z Y dis [display_mode] - display_mode : bit operation of Orientation, Magnetometer, Accelerometer, Pedometer. It cannot be 0. display_mode & 0x08 is set : Orientation enable. display_mode & 0x04 is set : Magnetometer enable. display_mode & 0x02 is set : Accelerometer enable. display_mode & 0x01 is set : Pedometer enable. dir [direction] [polarity] - Set AMI603 sensor direction & polarity. If no parameter typed, it shows current setting values of direction & polarity. - sensor direction Bit 7 6 5 4 3 2 1 0 ์ค๋ช - - ๊ธฐ๊ธฐ X ์ถ๊ธฐ๊ธฐ Y ์ถ๊ธฐ๊ธฐ Z ์ถ ์ถ Bit 1 Bit 0 X 0 0 Y 0 1 Z 1 0 - sensor polarity ์ ๋ฐฉํฅ์ด๋ผ๋ฉด 1, ์ญ๋ฐฉํฅ์ด๋ผ๋ฉด 0 ์์ค์ ํ๋ค. Bit 7 6 5 4 3 2 1 0 X ์ค๋ช - - - - - ์ถ๊ทน์ฑ ์ถ๊ทน์ฑ ์ถ๊ทน์ฑ fil [filter_mode] - Set sensor S/W filter level. - filter_mode : 0 -> weak filter, 1 -> strong filter, 0 -> no filter. Pdc [pedometer_mode] - 0: disable, 1: enable 2: clear pedometer count, time, and state. pdd - get pedometer data(count, time, and state). 5
4.1 ์ด๊ธฐํ๋ฐ๋์์. Power On. - AMI603 Start dir 18 5 - dir OK: fil 0 - fil OK: dis 15 - dis OK: mes 3 20 - mes 2196-138 257 3-1593 4320-3392 -23-44 980 34 20 2 5. ์์ฉ๋ถ์ผ Sensor Network ์์น์ ์ด ๋ฌด์ ์กฐ์ข ๊ธฐ ๋์งํธ๋์นจ๋ฐ ๋ณดํ์๋ค๋น๊ฒ์ด์ ๊ณต์ค๋ฌด์ ๋ง์ฐ์ค ํด๋จผ๋ ธ์ด๋์ปจํธ๋กค๋ฌ ๋ง๋ณด๊ธฐ, ์นผ๋ก๋ฆฌ๊ณ์ฐ๊ธฐ๋ฑ. 6
6. ๋ชจ์ ์ผ์๊ตฌ์ฑ์ฌ์ง 6.1 ์ผ์๋ชจ๋ 6.2 ํ๋ฉด์ฌ์ง 7
6.3 STM32F103 BLOCK DIAGRAM 8
7. Mechanical Drawings (Top View) - ๋ง๋ฅ๊ธฐํ๊ฐ๊ฒฉ J2 J1 1 2 3 4 5 1 2 3 4 5 20.5mm 8. ๋ชจ๋ Block Diagram J2 J1 1 2 1 2 2.5mm 13.3mm 3 MCU 6X 3 4 4 5 5 20.5mm 9
9. Pin Map 10 Pin(J1,J2) ๋ชจ๋ํ๋งต ํ 1. 10Pin ๋ชจ๋ Pin InPUT/ Description Pin InPUT/ Description Number J2 Number J1 1 SPI CS SPI_CS 1 VCC 3.3V ์ ์ 2 SPI_SCK NF_SCLK 2 GND Ground 3 SPI_MISO NF_MISO 3 SW ํ๋ก๊ทธ๋จ sw 4 SPI_MOSI NF_MOSI 4 RX UART RX 5 IRQ_REQ IRQ 5 TX UART TX 10
10. ์ ํ๊ตฌ์ฑ ๊ตฌ๋ถ ์๋ ๋น๊ณ ELS-6XM( ๋ชจ์ ์ผ์์ ๋ํธ๋ชจ๋ ) 1 ํ๋งค ์ ํ์ค๋ช ์ 1 ์ ๊ณต์์ค Windows ์์ฉํ๋ก๊ทธ๋จ ( ์คํํ์ผ ) 1 ์ ๊ณต BIN ํ์ผ 1 11. ํ๋งคํํ๋ฐ๊ฐ๊ฒฉ ์ ํ๋ชจ๋์ ๊ณต์์ค : windows app test ํ๋ก๊ทธ๋จ์์ค, ๋ชจ๋ ROM FILE 12. ํ์จ์ดํ๋ก๊ทธ๋จ๋ผ์ดํธ์ค๋ช ์ ๋ณธ์ ํ์์ ํ์ถํ์ BINํ์ผ์ด๋ผ์ดํธ๋์ด์์, ํ ์คํธ OK ์ฌ์ฉ์๊ฐ BIN๋ฅผ์ง์ ๋ผ์ดํธ์์๋์ฐธ์กฐํ์ธ์.(BIN File: www.elogics.co.kr) Els-6XM : Flash Program Loader ์ค์นํ๊ธฐ http://www.elogics.co.kr/bbs/board.php?bo_table=product&bbs_id=395์์ Flash_loader.zip ํ์ผ์๋ค์ด๋ก๋ํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ์์ถํ๋ก๊ทธ๋จ์ํด์ ํํ๋ก๊ทธ๋จ์์ค์น๋ฅผํฉ๋๋ค. ELS-6XM Module์์ด์ฉํ์ฌ Jtag Tool ์์ด flash downloading ํ๊ธฐํ 2. Els-6x Program Switch state Peripheral ์ค์ ์ํ๊ตฌ๋ถ Description User SW 1 Off Status LED On /Off Terminal Client ์ค๋น ์์ ์ด์ ํธํ๋ Serial terminal client ๋ฅผ์ค๋นํ์ฌ์๋์๊ฐ์ด els-6xm ์์ฐ๊ฒฐํ๋ค. ์ ์์ธ๊ฐ Els-6XM Module๋๋ชจ๋ SW1์๋๋ฅธ๋ค์, ์ ์์์ธ๊ฐํ๋ฉด์๋ถํ ํ๋ฉด Serial Flash Download ๋ชจ๋๋ก๋ถํ ํ๋ค.( ๋จ์ด๋ชจ๋์์๋ J1 1๋ฒํ๊ณผ 3๋ฒํ์์ ์ํ๋ฉด๋๋ค.) ST ์ Flash Loader Demo ํ๋ก๊ทธ๋จ์์คํํ๋ค. 11
ํ๋ก๊ทธ๋จ์คํํ NEXT ๋ฒํผ์๋๋ฅธ๋ค. NEXT ๋ฒํผ์๋๋ฅธ๋ค. Downloading ํ hex ํ์ผ์์ ํํ jump to the user program check ํ Next ํ๋ค. 12
์ฑ๊ณต๋๋ฉด์๋์๊ฐ์ํ๋ฉด์ดํ์๋๋ค. 13