/Electric_Skateboard_with_Arduino

Created an electric skateboard during spring 2022 quarter for a final project of Introduction to Embedded Systems

Primary LanguageC++

Electric_Skateboard_with_Arduino

Table of Contents

Demo

DEMO1 DEMO2

Overview

I made an electric skateboard with a motor that has bluetooth connectivity to my phone which controls the speed of the skateboard. The baseline version of the electric skateboard lets a user control the speed with their phone using bluetooth. When the bluetooth gets disconnected, the motor will gradually stop and wait until the bluetooth connection gets recovered.

User Guide

A user will use their phone and bluetooth with an app called ArduinoBlue.

When the user moves a joystick up, it will send a signal to the arduino and increment the speed variable. Likewise, when the user moves back the joystick middle or down, it will decrement the speed variable.

Hardware Components

  • Computing

    • Elegoo UNO R3
  • Inputs

    • Lipo battery
    • HC-11 Bluetooth Module
    • 80A ESC to control the speed
  • Outputs

    • Motor C6374

IMG_0281

Complexities

  1. Used HM-11 Bluetooth Module to receive the inputs: moving fast, slow, and breaking.
  2. Used ESC to control the speed.
  3. Created a safe system when bluetooth gets disconnected.

Software Libraries Used

I used:

#include<Servo.h> and #include <SoftwareSerial.h>.

#include<Servo.h> is to send a pwm signal easily, and

#include <SoftwareSerial.h> is to get a received signal from a bluetooth module.

Diagram

State Machine Diagram