Another question from me is:
I need to control several actuators from Simulation and I wonder
-How can I send several serial messages with maybe different headings so that Arduino can understand which code is which code? How can I achieve this, could you please guide me?
Search found 10 matches
- 17 May 2022, 17:15
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
- 17 May 2022, 17:13
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Re: Control A Servo through Arduino by controling a joint in Coppelia Sim
Hello Mr. Admin, Thank you very much for your contribution, your suggestions work like magic. If a student would have a similar situation like mine - I want to write some hints. AS I understood Coppelia Sim with basic serialsend code send to Arduino as chars and here this example 4 code works great ...
- 13 May 2022, 10:26
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Re: Control A Servo through Arduino by controling a joint in Coppelia Sim
Thanks a lot, once again everything works now. However, simulation send data so fast that the Arduino bottlenecks and gets unstable also the servo cannot reach that fast. Is there a way to slow down the data send speed or maybe something like delay(500) to delay data send after each one. Such as Sen...
- 11 May 2022, 15:25
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Re: Control A Servo through Arduino by controling a joint in Coppelia Sim
Eureka! That works, thanks a lot. But now I want to send the joint position, p1=sim.getJointPosition(joint), and how can I add this '/n' message with this variable? Also for this code sim.serialSend(serialPortHandle,sim.packInt32Table({number})) -- send as coded int32 is there tutorial or example t...
- 11 May 2022, 11:15
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Re: Control A Servo through Arduino by controling a joint in Coppelia Sim
-Is it possible the find the Arduino code that control Esplora too? I feel that I am having the problem with the Arduino Code. -Another most probably a simple question is, each time a send a number from the serial port can I send a " '/n' " message such as: 45 /n 143 /n 5 /n Thanks a lot!
- 10 May 2022, 15:21
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Re: Control A Servo through Arduino by controling a joint in Coppelia Sim
Dear admin, Thank you very much for trying to help me. I really appreciate your support. I have 2 questions, 1- Do I need to write any other code to send the data as Int let's say. My code is such below function sysCall_init() cons=sim.auxiliaryConsoleOpen("Let's See",100,1) portString=[[\...
- 05 May 2022, 13:58
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Re: Control A Servo through Arduino by controling a joint in Coppelia Sim
I tried to use the codes you shared but the result is the same. I just found out by only blinking that the problem is the Arduino code side. If I use Serial.parseInt it doesn't work; however, if I use Serial.Read it does work. The difference is ParseInt() reads as many characters as it can before it...
- 04 May 2022, 16:11
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Re: Control A Servo through Arduino by controling a joint in Coppelia Sim
The issue is hardware is working, I can command Servo through serial monitor with the same code. So only thing I want the simulation to do send the Angle data in Radian as 1, 1.2, 2.1 etc. But when I start the simulation it seems like it send something as data but the servo does not understand the a...
- 04 May 2022, 15:59
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Re: Control A Servo through Arduino by controling a joint in Coppelia Sim
Since the Serial Port is busy by Simulation, I cannot see the data from the serial monitor of arduino. What kind of data type is sent by ser=sim.serialSend(serial,p1) code? (HEX, DEC etc.) Or is there another or an example I could follow in the forum? The most of I have seen was sending data from Ar...
- 04 May 2022, 11:05
- Forum: General questions
- Topic: Control A Servo through Arduino by controling a joint in Coppelia Sim
- Replies: 16
- Views: 2574
Control A Servo through Arduino by controling a joint in Coppelia Sim
Hello, I am a Robotic Student from Germany, and I am trying to control a servo by sending the angle data of a join in the simulation. I checked the Esplora.ttt and some other examples on the on the internet. However, even though I achieved a communication between Arduino and Coppelia Sim. It doesn't...