Bluetooth Lock

Hi there,

My partner and I are working on a project for our engineering class. Basically, we created an app that can communicate with the Arduino using a bluetooth connection and the Seeed Bluetooth Shield. We have gotten it to work with one major hiccup. Every time we connect the phone to the shield, it will not work until we reset the board using the reset button. The Shield’s green led will blink slowly indicating that the phone is connected, and the phone does not come up with any errors stating it is not connected to a device, so we believe the problem must lie in the communication between the Arduino and the Shield. Our code is attached to this post. We are using an app created in the MIT App Inventor 2 program. Any ideas are greatly appreciated!!

drcrain

BTunlock_relay.ino (1.6 KB)