I was trying to make this Arduino project where I would control a toy car using an app made with MIT App inventor via Bluetooth. I referred to the website- https://howtomechatronics.com/tutorials/arduino/arduino-robot-car-wireless-control-using-hc-05-bluetooth-nrf24l01-and-hc-12-transceiver-modules (Includes the blocks, if you want, I will attach my blocks too, just ask for it!)
The circuit, code all looks fine to me. The app consists of a joystick, I move the joystick and based on the x and y value of the joystick, I the car moves in that direction.
The PROBLEM is that when I move the joystick, the app crashes that is, it freezes and gives the following error- "Error 516:Unable to write:Broken pipe". I have observed that the bluetooth module(HC-05) I'm using starts disconnecting everytime I connect it, hence "broken pipe".
So, I would like to know is there any solution to fix it, if yes then please let me know it.
Thank You!