I couldn't connect HC06 Blutooth to SMD L298 Dual Motor Shield. How can I connect? Which pin number is blutooth?
What do You want that connection to do?
I assume you mean an "Arduino motorshield Rev3" with an Uno.
That shield uses most of the Arduino pins, but pin 2, 4 and 10 seem to be available (for SoftwareSerial). Pin A4 and A5 are also not used.
Leo..
That's AFAIK not and Arduino motor shield, although it also the L298 dinosaur chip.
Post a weblink to where you have bought it.
Leo..
I want to drive 4wd car. But I did'nt connect hc06 from arduino serial port.
pin 10 and 11 is pwm.
pin 4 is buzzer on shield.
blutooth ?
This seems to be the datasheet for that FunduMoto shield.
Leo..
Yes it is. I want to connect hc06 and change hc06 password and name.I can't connect
Would have been easier if the datasheet had a schematic diagram.
It seems, looking at the picture, that the BT2 connector has a connection to the TX,RX pins of the Uno. Luckily with a 1k:2k voltage divider. But a BT module on pin 0,1 interferes with USB<>Serial comms.
Maybe you should remove that shield, connect the BT module to different pins with SoftwareSerial (using a voltage divider on the RX pin of the BT module), write password/name to the module, and then put it back on the motorshield.
Leo..
Ok but first I save the code to arduino and then i connected hc06 to shield.it it wrong?
The shield seems designed wrong (assuming they have used pin 0,1 for the BT device).
A BT module should not use the same pins as the processor's serial interface.
Leo..
I defined this code. Saved to arduino uno r3. Then I connected hc06 to shield. is it wrong?
#include <SoftwareSerial.h>
SoftwareSerial hc06(2, 3);
If you tell the code that the BT module is connected to pin8,9 or pin2,3 then you must of course have connected the module to those pins. The shield doesn't do that for you.
Leo..
Wawa hi bro, I connected hc06 to arduino and shield. I can send command from my phone and write data to serial port. But I can't change Hc06 password and name. AT command not work. What can I do for AT commands.
Can you write password and name to the BT module when it's directly connected to the Uno, with SoftwareSerial (not on the TX,RX pins) and without the motor shield?
Leo..
I solved the problem. I used SoftwareSerial and 10, 11 pin. AT+NAME = "name" command solved Then I connected fundumoto shield on arduino. Thank you so much bro.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.