Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1....

35
stimuli sensor control program response actuator stimuli sensor control program response actuator Other systems are part of the environment 2. Communicate with other syste a. Mobile robots b. Stationary computers

Transcript of Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1....

Page 1: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

stimuli

sensor control program

response

actuator

stimuli

sensor control program

response

actuator

1. Other systems are part of the environment

2. Communicate with other systemsa. Mobile robotsb. Stationary computers

Page 2: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

symbol

symbol to signal signal to symbol

symbol

wired or wireless

Page 3: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

RCX Infrared Transmitter/Receiver, IR Tower

Page 4: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

symbol 0 or 1

symbol to signal signal to symbol

symbol 0 or 1

Page 5: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

symbol 0 or 1

symbol to signal signal to symbol

symbol 0 or 1

0

26 usec

1

0

1

Page 6: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

symbol 0 or 1

symbol to signal signal to symbol

symbol 0 or 1

0

417 usec

1

0

1

2400 bit/sec

16 IR bursts

Page 7: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

symbol 0 or 1

symbol to signal signal to symbol

symbol 0 or 1

2400 bit/sec

0

1

Page 8: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

IR tower

Page 9: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

1. Sends out IR messages every 0.5 sec

2. Receives and counts IR messages

Page 10: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

1. Sends out IR messages every 0.5 sec

2. Receives and counts IR messages

Page 11: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 12: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 13: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

NXT communication

Page 14: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

NXT communication

Serial Port Profile

Page 15: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

USB 2.0

Point-to-point

Serial

Master/slave

12 M bit/sec

Four wires

Page 16: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

Bluetooth 2.0

Radio waves

Up to 10 m

3 M bit/sec

Page 17: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 18: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 19: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 20: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

Embedded Java

The leJOS API classes provide wired and wireless communication:

USB

Bluetooth

USBSend/USBReceive

BTSend/BTReceive

Page 21: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 22: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 23: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

PC NXT

USB cable

streams

outDat

inDat

dIn

dOut

USBSend USBReceive

Page 24: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 25: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

1. Establish connection

2. Set up data streams

3. Use data streams

Page 26: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

Can also use nxjpcc and nxjpc

Page 27: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

1. Establish connection

2. Set up data streams

3. Use data streams

Page 28: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

PC NXT

radiowaves

streams

dos

dis

dis

dos

BTSend BTReceive

Page 29: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

NXT to NXT wireless

Page 30: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

Situated communication

Page 31: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 32: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 33: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 34: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.
Page 35: Stimuli sensorcontrol program response actuator stimuli sensorcontrol program response actuator 1. Other systems are part of the environment 2. Communicate.

Legway