So, this was a problem/challenge given as part of the induction project for one of the technical associations/initiatives on campus. Essentially, the problem statement was to interface with MPU6050 and plot the results live on the computer.
I kinda managed to do this using Python's matplotlib. It's been a while since I've used Python before, so had to look up a lot of pages on how to use matplotlib. Since I didn't use Python's CSV library, nor did a lot of File Handling with Python before, I thought I'd try using it in this to generate a CSV file of all the readings that were being read from the Arduino. For the Arduino, I used the readymade MPU Library to get the values.
The code I wrote for this works, kinda, but it's messy. This was a one day job, so there's a lot of repetitive code that could be eliminated. Also, this is the first time I've tried using matplotlab for real time results. Link for code here. I'll probably get back to this some day and do it properly.
I kinda managed to do this using Python's matplotlib. It's been a while since I've used Python before, so had to look up a lot of pages on how to use matplotlib. Since I didn't use Python's CSV library, nor did a lot of File Handling with Python before, I thought I'd try using it in this to generate a CSV file of all the readings that were being read from the Arduino. For the Arduino, I used the readymade MPU Library to get the values.
The code I wrote for this works, kinda, but it's messy. This was a one day job, so there's a lot of repetitive code that could be eliminated. Also, this is the first time I've tried using matplotlab for real time results. Link for code here. I'll probably get back to this some day and do it properly.

Comments
Post a Comment