Practicals Flashcards

1
Q

What is an ESP32?

A

A System on Chip (SoC) Microcontroller with integrated Wi-Fi and Bluetooth

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the capabilities of an ESP32?

A

Able to interface with other systems to provide Wi-Fi and Bluetooth functionality through its SPI, I2C or UART interfaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain how a PWM signal from a microcontroller can be used to control the speed of a motor

A
  • The width of digital pulses is adjusted to generated different average dc voltages
  • These dc voltages are then passed through the motor with less voltage meaning slower speeds and vice versa
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain how an encoder could be used to measure the speed of a motor

A
  • Every second, record the new encoder count and store it
  • Subtract the previous encoder count from the new encoder count
  • Calculate RPM by multiplying encoder count by 60 then dividing by the pulses per rotation
  • Reset the encoder count to 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain how you could use a pair of motor encoders to travel in a straight line

A
  • While moving, record the encoder counts
  • If the left encoder count is greater than the right, decrease the left motor speed and increase the right motor speed and vice versa
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the benefits of using an encoder instead of a delay to stop the car after a specified distance?

A
  • The distance needed to be travelled will always be a constant based on the code
  • If delay is used, the speed is now a factor variable which can be affected by voltage fluctuations to the motors
  • An encoder gives better control over speed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you safely power an LED?

A
  • By adding a resistor into the circuit
  • Resistance value needed can be calculated by equation R = V / I , where V is Supply voltage - LED voltage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe the purpose of a pull-up resistor

A

To ensure that a pin always has a defined logical level under all conditions, stopping the input from being in an undefined state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a MOSFET?

A

A transistor where the gate voltage manipulates the conductivity between the source and drain regions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Explain the operation of the bi-directional voltage level shifter

A

To shift the voltage of a signal either up to 5V or down to 3.3V

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of the ‘L298N’ motor driver chip?

A

To control the speed and direction of the two DC motors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the purpose of the ‘SPX29300T-L-5-0/TR’ regulator on the rear of the EEEBot mainboard?

A

To create and maintain a fixed 5V output voltage, despite changes to the input voltage or load condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the purpose of the two fuses and MOSFET on the EEEBot mainboard?

A

For temperature protection to prevent the MOSFET from being damaged

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

On the EEEBot mainboard, why is 5V from the regulator preferable to using voltage pins from the ESP32?

A
  • As a voltage regulator creates and maintains a fixed 5V output voltage, despite the changes to the input voltage or load condition
  • Whereas the voltage using voltage pins could cause voltages on the EEEBot to fluctuate and may cause damages to the chip on the ESP32
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Explain how I2C works and why it is needed

A
  • Communication takes place between a master and one or more slave devices
  • The serial computer bus requires two data lines, SDA and SCL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the benefits of I2C over UART

A
  • I2C has a faster data transmission rate than UART
  • I2C has multi-device support, unlike UART
  • I2C has an unlimited data size, whereas UART is limited to 9 bits only
17
Q

What is the difference between accuracy and precision?

A
  • Accuracy is how close the calculated values are to the true value
  • Precision is how close the calculated values are to each other
18
Q

What is the operating principle of an HC-SR04 sensor?

A

Infers distance to an object by measuring the time taken for 40kHz sound wave from the trigger pin to travel from a transmitter to the object and then back to a receiver connected to the echo pin

19
Q

What is an MPU-6050 ?

A

An inertial measurement unit (IMU) capable of measuring rotation in a number of motion tracking axes

20
Q

What can an MPU-6050 specifically measure?

A
  • Angular velocity
  • Acceleration
21
Q

What is ‘MQTT’?

A

A messaging protocol to exchange data between multiple devices

22
Q

How does ‘MQTT’ work?

A
  • Devices on the network subscribe to topics
  • Devices on the network publish messages related to a topic
  • Any device subscribe to the topic receives the message