Precio FOB
Obtener el precio más reciente|
- Minimum Order
País:
China
N º de Modelo:
-
Precio FOB:
Lugar de origen:
-
Precio de pedido mínimo:
-
Cantidad de pedido mínimo:
-
Detalle de embalaje:
-
El tiempo de entrega:
-
Capacidad de suministro:
-
Tipo de pago:
-
Grupo de productos :
China
Persona de contacto Mr. Wilson
6-703, FUYUAN COMMUNITY, YUFU ROAD, LONGGANG DISTRICT, SHENZHEN, CHINA, Muping, Sichuan
Classical Bluetooth Shield Module -Arduino Compatible
This bluetooth serial port module can cooperate with Arduino sensor
shield by the corresponding connecting cables, In the hardware just
only need to use the COM cable to connect the COM interface of
bluetooth serial module with the COM interface of Arduino sensor
shield:
Note: When use, bluetooth serial port module's mode selection
switch (MS) should be set to normal mode (NM) position place:
Here we will experiment about how to realize the bluetooth Arduino
in computer and communication, bluetooth serial port module work in
salve mode condition, and computer work in master mode condition.
We must first installed the corresponding software in computer, to
manage all bluetooth around, and after test we found, IVT operates
BlueSoleil may be the best choice, you can download the
corresponding applicable version on BlueSoleil website.
After installing the BlueSoleil software, plug bluetooth adapter
into the computer, the bluetooth adapter major functions is that
finishing communication with bluetooth serial interface module and
the bluetooth adapter's stability is a very important factor to
the quality of communication of bluetooth, so try to find bluetooth
adapter of assort or passing test:
After a serial normal search and setup step by step, you will be
required to the password.
The factory default password is: ***4
After the success of bluetooth connection, "serial port" icon will
become green, and shows the corresponding serial Numbers (such as
COM*5)
When the bluetooth serial interface module superscript for L the
parade long bright, it means the connection have already setup, and
can undertake data communication. The rest work is actually easy,
as in the previous introduction, actually we just need Arduino
executes in the serial port operation orders. The following is our
testing code:
Int val = 0; Int ledPin = *3; Void setup() { Serial. Begin(***0);
Serial. Println("Started"); } void loop() { val = Serial. Read();
If (*1! = val) { if ('A' == val 'a' == val) { Serial.
Println("Hello from Arduino! "); }else if ('C' == val 'c' ==
val) { digitalWrite(ledPin, HIGH); Delay(**0); DigitalWrite(ledPin,
LOW); } } }
Next is downloadeding the corresponding code to Arduino and run.
When using standard version of the Arduino, because Arduino only
have a serial port, therefore before the downloading, please
disconnect bluetooth serial interface module, and connect again
after program download serial connected to the bluetooth module (if
you need to use usemultiple serial ports simultaneously and you can
consider using Arduino MEGA). When testing, try to use SSCOM to
test as far as possible.
Note the baud rate should be set for ***0, 8N1:
Finally note, some of the bluetooth serial port module's
parameters (such as: Matching password) can be set through the AT
command, so we designed a model selection (MS) switch, which can
make this module be at command mode (AT) or normal mode (NM).
País: | China |
N º de Modelo: | - |
Precio FOB: | Obtener el precio más reciente |
Lugar de origen: | - |
Precio de pedido mínimo: | - |
Cantidad de pedido mínimo: | - |
Detalle de embalaje: | - |
El tiempo de entrega: | - |
Capacidad de suministro: | - |
Tipo de pago: | - |
Grupo de productos : | arduino board and accessories |