Exam Prep 2
Exam Prep 2
Exam Prep 2
1) The current through a diode is given by Id = Idss(e -1), Id is the current through the diode; V is the
diode voltage; T is the temperature in Kelvin, Idss is the reverse saturation current which you can
assume is constant; and k is a constant. For a particular application, it is proposed to measure the
temperature from measurements of Id and V.
i)
ii)
iii)
iv)
2) A power line inspection robot was discussed in the class. It has four cameras for navigation and
another camera for line inspection. Each joint motor and each gripper motor has its own
microprocessor, current and position sensing and motor drive. In addition, there is a high speed
processor on the inspection camera to process inspection images and another high speed
processor for overall control and for communication with the ground station. Discuss the principles
of Brookes subsumption architecture for this robot.
3)
SuperRay Torpedo
V
Id
(10)
Target
Last Known
Position
Homing
Mode
Gun Ship
Position
Mode
Figure 1: Concept of operation for the SuperRay Torpedo. The first stage (Position Mode), the torpedo
motions towards the last known position of the target. Once the torpedo is within 1km of target it
switches to Homing Mode where it actively seeks and steers towards the target signal. Once it is
close enough, the torpedo will enter Detonation mode.
From the datasheet, the SONAR receiver sensor outputs a voltage that is linearly proportional to
distance to the target. The relationship is graphically depicted below:
a) If you are using the ADC of the STM32, what would the distance be if the ADC data register
contained the value of 0xDAC. Assume 12 bit mode. [3 marks]
b) The homing guidance algorithm is shown below:
Antenna
Position
66.67
PWM
gain
The target position is provided by an ADC voltage taken from the seeker antenna from 0 to
3.3V. Where 1.5V means the antenna is in the centre position and thus, when the seeker
antenna is at 1.5V, the PWM duty cycle output should be zero.
Using this information, write a C function that converts the ADC value of the seeker and
outputs the appropriate PWM duty cycle.
Use the function prototype float32_t homingControl(uint16_t ADCVal)
[4 marks]
4)
Digital filter
A simple example of a low pass filter is the Infinite Impulse Response (IIR) filter. This is realized by
the following equation:
= + (1 )1
Where, is the filter output at the current sample, 1 is the filter output of the previous sample,
is the filter input and is the product of the filter cut-off (in rad/s) and the sample time in (s).
a)
Write a low pass filter function. Assume the following function prototype: [5 marks]