I bought a bluetooth module HC-06. I connect Vcc to 3.3v, GND to GND, tx to rx and rx to tx. in some tutorial on youtube someone uses two resistors, someone other connects it directly. I try both with and without resistors. then I change the serial port from 24 (the usb one) to 35 (the buetooth one). but the in the serial monitor nothing is printed. what is wrong?
You need to be a lot more forthcoming about what you are doing, exactly what HC-06 device you are using, and post the code, using the hash icon.
joeparsons:
I bought a bluetooth module HC-06. I connect Vcc to 3.3v,
This is OK if, and only if, you are using the bare HC-06 module
tx to rx and rx to tx.
Yes, hardware serial D0,D1
in some tutorial on youtube someone uses two resistors
Good idea for Arduino Tx
then I change the serial port from 24 (the usb one) to 35 (the buetooth one). but the in the serial monitor nothing is printed. what is wrong?
This is unintelligible but it may be that the only thing wrong is that you are trying to use the serial monitor as a terminal. Make sure the USB cable is disconnected and use a proper terminal programme like RealTerm through a properly defined COM port.
You might find the following background notes useful
I got one of these HC06 modules and I followed the wiring arrangements on one of the datasheets referenced at the bottom of the page.
As I understand it you should NOT connect the 5v Arduino Tx pin directly to the 3.3v Rx of the module. You can connect the 3.3v BT Tx to the Arduino Rx pin.