Error 516:Unable to write:Broken pipe (Bluetooth)(Arduino)(MIT App Inventor)

2,639 views
Skip to first unread message

not_an_arduino_guy

unread,
Aug 21, 2018, 10:30:13 AM8/21/18
to MIT App Inventor Forum

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!

gerrikoio

unread,
Aug 21, 2018, 11:12:17 AM8/21/18
to MIT App Inventor Forum
Have you paired the HC-05 to your phone and are you checking that it is paired in your app code before trying to send data?

Are you using a timer/clock block and if so what time interval are you using?

Best send your blocks for review.
Reply all
Reply to author
Forward
0 new messages