Video tutorial on how control V-REP with Arduino+sensors
Posted: 03 Mar 2014, 22:51
Arduino + compass+ PSD sensor +V-REP simulation
This is a simple video tutorial to show how to control a V-REP simulation through a serial port, with an Arduino Mega 2560, collecting heading data from a magnetic compass HMC6352 and the distance to an obstacle with a Sharp GP2D12 PSD sensor. You can easily change the sensors by other devices like potentiometers (to make a joystick) or other sensors and adapt the code in both the Arduino and the simulation script.
We can push and rotate (Jedi style ;) ) the cube inside the V-REP simulation.
You can download the V-REP scene including the cube and the control code, along with the Arduino code to read the sensors, and prepare their values to be sent to the serial port toward the simulation here
http://youtu.be/ZJQV2FlGFBo
This is a simple video tutorial to show how to control a V-REP simulation through a serial port, with an Arduino Mega 2560, collecting heading data from a magnetic compass HMC6352 and the distance to an obstacle with a Sharp GP2D12 PSD sensor. You can easily change the sensors by other devices like potentiometers (to make a joystick) or other sensors and adapt the code in both the Arduino and the simulation script.
We can push and rotate (Jedi style ;) ) the cube inside the V-REP simulation.
You can download the V-REP scene including the cube and the control code, along with the Arduino code to read the sensors, and prepare their values to be sent to the serial port toward the simulation here
http://youtu.be/ZJQV2FlGFBo