MSCL icon indicating copy to clipboard operation
MSCL copied to clipboard

How to Reading sensor data on Arduino mega

Open Mohit953 opened this issue 5 years ago • 5 comments

I want to read the sensor data using the Arduino mega. I am not getting how to start the implementation. Can anyone guide me with this?

Mohit953 avatar Mar 22 '20 12:03 Mohit953

Hi! I'm not very familiar with Arduino development, but I suspect you're going to run into memory issues trying to use MSCL. What sensor(s) are you using?

msclissa avatar Mar 23 '20 13:03 msclissa

my aim is to integrate this to ardupilot. How to do that? My sensor is 3DM-CV5-25.

Mohit953 avatar Mar 23 '20 15:03 Mohit953

I'm afraid MSCL and all it's dependencies will be too big to load onto the Arduino as part of your program, it was not designed for use on microcontrollers. I would recommend taking a look at our MIP SDK - it does not specifically have examples for the CV5-25, but you may find the GX4-25 example project (MIP SDK\C\Examples\Windows\GX4-25\GX4-25_Test) useful, as well as the user guide (MIP SDK\C\Documentation\MIP SDK Users Guide.docx).

This should be used in combination with the CV5-25 Data Communications Protocol document which describes the data fields and commands available for this device.

Regarding incorporating external code into your development environment and/or use within ArduPilot, your best bet is to find documentation specific to Arduino/ArduPilot development, but if you run into any problems related to our code we'd be happy to help resolve them. If you take a look at the above resources and need any clarification about anything let me know!

msclissa avatar Mar 23 '20 19:03 msclissa

If not arduino, STM32f1 discovery board, or Pixhawk board could do the work. Actually i am confused how to start this. Because, i donot want to try it with RPi board with ROS. I want to make it work with the pixhawk board or any STM32 family board.

Mohit953 avatar Mar 24 '20 17:03 Mohit953

Yes planning to read the imu yaw pitch and roll from this CV5-AR through STM32-F4 board as MSCL files are bit big and messy for me to understand so please provide the library for the same and pinout diagram for it.

ShubhamNarendraSingh avatar Jan 04 '22 03:01 ShubhamNarendraSingh