LEGO MINDSTORMS NXT Bluetooth Developer Kit.pdf

(960 KB) Pobierz
Microsoft Word - LEGO MINDSTORMS NXT Bluetooth Developer Kit.doc
fuy~J A>@@
]VX` ¸ ^ Z_U de`c ^ d ¸ _ie
S}vy ¸ U vv}v \z
\UW _ · ] Y^ Tcd_ b ] c · ^ hd R|ux · Tuu|u [y
\UW _ < xu \UW _ |w< ] Y^ Tcd_ b ] c q~t xu ] Y^ Tcd_ b ] c |w qu qtu} q{ v xu \UW _ W
©B@@F dxu \UW _ W
_ xu ts q~t s} q~ ~q} u |yut qu qtu} q{ qtu ~q} u v xuy uusyu s} q~yu>
190134878.003.png
fuy~J A>@@
eR S]V `W T `_eV_ed
TABLE OF CONTENTS ......................................................................................................2
HARDWARE SPECIFICATION FOR THE NXT BRICK......................................................3
BLUETOOTH ® FUNCTIONALITY WITHIN THE NXT .........................................................4
Bluetooth functionality within the NXT Brick ........................................................................................................... 4
INTERFACING WITH THE BLUECORE TM CHIP ................................................................6
UART interface between the ARM7 and the BlueCore TM chip .................................................................................. 7
BLUETOOTH ® DEVICES COMMUNICATING WITH THE NXT..........................................8
Bluetooth ® communication with LEGO ® MINDSTORMS ® NXT programs .......................................................... 8
Sending Bluetooth ® data to external Bluetooth devices ............................................................................................. 8
Reading Bluetooth ® data from external Bluetooth devices......................................................................................... 9
APPENDIX ........................................................................................................................10
\UW _ · ] Y^ Tcd_ b ] c · ^ hd R|ux · Tuu|u [y
¸ B@@F dxu \UW _ W
B
190134878.004.png
fuy~J A>@@
Y R c Uh R cV daVT ZWZT ReZ`_ W`c eY V _ie ScZT \
The LEGO ® MINDSTORMS ® NXT brick uses various advanced electronics to yield its broad functionality. For details
on the hardware functionality of the LEGO ® MINDSTORMS ® NXT, see the LEGO MINDSTORMS NXT Hardware
Developer Kit document.
Here is a summary list of hardware specifications for the NXT brick:
Main processor:
Atmel ® 32-bit ARM ® processor, AT91SAM7S256
- 256 KB FLASH
- 64 KB RAM
- 48 MHz
Co-processor:
Atmel ® 8-bit AVR processor, ATmega48
- 4 KB FLASH
- 512 Byte RAM
- 8 MHz
Bluetooth wireless communication
CSR BlueCore TM 4 v2.0 +EDR System
- Supporting the Serial Port Profile (SPP)
- Internal 47 KByte RAM
- External 8 MBit FLASH
- 26 MHz
USB 2.0 communication
Full speed port (12 Mbit/s)
4 input ports
- 1 high-speed port, IEC 61158 Type 4/EN 50170 compliant
3 output ports
6-wire interface supporting input from encoders
Display
100 x 64 pixel LCD black & white graphical display
Loudspeaker
Sound output channel with 8-bit resolution
- Supporting sample rate 2-16 KHz
4 button user-interface
Rubber buttons
Power source
6 AA batteries
- Recommend alkaline batteries
- Rechargeable Lithium-Ion battery 1400 mAH is available
Connector
6-wire industrial-standard connector, RJ12 Right side adjustment
\UW _ · ] Y^ Tcd_ b ] c · ^ hd R|ux · Tuu|u [y
¸ B@@F dxu \UW _ W
C
6-wire interface supporting both digital and analog interface
- View area 26 x 40.6 mm
190134878.005.png
fuy~J A>@@
S]fVe``eY ¸ Wf_T eZ`_R]Zej h ZeY Z_ eY V _ie
dxu ^ hd rys{ yu|u s} } ~ysqy~ y~w R|ux · r y~s|ty~w q S cb R|uS u d] D
uy~ B sxy> dxu ^ hd rys{ sq~ ru s~~usut yu|u| xuu xu tuysu q xu q} u y} u r
sq~ ~| s} } ~ysqu yx ~u tuysu q q y} u> dxy v~sy~q|y xq ruu~ y} |u} u~ut y~w xu
cuyq| ` `vy|u 8c``9< xysx sq~ ru s~ytuut q yu|u uyq| > dxu ^ hd rys{ sq~ s} } ~y=
squ yx R|ux tuysu xq sq~ ru wq} } ut s} } ~ysqu y~w xu \UW _ · ] Y^ Tcd_ b] c ·
^ hd S } } ~ysqy~ `s| s} } q~t q~t xq xu cuyq| ` `vy|u 8c``9> Yä yr|u
u~t wq} q~t ~t vy|u ru uu~ ^ hd rys{ q~t u yu|u s} } ~ysqy~ u~t q~t
usuyu y~v} qy~ ru uu~ rys{ ty~w wq} uusy~> d utsu xu u s~} y~ ut
r R|ux< xu usx~|w xq ruu~ y} |u} u~ut q q R|ux · S |q YY tuysu< xysx } uq~ xq y
sq~ s} } ~ysqu q tyq~su v qy} qu| A@ } uu>
S]fVe``eY Wf_T eZ`_R ]Zej h ZeY Z_ eY V _ie Sc ZT \
dxu R|ux v~sy~q|y yxy~ xu ^ hd rys{ y u q q } qu?|qu s} } ~ysqy~ sxq~~u|>
dxy } uq~ xq ~u ^ hd yxy~ xu ~u { ~uut v~sy~ q xu } qu tuysu q~t xq xu ^ hd
rys{ s} } ~ysqu xwx y yv xu ~uut > dxu vywu ru| x xysx ^ hd tuysu sq~
s} } ~ysqu tyus| yxy~ q ~u {>
Figure 1: Illustrating 4 NXTs communicating using Bluetooth ®
Q x ~ y~ xu vywu qru< xu ] QcdUb ^ hd sq~ ru s~~usut xuu xu R|ux tuysu q
xu q} u y} u> dxu ] QcdUb ^ hd sq~ ~| s} } ~ysqu yx ~u v xu c\QfU tuysu ty~w q wyu~
} } u~< } uq~y~w xq yv xu ] QcdUb ^ hd y s} } ~ysqy~w yx ^ hd c\QfU A q~t ^ hd c\QfU C q
u~ty~w tqq xu ] QcdUb ^ hd< xu ] QcdUb ^ hd y|| ~ uq|qu xu usuyut tqq ~y| y ysxu
^ hd c\QfU C>
Q~ ^ hd y ~ qr|u v~sy~ q rx q ] QcdUb q~t c\QfU tuysu q xu q} u y} u rusqu xy
s|t squ | tqq ru uu~ ^ hd tuysu> dxy v~sy~q|y 8y>u>< uy~w q q } qu q~t |qu
tuysu q xu q} u y} u9 xq ruu~ tyqr|ut y~ xu q~tqt \UW _ ] Y^ Tcd_ b ] c ^ hd vy} qu>
\UW _ · ] Y^ Tcd_ b ] c · ^ hd R|ux · Tuu|u [y
¸ B@@F dxu \UW _ W
D
190134878.006.png 190134878.001.png
fuy~J A>@@
S ~~usy~ xu R|ux tuysu ss xwx sxq~~u|> dxu ^ hd xq v s~~usy~
sxq~~u| ut v R|ux s} } ~ysqy~> S xq~~u| @ y q| q ut r c\QfU ^ hd tuysu y~
s} } ~ysqy~w yx xu ] QcdUb ^ hd 8y>u>< towards xu ] QcdUb ^ hd9 xy|u sxq~~u| A< B q~t C qu ut
v wy~w s} } ~ysqy~ from xu ] QcdUb tuysu xu c\QfU tuysu>
Y~ vywu A qru< ^ hd ] QcdUb y|| u s} } ~ysqy~ sxq~~u| A< B q~t C xu~ s} } ~ysqy~w
uusyu| yx ^ hd c\QfUA< ^ hd c\QfU B q~t ^ hd c\QfU C> g xu~ ~u v xu ^ hd c\QfU
s} } ~ysqu yx xu ^ hd ] QcdUb < y y|| u s} } ~ysqy~ sxq~~u| @>
\UW _ · ] Y^ Tcd_ b ] c · ^ hd R|ux · Tuu|u [y
¸ B@@F dxu \UW _ W
E
190134878.002.png
Zgłoś jeśli naruszono regulamin