ECE 477: Digital Systems Senior Design Last Modified: 10-08-2022
Electrical Overview
Year: _2022_ Semester: _Fall___ Team: _16_ Project:__Repeat Rover________________
Creation Date: __9/13/2022_________________ Last Modified: October 8, 2022
Author: __Christine Fang___________________ Email: __fang245@purdue.edu_________
1.0 Electrical Overview
Our project will utilize a 32-bit, 64-pin Microcontroller, which will be handling the the user’s inputs and executing the output commands, as well as interacting and interfacing between all of the peripherals used. The user’s mobile device will be able to communicate with the rover wirelessly using bluetooth to set a desired path. The Repeat Rover will track the path using wheel speed sensors for the speed and distance and a magnetometer for vehicle bearing. The information is then computed and saved in an SD card, then ultimately the data collected is sent to the motor controller for output.
The data read by the magnetometer and wheel speed sensor is in analog, so to translate the data to digital, the microcontroller includes 2 fast analog-to-digital converters with resolution between 12 and 6 bit.[1]
2.0 Electrical Considerations
2.1 Power
For our project, we will be using battery power since our rover must be portable. The microcontroller we have chosen (nrf52832) has a voltage range of 1.6V - 3.6V.[1] Most of the parts we need require around 3.3V, so the microcontroller should be enough to supply this. The wheel speed sensor and the SD card reader requires 3.3V and the magnetometer requires 3V. The motors on the remote control car requires 3.6V which is still within the range. The motor driver will need 5V which can be supplied by the the microcontroller
2.2 Frequency
The operating frequency for our project will be determined by the microcontroller. The microcontroller we have operates at a maximum frequency of 72MHz. When the rover is collecting data, we would like to operate at the highest frequency so we will use up to the maximum frequency from the microcontroller, but since we are using battery power to power our rover, we may need to lower the operating frequency to about 50MHz to preserve the battery as much as possible. Our project does not require too much power and each component requires about 3.3-3.6 V to operate.
Below are the maximum current drawn from each of the major components along with the maximum voltage and power specifications:
Component | Voltage | Current | Power |
Magnetometer[2] | 3.6V | 450uA | low |
Hall Effect Sensors[3] | 40V | 30mA | low |
SD card reader | 3.3V | 25MHz | 330mW |
Motor | 5V | 50A | 55mW |
Motor Driver | 36V | 2A | 2075mW |
3.0 Interface Considerations
The two interfaces we will be using are SPI and I2C. We will use SPI to store and read data from the SD card, and I2C is used for the magnetometer. The wheel speed sensors and the motor driver will use multiple GPIO pins.
The SPI will require one clock at a rate between 0 and 25MHz. SPI supports 2-way communication between the microcontroller and the SD card, and can do so in very high speeds. For the SPI protocol, we would need the clock, a chip select pin, and also MISO and MOSI to read in and store the data. The SD card maximum frequency is 25MHz, but we will not be using it all the time, mainly when we are writing to the card and when the wheel is interacting with the Hall Effect sensors.
For the I2C protocol, we will need 2 wires for the SDA and SCL. The magnetometer will be in FAST mode at the maximum frequency rate which is 400KHz. The address for the magnetometer for communication is 7-bits and is addressed to the master. SCL and SDA are 8-bit registers along with GND and VCC.
4.0 Sources Cited:
[1]“ARM® cortex®-M4 32B MCU+FPU, 64KB flash, 16KB ... - stmicroelectronics.” [Online]. Available: https://www.st.com/resource/en/datasheet/stm32f328c8.pdf. [Accessed: 14-Sep-2022].
[2] “DRV5033 digital-Omnipolar-Switch Hall Effect Sensor Datasheet (rev. G).” [Online]. Available: https://www.ti.com/lit/ds/symlink/drv5033.pdf. [Accessed: 08-Oct-2022].
[3]“±8 Gauss, high performance H 3-axis magnetic sensor - digi-key.” [Online]. Available: https://media.digikey.com/pdf/Data%20Sheets/MEMSIC%20PDFs/MMC5983MA_RevA_4-3-19.pdf. [Accessed: 16-Sep-2022].
Appendix 1: System Block Diagram