You are on page 1of 3

Nama: Ramdan

NIM: 18010040

Chapter 2: Exercises/Tasks.

2. Give example a tactile sensor on a robot and explain its principle.


Answer:
A typical example is a tactile sensor on a robot, for example using a microswitch.
 The basic principle of tactile sensors is the change of electrical resistance under pressure
for a material placed between two electrodes or in touch with two electrodes placed at
one side of the material.

4. Explain the principle of the encoder.


Answer:
Encoders are normally digital displacement transducers, consisting of a mechanical
element and a sensing head, typically of optical type. The mechanical element can be a disc
(for rotary type encoders) or a ruler (for linear type encoders) with deposited or carved
patterns. The sensing head includes a light source (LED) and a light sensor (photo detector)
to read the generated code (the encoder output).

6. Why the most encoders are equipped with two sensors?


Answer:
Encoders are electromechanical devices used for sensing in myriad applications-on motors
paired with drives and automated machinery for everything from consumer electronics,
elevators, and conveyor speed monitoring to position control on automated industrial
machines and robotics. They track the turning of motor shafts to generate digital position
and motion information. Whether incremental or absolute, magnetic or optical, rotary
encoders track motor shaft rotation to generate digital position and motion
information. Their use proliferates in industrial and commercial designs.

8. What are the using of gyroscope, accelerometer, and compass sensor in autonomous
robots?
Answer:
Gyroscope:
 Several manufacturers of gyroscopes available for model airplanes and helicopters.
 These modules are meant to be connected between the receiver and a servo actuator, so
they have a PWM input and a PWM output.
 In normal operation, the PWM input signal from the receiver is modified according to
the measured rotation about the gyroscope’s axis, and a PWM signal is produced at the
sensor’s output, in order to compensate for the angular rotation.
Accelerometer:
 The accelerometer measuring a single or two axes at once, sensor output is either analog
or a PWM signal that needs to be measured and translated back into a binary value by
the CPU’s timing processing unit.
 The acceleration sensors were quite sensitive to positional noise (for example servo jitter
in walking robots), so that we used additional low-pass filters for the analog sensor
output or digital filtering for the digital sensor output.
Compass Sensor:
 A compass is a very useful sensor in many mobile robot applications, especially self-
localization.
 An autonomous robot has to rely (menyandarkan) on its on-board sensors in order to
keep track of its current position and orientation.
 The standard method for achieving this in a driving robot is to use shaft encoders on
each wheel, then apply a method called “dead reckoning”.

10. What are drawbacks of gyroscope and describe data processing techniques have been
applied for overcomes.
Answer:
 A particular problem observed with the piezo gyroscope is drift: even when the sensor
is not being moved and its input PWM signal is left unchanged, the sensor output drifts
over time.
 This may be due to temperature changes in the sensor and requires compensation.
 An additional general problem with these types of gyroscopes is that they can only sense
the change in orientation (rotation about a single axis), but not the absolute position.

12. What are the best solutions in creating interrupt at the CPU for image byte of the camera
and shows it technique's approach?
Answer:
 Very interrupt creates considerable overhead, since system registers have to be saved
and restored on the stack.
 Starting and returning from an interrupt takes about 10 times the execution time of a
normal command, depending on the microcontroller used.
 Therefore, creating one interrupt per image byte is not the best possible solution.
 It would be better to buffer a number of bytes and then use an interrupt much less
frequently to do a bulk data transfer of image data.
 This approach using a FIFO buffer for intermediate storing of image data.
 The advantage of a FIFO buffer is that it supports unsynchronized read and write
in parallel.
 So while the camera is writing data to the FIFO buffer, the CPU can read data out,
with the remaining buffer contents staying undisturbed.
 The camera output is linked to the FIFO input, with the camera’s pixel clock
triggering the FIFO write line.
 From the CPU side, the FIFO data output is connected to the system’s data bus,
with the chip select triggering the FIFO read line.

You might also like