10 years, 3 months ago.

How to establish communication with mbed via can bus unity 3d?

Hi All,

I am currently on a project on a force feedback steering wheel for driving simulator. The steering system of the simulator consists of a steering wheel, the steering wheel axis, a position sensor (potentiometer) attached to the wheel shaft to measure the position of the steering wheel and a development board mbed NXP LPC1768 which allows acquire real-time signal potentiometer send it to the computer through the can bus protocol. UNITY 3D software and receives the value of the steering wheel position to calculate the dynamics of the vehicle in the virtual environment and then display its movement on the screens of the simulator. The virtual and the car has already been done environment, it remains only to establish communication between the mbed and unity 3d card via the can bus. How can I establish this communication? Thank you

1 Answer

10 years, 3 months ago.

There is a CANOpen stack (CanFestival) that has been ported to the mbed. I don't know what upper-level CAN protocol "UNITY 3D" wants to talk, though.

Do you already have a CAN interface for the machine running the UNITY 3D software?

Depending on your operating environment, it may make sense to use a CAN-aware program to do the CAN bus communications, and have it feed the CAN information to the UNITY 3D simulator.

CanFestival comes with some sample code and utility programs that should get you started, at least if you're using Linux.