Hello, I am new to Arduino/Coding - I want to combine Two sketches - a Gyroscope(MPU6050), a Humidity/Temperature Sensor(DHT11), and want the data to be saved on a, "5V ready Micro-SD Breakout board+(Adafruit)".
Below, I have the sketches for the DHT11 and the MPU6050. They do work on their own, but I have trouble combining the two codes - which I have also attached a file of named, "SketchCombineAttempt".
When I upload and view the serial monitor - the MPU6050 Gyroscope makes a successful connection and but will display a FIFO overload, after displaying a few x,y,z, points.
And during this time, the humidity/temperature is also displayed, but with an error, giving negative readings/numbers.
The code gets verified and uploaded with no problem and the Arduino board seems to have a successful connection with the two sensors - but can't really figure it out from just looking at the codes.
I am planning on placing the finished product onto a rocket, and get gyroscope/humidity/temperature readings, that will be saved onto a Micro-SD card.
So, how would I edit the code to allow the Borad+Sensors to gather information, store it onto an SD card, by powering it with a 9v battery?
- Thank you
DHT11.txt (2.2 KB)
MPU6050.txt (16.1 KB)
SketchCombineAttempt.txt (9.96 KB)