ArduinoBT: what happens after bt-disconnect?

hey folks,

i'm wondering about the behaviour of a program, running on a pcb - based on arduinoBT.

in the code i read the serial-port and use the byte which i receive to run a motor via analogWrite(receivedByte).

everything works fine, but when i disconnect the bluetooth- connection at the host, the motor starts running again.

it seems that the bluetoothmodule is sending some stuff over serial to the arduino, after beeing disconnected... how can i stop that?

thanks, hans

hi

I would look at your code and see what state the pin driving the motor is in after disconnect-- i.e. solve it in software.

D