I send the alphabet using bluetooth module and slave perceives alphabet and control three dc motors. I used 3 dc motors in total and used 2 motor drivers and the model name is l298n. Also, the motor driver was given external power. If Bluetooth is connected, the dc motor is operated and the Bluetooth is disconnected. What's the problem?
The code is too long, so I'll skip it. to send a data, i use btSerial.println and to receive a data, i use btSerial.read and i use btSerial.begin(9600)
It works well, but Bluetooth is often cut off.