WALL-E Version 1.0
The "WALL-E" Project is a ME 507 quarter term project inspired to recreate the robot WALL-E. The WALL-E robot is a fully 3D printed robot with modified components in order to fit the needs of the chosen peripherals and electronics. WALL-E contains a custom made PCB which is housed in the main body of WALL-E. WALL-E's peripherals and components include 2 pololu Romi Motors with encoders, 4 MG90s servos, BNO055 IMU, and a OV2640 ArduCam camera. The objective of WALL-E is to scan the surrounding area for the closest object to it. Once that object is detected, WALL-E drives up to the object, attempts to pick up or hold the object and detect the color of the object.
Loading...
Searching...
No Matches
batteryMonitor.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
19
20#ifndef INC_BATTERYMONITOR_H_
21#define INC_BATTERYMONITOR_H_
22
23#include "stm32f4xx_hal.h"
24
30 public:
36 BatteryMonitor(ADC_HandleTypeDef* hadc, uint16_t threshold_mV = 7000);
37
43 uint16_t getVoltage_mV();
44
45 /*
46 * @brief Function indicates and raises the flag if the voltage is below the threshold
47 * provided to the class indicating to charge the LiPo Battery.
48 * @return Boolean
49 */
50 bool isLow();
51
52 private:
57 ADC_HandleTypeDef* hadc;
58
63 uint16_t threshold_mV;
64
70 uint16_t readVoltageRaw_mV();
71};
72
73
74
75#endif /* INC_BATTERYMONITOR_H_ */
uint16_t threshold_mV
Definition batteryMonitor.h:63
uint16_t getVoltage_mV()
Function allows for the user to retrieve the voltage of the battery.
Definition batteryMonitor.cpp:49
ADC_HandleTypeDef * hadc
Definition batteryMonitor.h:57
uint16_t readVoltageRaw_mV()
Function calculates the voltage in mV by reading the ADC and applying the conversion to step up to th...
Definition batteryMonitor.cpp:34
bool isLow()
Definition batteryMonitor.cpp:58
BatteryMonitor(ADC_HandleTypeDef *hadc, uint16_t threshold_mV=7000)
Constructor Function for the Battery Monitor Class.
Definition batteryMonitor.cpp:26