Throttle Position Sensor Reader

Reads voltage outputted by throttle sensor and writes it to a text file. Also checks for a few errors including too low or high of a voltage, which could help to identify wiring problems, or a file system error to indicate issues with the SD card. Has a set enable pin that it will wait for in order to start setup, and by turning it off can be used to save the file and stop recording of data. In the case that a serial monitor is connected, there are commands to enable printing of data to serial monitor, calculate and print out averages, print out files, calibrate the sensor to a certain voltage, and to save the file and stop recording. Also included is a C program that with the input of the SD card's name on the operating system can mount the file system, and with the help of a shell script can move the files from the SD card, rename them, and add the desired permissions and owner. Also, pretty frequently, if you forget to save and stop the recording, and just cut the power, the file will often have a bunch of random characters thrown at the beginning, or carriage returns were put next to all of the new lines. For this reason, I also had this program remove anything from the files that isn't a number, a period, or a newline. Then, the statistics generator can be run, which will generate averages, minimums, and maximums split by 10 minutes, or by the end of a file. It will also generate the total average, minimum, maximum, and amount of time recorded. The data can also be graphed using the graph program, which loads a chosen file into gnuplot.

0 Lifts 

Artifacts

Name Description
Arduino Code Code to run esp32. Measures a 0-5 volt analog signal and writes to SD card. Also runs RGB light to display any error codes. Can take serial commands to enable printing of voltages to serial monitor, read any of the files, or display averages.   Download
Clear SD card Moves files from SD card to computer, and removes any corruption that may have gotten into the files due to improper saving.   Download
Statistics Generator Generates minimum, maximum and average values at 10 minute intervals and at file breaks. Also produces overall minimum, maximum, average, and time recorded. It then writes all of this to a file.   Download
Grapher Graphs selected range of selected file in gnuplot. Defaults to entire file if no default is set.   Download
Serial Monitor Showcase Video showing off features of serial monitor   Link
Laptop software showcase Shows off the SD card clearer, the stats generator, and the grapher.   Link