Frazic
New Member
Hey guys, I have been trying to actuate an Arduino Servo with the speed of the car I'm driving. I have managed to extract the live data from the game using Shared Memory and am trying to send it to the Arduino over the Serial port.
I have not yet managed to represent the actual speed of the car on the Servo, and I am wondering why. I'm pretty sure the problem comes from the Arduino Code, I'm either not receiving the data properly or misusing it. Could you have a look and help?
Thanks!
C++ Program to send data to the Arduino :
This is based on the Shared Memory reference : http://www.assettocorsa.net/forum/index.php?threads/shared-memory-reference-31-03-2016.3352/
Arduino Code :
The Serial Communication between the C++ program and the Arduino is done with this library :http://playground.arduino.cc/Interfacing/CPPWindows
Thanks a lot, hope you can help!
I have not yet managed to represent the actual speed of the car on the Servo, and I am wondering why. I'm pretty sure the problem comes from the Arduino Code, I'm either not receiving the data properly or misusing it. Could you have a look and help?
Thanks!
C++ Program to send data to the Arduino :
This is based on the Shared Memory reference : http://www.assettocorsa.net/forum/index.php?threads/shared-memory-reference-31-03-2016.3352/
Arduino Code :
The Serial Communication between the C++ program and the Arduino is done with this library :http://playground.arduino.cc/Interfacing/CPPWindows
Thanks a lot, hope you can help!