Hello everyone! So I am trying to create a tachometer and shift indicator for a project car. This involves taking the frequency of the tachometer pulse from the engine and displaying this on a seven segment display and on an LED strip. In the future I will be adding sensors such as accelerometer, optical speedometer, temps, etc, and would like to record all of this on an SD card for tuning purposes. I would like to create a new file each time the unit is reset, so I can analyze individual runs without having to manually split a text file with thousands of lines. The problem is when the SD is not inserted into the shield the program runs fine, albeit without SD functionality. When it is inserted the program hangs on the “Initializing SD Card…” line and then spits a backwards question mark into serial monitor, and no other code is ran. I am using a Mega with the ethernet/SD shield from the arduino store and have attached the relevant code. Any input is appreciated!
ProjectCar.ino (4.87 KB)