ma carte ZS-040 à 4 pin pour le bleutooth n'est pas détecter, pourriez vous m'aider
le code trouver sur internet
#include <SoftwareSerial.h>
SoftwareSerial SoftSerial(10, 11); // RX | TX pins. Can be reassigned to other pins if needed
const long BAUDRATE = 9600; // This is the default communication baud rate of the HC-05 module
char c = ' '; // Character being transmitted
void setup()
{
Serial.begin(BAUDRATE); // Init hardware serial
SoftSerial.begin(BAUDRATE); // Init soft serial object
Serial.println("Test started - Enter something to send to computer or Android phone");
SoftSerial.println("Test started - Enter something to send to Serial Monitor Window");
}
void loop()
{
// Read from the Bluetooth module and send to the Arduino Serial Monitor
if (SoftSerial.available())
{
c = SoftSerial.read();
Serial.write(c);
}
// Read from the Serial Monitor and send to the Bluetooth module
if (Serial.available())
{
c = Serial.read();
SoftSerial.write(c);
}
}
mon voltage est placer sur le 5v
le gnd sur gnd
et le tx sur dx (0)
et le dx sur tx(1)