VBL2350 Arduino serial
10 years 2 weeks ago - 10 years 2 weeks ago #29528377
by Böttcher
VBL2350 Arduino serial was created by Böttcher
Hello,
i want to connect my arduino via serial to my vbl2350. The arduino should ask for the values etc Voltage,Amps.
I need a ttl rs232 converter?
please help me, i need this for my degree work.
i want to connect my arduino via serial to my vbl2350. The arduino should ask for the values etc Voltage,Amps.
I need a ttl rs232 converter?
please help me, i need this for my degree work.
Please Log in or Create an account to join the conversation.
- Griffin Baker
10 years 2 weeks ago #29528378
by Griffin Baker
Replied by Griffin Baker on topic VBL2350 Arduino serial
Please Log in or Create an account to join the conversation.
10 years 2 weeks ago #29528379
by Böttcher
Replied by Böttcher on topic VBL2350 Arduino serial
thats enough?
or should i change something more than the baudrate to 115200?
or should i change something more than the baudrate to 115200?
Please Log in or Create an account to join the conversation.
- Griffin Baker
10 years 2 weeks ago - 10 years 2 weeks ago #29528380
by Griffin Baker
Replied by Griffin Baker on topic VBL2350 Arduino serial
The serial port uses 9600 baud rate. You should start there first. If it doesn't work, then try the 115200.
Edit: It needs to be set at the 115200.
Edit: It needs to be set at the 115200.
Please Log in or Create an account to join the conversation.
- Griffin Baker
10 years 2 weeks ago - 10 years 2 weeks ago #29528381
by Griffin Baker
Replied by Griffin Baker on topic VBL2350 Arduino serial
Here is a link to the reference page if you don't already have it yourself. Since we are limited to the knowledge of the workings and code, I can only provide a small sample of coding that was provided to us.
arduino.cc/en/Reference/HomePage
Example code:
To read from a digital pin on the Roborun+ the code would be:
GetValue(_DIn,4)
Where as in Arduino the code would be:
digitalRead(4)
With both codes looking to Digital Pin 4,
An if statement would look like this on Roborun+:
If (GetValue(_Din,4) = 1)
<Then>
ElseIf (GetValue(_Din,4) = 0)
<Then>
And an If statement on Arduino would be:
If (digitalRead(4)=HIGH)
<Then>
Else If (digitalRead(4)=LOW)
<Then>
I hope this helps you.
arduino.cc/en/Reference/HomePage
Example code:
To read from a digital pin on the Roborun+ the code would be:
GetValue(_DIn,4)
Where as in Arduino the code would be:
digitalRead(4)
With both codes looking to Digital Pin 4,
An if statement would look like this on Roborun+:
If (GetValue(_Din,4) = 1)
<Then>
ElseIf (GetValue(_Din,4) = 0)
<Then>
And an If statement on Arduino would be:
If (digitalRead(4)=HIGH)
<Then>
Else If (digitalRead(4)=LOW)
<Then>
I hope this helps you.
Please Log in or Create an account to join the conversation.
10 years 2 weeks ago #29528384
by Böttcher
Replied by Böttcher on topic VBL2350 Arduino serial
thanks, but this is not the problem:
i must send over the rs232 something like "A?", and wait for the response.
I want to store this value´s on an SD card.
know somebody a projekt like this?
i must send over the rs232 something like "A?", and wait for the response.
I want to store this value´s on an SD card.
know somebody a projekt like this?
Please Log in or Create an account to join the conversation.
- Griffin Baker
10 years 2 weeks ago #29528386
by Griffin Baker
Replied by Griffin Baker on topic VBL2350 Arduino serial
Try using the telemetry function.
Page 196 and top of page 197 of the user manual.
Page 196 and top of page 197 of the user manual.
Please Log in or Create an account to join the conversation.
10 years 1 week ago #29528389
by Böttcher
Replied by Böttcher on topic VBL2350 Arduino serial
and how can i receive this string?
Please Log in or Create an account to join the conversation.
- roboteq
10 years 1 week ago #29528390
by roboteq
Replied by roboteq on topic VBL2350 Arduino serial
You will need to use your arduino to capture and parse the string to extract the values. If you do not know how to do this, you should ask on arduino forums. We are not arduino experts.
Please Log in or Create an account to join the conversation.
10 years 1 week ago #29528391
by Böttcher
Replied by Böttcher on topic VBL2350 Arduino serial
the parsing is not the Problem,
i mean is the telemetry string also send over the rs232?
i mean is the telemetry string also send over the rs232?
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.075 seconds