Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sensors and sensing electrical signal digital signal.

Similar presentations


Presentation on theme: "Sensors and sensing electrical signal digital signal."— Presentation transcript:

1 Sensors and sensing electrical signal digital signal

2 LEGO sensors RCX sensors NXT sensors RJ12 connector 6 wire cable 2 wire cable 2x2 plate connector

3 stimuli sensorcontrol program AD sensors Temperature Sound Light I2C sensors Ultrasonic analog quantity, e.g. light digital quantity, e.g. light % interface

4 I2C AD converter

5

6

7 Step 1 Step 2

8 RCX input portRCX touch sensor V(off) = 5 V V(on) = 5 *500/(500+10000) V = 0.24 V V(through R) = 5*R/(R+10000) Raw Value(R) = 1023 * R/(R+10000) Raw Value(500) = 1023 * 500/(500+10000) = 49 Raw Value(inf) = 1023 * inf/(inf+10000) = 1023 10 000 ohm R ohm 5 V 0 V Voltage divider

9 Passive sensors touch, temperature Active sensors light, rotation

10 Passive sensors touch, temperature Active sensors light, rotation

11

12 Raw Value(R) = 1023 * R/(R+10000) ohm 10 000 ohm R ohm 5 V 0 V

13

14 Signal-to-symbol stimuli sensorcontrol programinterface raw value resistance raw value temperature raw value on/off raw value clap raw value black/white time of flight distance

15

16

17

18

19

20

21

22

23

24 (57,28) (27,24)

25 Measured Distance = 23/cos(30) ~ 27 cm 23 cm Ialt 57 grader 27 30

26

27 Embedded Java The leJOS API classes provide access to the hardware. Especially the sensor ports and sensors: TouchSensor LightSensor UltrasonicSensor SensorPort

28

29 Interpret raw sensor value as pressed/released

30

31 Lesson 1, Line follower

32

33 Lesson 2, Tracker and Wall follower

34

35

36

37

38

39

40

41

42 AD sensors Temperature Sound Light I2C sensors Ultrasonic Compass Accelerometer RFID GPS

43 AD sensors Temperature Sound Light

44 I2C sensors Ultrasonic Compass Accelerometer RFID GPS

45 Lesson 2, Tracker and Wall follower

46


Download ppt "Sensors and sensing electrical signal digital signal."

Similar presentations


Ads by Google