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.
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.
-
Computing
- Elegoo UNO R3
-
Inputs
- Lipo battery
- HC-11 Bluetooth Module
- 80A ESC to control the speed
-
Outputs
- Motor C6374
- Used HM-11 Bluetooth Module to receive the inputs: moving fast, slow, and breaking.
- Used ESC to control the speed.
- Created a safe system when bluetooth gets disconnected.
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.