My current project is a small bluetooth controlled tank with a lifting arm and I am having trouble activating inputs using an HM-10 Bluetooth module. The system consists of 2 x 3-12V DC motors, a micro servo, an Arduino Uno, an Adafruit Motor Shield V2, and a DSD Tech HM-10 bluetooth module. The goal of this project is to control the direction of the tank and the lifting arm wirelessly using the IOS BLE Joystick app. For an initial test I only connected the servo to the motor shield and powered the system using the jumper and the arduino Uno USB port. I connected the Rx to the Tx and the Tx to the Rx as well as the 3.3V connection and ground for the bluetooth module. I was able to successfully pair the bluetooth module with the app, but when I try to activate the servo using the controller nothing happens. Maybe I am not using it correctly but I viewed the serial monitor and nothing happens when the buttons are pressed. If someone could please look over my code and provide me some tips I would greatly appreciate it!
Rover_Script_V1.ino (1.65 KB)