ecarson
Well-Known Member
- Joined
- Mar 21, 2017
- Messages
- 110
- Reaction score
- 17
I described my recent exploits with Arduino and the Visuino programming environment on another thread.
Today, I pieced together a working system, albeit in development still, but capable of being flown in a rocket payload after
hardening connections and some more software tweaking. My main objective here is to show the possibility for instrumentation
at low hardware costs.
Starting with the Arduino Nano, which I got at 3 for $11, or $3.67 each as the base.
https://www.amazon.com/gp/product/B0713XK923/?tag=skimlinks_replacement-20
Then a MPU-6050 6DOF accelerometer/gyroscope module.
https://www.ebay.com/itm/3-Axis-Acc...e=STRK:MEBIDX:IT&_trksid=p2060353.m2749.l2649
Finally, an OpenLog SD serial recording breakout.
https://www.ebay.com/itm/Openlog-Se...hash=item25d8cad41d:m:mj6idSOxWAU2TZPea2HPo-A
I used the Visuino recording tutorial to hook up the Arduino Nano to the MPU-6050 and generate the sketch. I described all that in the other thread.
https://www.rocketryforum.com/showt...l-Automatic-Coding-for-Arduino-Visuino-System
After getting this operational, I probed the TX port on the Nano to see what was happening. I was getting a string of logic level pulses, but had no idea of what they consisted of. On a whim, I hooked up the TX1 to the RX1 pin on the OpenLogger, with 9V and ground from the breadboard bus powering the OpenLogger (datasheet shows 3.3 to 12V at VCC OK there).
The Nano is powered by the same 9V to it's VCC port, however the MPU-6050 is powered by the 5V from the Nanos 5V pin. Again, that system is described in more detail by the Visuino site, with a youtube video explaining that part of the system.
I plugged in the battery, and the LED's on the SD logger indicated activity. I let it run for a few seconds, and then picked up the breadboard and rotated it around. Then unplugged the battery, pulled the micro-SD card from the logger, and put it into my desktop.
I had quite the shock, when I found that the logfile on the SD card was in the same formatted text as the serial window on the Visuino terminal. From there, it was a simple matter to import the text file off the SD card into Excel, and generate the charts you see below.
I am sitting here in a bit of disbelief, but it worked. A few item notes for further development.
1. The MPU-6050 has a maximum of ±16G, and right now is set at ±2G maximum for bench test work.
2. MPU-6050 gyro set currently set at 250 deg/s maximum. That can be modified though up to 2000 deg/s.
3. The entire system is set at 9600 baud, and I had to modify the config.txt file on the SD logger to work at that speed.
4. I'm using an 8GB micro SD card, completely reformatted to FAT32 in the logger.
5. I still need to measure current draw, but it may be on the order of less than 100 mA even with SD writing.
6. I see no reason why this would not work with the higher G-level breakouts.
7. Possibility for adding temperature with current MPU-6050, and magnetometer with a MPU-9250.
8. Implementing a real time clock, and recording that data with each sample is a future project.
9. Powering using a 2S LiPo, instead of a 9V alkaline definitely possible.
Here is photo of the working bench system, and a couple of charts taken directly from the SD logfile just a few minutes ago.

Today, I pieced together a working system, albeit in development still, but capable of being flown in a rocket payload after
hardening connections and some more software tweaking. My main objective here is to show the possibility for instrumentation
at low hardware costs.
Starting with the Arduino Nano, which I got at 3 for $11, or $3.67 each as the base.
https://www.amazon.com/gp/product/B0713XK923/?tag=skimlinks_replacement-20
Then a MPU-6050 6DOF accelerometer/gyroscope module.
https://www.ebay.com/itm/3-Axis-Acc...e=STRK:MEBIDX:IT&_trksid=p2060353.m2749.l2649
Finally, an OpenLog SD serial recording breakout.
https://www.ebay.com/itm/Openlog-Se...hash=item25d8cad41d:m:mj6idSOxWAU2TZPea2HPo-A
I used the Visuino recording tutorial to hook up the Arduino Nano to the MPU-6050 and generate the sketch. I described all that in the other thread.
https://www.rocketryforum.com/showt...l-Automatic-Coding-for-Arduino-Visuino-System
After getting this operational, I probed the TX port on the Nano to see what was happening. I was getting a string of logic level pulses, but had no idea of what they consisted of. On a whim, I hooked up the TX1 to the RX1 pin on the OpenLogger, with 9V and ground from the breadboard bus powering the OpenLogger (datasheet shows 3.3 to 12V at VCC OK there).
The Nano is powered by the same 9V to it's VCC port, however the MPU-6050 is powered by the 5V from the Nanos 5V pin. Again, that system is described in more detail by the Visuino site, with a youtube video explaining that part of the system.
I plugged in the battery, and the LED's on the SD logger indicated activity. I let it run for a few seconds, and then picked up the breadboard and rotated it around. Then unplugged the battery, pulled the micro-SD card from the logger, and put it into my desktop.
I had quite the shock, when I found that the logfile on the SD card was in the same formatted text as the serial window on the Visuino terminal. From there, it was a simple matter to import the text file off the SD card into Excel, and generate the charts you see below.
I am sitting here in a bit of disbelief, but it worked. A few item notes for further development.
1. The MPU-6050 has a maximum of ±16G, and right now is set at ±2G maximum for bench test work.
2. MPU-6050 gyro set currently set at 250 deg/s maximum. That can be modified though up to 2000 deg/s.
3. The entire system is set at 9600 baud, and I had to modify the config.txt file on the SD logger to work at that speed.
4. I'm using an 8GB micro SD card, completely reformatted to FAT32 in the logger.
5. I still need to measure current draw, but it may be on the order of less than 100 mA even with SD writing.
6. I see no reason why this would not work with the higher G-level breakouts.
7. Possibility for adding temperature with current MPU-6050, and magnetometer with a MPU-9250.
8. Implementing a real time clock, and recording that data with each sample is a future project.
9. Powering using a 2S LiPo, instead of a 9V alkaline definitely possible.
Here is photo of the working bench system, and a couple of charts taken directly from the SD logfile just a few minutes ago.



Last edited by a moderator: