coloitu_
Published © CC BY-ND

Simple Amatour Model Rocket Altimeter

Make an altimeter for DIY model rockets!

BeginnerFull instructions provided1 hour1,326
Simple Amatour Model Rocket Altimeter

Things used in this project

Hardware components

Seeed Studio Seeeduino Xiao
×1
BMP280
×1
Micro SD card reader
×1
PCBWay Custom PCB
PCBWay Custom PCB
This PCB was made by me. To order click the following link https://www.pcbway.com/project/shareproject/Simple_Amatour_Model_Rocket_Altimeter_53967da9.html
×1

Software apps and online services

EasyEDA

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Schematics

Schematic

Code

Code

Arduino
#include <SD.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_BMP280.h>
Adafruit_BMP280 bmp;
Adafruit_Sensor *bmp_temp = bmp.getTemperatureSensor();
Adafruit_Sensor *bmp_pressure = bmp.getPressureSensor();
File myFile;
void setup() {
Serial.begin(9600);
Serial.println(F("BMP280 Sensor event test"));
Serial.print("Iniciating SD ...");
#define seconds (millis()/1000)
if (!SD.begin(3)) {
Serial.println("Could not iniciate");
return;
}
if (!bmp.begin()) {
Serial.println(F("Could not find a valid BMP280 sensor, check wiring or "
"try a different address!"));
while (1) delay(10);
}
bmp.setSampling(Adafruit_BMP280::MODE_NORMAL,
Adafruit_BMP280::SAMPLING_X2,
Adafruit_BMP280::SAMPLING_X16,
Adafruit_BMP280::FILTER_X16,
Adafruit_BMP280::STANDBY_MS_500);
bmp_temp->printSensorDetails();
Serial.println("inicialication successful");
}
void loop() {
sensors_event_t temp_event, pressure_event;
bmp_temp->getEvent(&temp_event);
bmp_pressure->getEvent(&pressure_event);
myFile = SD.open("datalog.txt", FILE_WRITE);
if (myFile) {
Serial.print("Writing SD: ");
myFile.println(" ");
myFile.print(" Time(s)=");
myFile.print(seconds);
myFile.print(" Time(ms)=");
myFile.print(millis());
myFile.print(F(" Temperature = "));
myFile.print(temp_event.temperature);
myFile.print(F(" Pressure = "));
myFile.print(pressure_event.pressure);
myFile.print(F(" Approx altitude = "));
myFile.print(bmp.readAltitude(1013));
myFile.close();
Serial.print(F("Temperature = "));
Serial.print(temp_event.temperature);
Serial.println(" *C");
Serial.print(F("Pressure = "));
Serial.print(pressure_event.pressure);
Serial.println(" hPa");
Serial.print(F("Approx altitude = "));
Serial.print(bmp.readAltitude(1013));
Serial.println(" m");
Serial.println();
delay(100);
}
}

Credits

coloitu_

coloitu_

19 projects • 3 followers

Comments