Skip to content

C/C++ code for teensy 4.1 microcontroller to poll and log sensor data (IMU, 3 RTDs) using multithreading

Notifications You must be signed in to change notification settings

jonl40/Rocket_Payload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rocket_Payload

C/C++ code for teensy 4.1 microcontroller to poll and log sensor data (IMU, 3 RTDs) using multithreading
Python pandas, matplotlib for data visualization

References / Filter Design

https://github.com/pms67/HadesFCS/blob/master/Filtering/C%20Code/FIR.h
https://www.youtube.com/watch?v=uNNNj9AZisM
https://www.youtube.com/watch?v=QRMe02kzVkA
http://t-filter.engineerjs.com/

Libraries Used

Multithreading library by Fernando Trias https://github.com/ftrias/TeensyThreads
ICM 20948 Arduino Library by Owen Lyke @ SparkFun Electronics https://github.com/sparkfun/SparkFun_ICM-20948_ArduinoLibrary
Adafruit PT100/P1000 RTD Sensor w/MAX31865 library by Limor Fried/Ladyada @ Adafruit Industries

Set up

https://www.arduino.cc/en/software
https://www.arduino.cc/en/Guide/Linux
https://playground.arduino.cc/Linux/All/#Permission
https://www.pjrc.com/teensy/td_download.html
In Arduino IDE Tools -> manage libraries search and install Adafruit_MAX31865
Install ICM-20948 https://github.com/sparkfun/SparkFun_ICM-20948_ArduinoLibrary
OR Install ICM-20948 with http://librarymanager/All#SparkFun_ICM_20948_IMU in IDE
Install Multithreading library https://github.com/ftrias/TeensyThreads
In Arduino IDE Tools -> Board -> Teensyduino -> Teensy 4.1
In Arduino IDE Tools -> Port -> "port connected to Teensy 4.1"

RTD Plot

RTD

IMU Plot

IMU

Acceleration Plot

ACC

Gyro Plot

GYR

Mag Plot

MAG

Schematic

Schematic_Payload_2021-08-14

About

C/C++ code for teensy 4.1 microcontroller to poll and log sensor data (IMU, 3 RTDs) using multithreading

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages