Tutorial 09 - Battery Level Detection - ADA031-V5.0
Adeept · Uploaded · 2:07 · Watch on YouTube
Adeept demonstrates the battery level detection lesson for its ADA031-V5.0 kit, using the robotic arm control board. The tutorial walks through uploading example code that reads the battery's analog signal and shows the voltage and percentage on an OLED screen.
Transcript
Captions as a .vtt fileEmbed with the transcript
- 0:04This lesson introduces the battery level detection function.
- 0:08It demonstrates the principle of battery voltage and battery level sampling with an example program.
- 0:15Required components, robotic arm control board, USB cable, OLED screen, battery.
- 0:24We use the Arduino ADC function to read the analog signal from pin A7,
- 0:29then calculate the current battery voltage according to the reference voltage and voltage divider principle.
- 0:36This experiment only demonstrates the basic principle of battery level detection, and some measurement errors may exist.
- 0:44Let's start the demonstration.
- 0:48First, plug the OLED into the controller board, then connect the controller board to your computer with a USB cable.
- 0:56Connect the battery and turn on the power switch.
- 0:58Next, open the example code.
- 1:12Select the board type and serial port, then upload the program to the control board.
- 1:27After successful upload, the OLED screen continuously refreshes the sampled ADC value, calculated battery voltage and battery percentage.
- 1:38Code principle, initialize and configure pin A7 as input mode.
- 1:43Read the analog value of pin A7 in real time inside the loop.
- 1:47And calculate the current battery voltage and battery percentage based on the reference voltage and voltage divider ratio.
- 1:55Once you understand the principle of battery voltage detection,
- 1:59you can build your own low battery warning system by combining what you learned in the buzzer and OLED lessons.
Diskussion
Eine E-Mail, wenn jemand kommentiert. Kein Konto nötig.
Der Newsletter
Hol dir unseren kostenlosen Newsletter mit neuen Robotern, Preisen und Robotik-Nachrichten.