SDC2130 and HC-05 Bluetooth Modul RS232
- ŞAHİNGERİ
- Topic Author
6 years 10 months ago #29532486
by ŞAHİNGERİ
SDC2130 and HC-05 Bluetooth Modul RS232 was created by ŞAHİNGERİ
Hello, I would like to communicate with HC-05 Bluetooth device with serial communication (rs232) with SDC2130 model. How should the configuration and scripting program be? Can the hardware connection HC-05 and SDC2130 be made directly? The SDC2130 also has a view pinout 2. pin (txdata) 3. pin (rxdata) is displayed.
Please Log in or Create an account to join the conversation.
6 years 10 months ago #29532488
by blake
Replied by blake on topic SDC2130 and HC-05 Bluetooth Modul RS232
Please Log in or Create an account to join the conversation.
- ŞAHİNGERİ
- Topic Author
6 years 10 months ago #29532490
by ŞAHİNGERİ
Replied by ŞAHİNGERİ on topic SDC2130 and HC-05 Bluetooth Modul RS232
Dim led As integer
led=GetValue(_CMDSER)
top:
If(led=sol) then
setcommand(_GO,1,500)
else
setcommand(_GO,1,0)
end if
GoTo top
I can not write program for serial communication. Can you write a sample program? My goal is to control the engine with the program I wrote at android. I used the HC-05 bluetooth module for this. When I press the button in the application on the phone, I communicate the word "left" with serial communication. I will write in the driver, this word in the program will run the engine if it comes. I tried to write the program above but it did not work.
led=GetValue(_CMDSER)
top:
If(led=sol) then
setcommand(_GO,1,500)
else
setcommand(_GO,1,0)
end if
GoTo top
I can not write program for serial communication. Can you write a sample program? My goal is to control the engine with the program I wrote at android. I used the HC-05 bluetooth module for this. When I press the button in the application on the phone, I communicate the word "left" with serial communication. I will write in the driver, this word in the program will run the engine if it comes. I tried to write the program above but it did not work.
Please Log in or Create an account to join the conversation.
6 years 10 months ago #29532493
by blake
Replied by blake on topic SDC2130 and HC-05 Bluetooth Modul RS232
There are a few errors in your script. However, if your goal is to receive commands from your Bluetooth device that is connected to the motor controller via RS232 then you wouldn't take this script approach anyway.
You would send serial commands from the bluetooth device. You can see the full reference of serial commands in Section 18 of our User Manual.
For example the serial command to turn the motor in the positive direction at 50% duty cycle would be !G 1 500. To turn the motor in the negative direction at 25% duty cycle the serial command would be !G 1 -250.
You would send serial commands from the bluetooth device. You can see the full reference of serial commands in Section 18 of our User Manual.
For example the serial command to turn the motor in the positive direction at 50% duty cycle would be !G 1 500. To turn the motor in the negative direction at 25% duty cycle the serial command would be !G 1 -250.
Please Log in or Create an account to join the conversation.
- ŞAHİNGERİ
- Topic Author
6 years 10 months ago #29532501
by ŞAHİNGERİ
Replied by ŞAHİNGERİ on topic SDC2130 and HC-05 Bluetooth Modul RS232
thank you for attention. I did what you said communicate with the pc. But I sent it as a scheme I wanted to do. In this case, do you write a sample scripting program?
Please Log in or Create an account to join the conversation.
- ŞAHİNGERİ
- Topic Author
6 years 10 months ago #29532502
by ŞAHİNGERİ
Replied by ŞAHİNGERİ on topic SDC2130 and HC-05 Bluetooth Modul RS232
Please Log in or Create an account to join the conversation.
6 years 10 months ago #29532504
by blake
Replied by blake on topic SDC2130 and HC-05 Bluetooth Modul RS232
Hello,
We have not used the HC-05 Bluetooth Module so we are not very familiar with it's operation and therefore do not have a sample script to provide.
After briefly looking over it's datasheet, I see one major issue with the serial logic levels of the HC05 that will effect its communication with our controller. The logic voltage of the HC-05 module is only 0 - 3.3V. Our controller uses true RS232 so it's logic voltage level is -10/+10V. Additionally I see that the default baud rate of the HC-05 is 9600bps, where our controllers default baud rate is 115200bps. This isn't as major of an issue because this can be changed on either the controller or it appears the HC-05 as well.
Please read through Section 13 of our User Manual . This will detail the serial communication standards of our controller and all the parameters required to establish a serial communication with our controller.
We have not used the HC-05 Bluetooth Module so we are not very familiar with it's operation and therefore do not have a sample script to provide.
After briefly looking over it's datasheet, I see one major issue with the serial logic levels of the HC05 that will effect its communication with our controller. The logic voltage of the HC-05 module is only 0 - 3.3V. Our controller uses true RS232 so it's logic voltage level is -10/+10V. Additionally I see that the default baud rate of the HC-05 is 9600bps, where our controllers default baud rate is 115200bps. This isn't as major of an issue because this can be changed on either the controller or it appears the HC-05 as well.
Please read through Section 13 of our User Manual . This will detail the serial communication standards of our controller and all the parameters required to establish a serial communication with our controller.
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds