6/11/2023 0 Comments Arduino sd card issues#define number_samples_per_measurement 5 //the number of ADC readings used to make an average of each measuring point, note this number greatly effects sweeping time #define voltage_gain_ratio 10 //the realtion between the voltage level on the pin and the voltage level from the solar panel #define current_gain_ratio 2 //the realtion between the voltage level on the pin and current on from the solar pannel #define time_per_data_set 500 //the delay between datasets in milisecondss, note the the "delay = system_computation_time + time_per_data_set" #define number_of_samples 100 //number of measurements, should be able to be divided by 4 without giving decimals #define ADC_to_voltage 1/213 // the value for converting the arduino ADC to voltage I ran the the following code for 3 days and when I came back the SPI was none responding (I have done 1 hours tests before with no problem, and I have checked that the system changes files correctly) #include "SPI.h" My problem is that my SPI interface on the SD cards stop responding during continues used.Īnd a "Kingston MicroSDHC 4GB Secure Digital Card, 66X" for storage The sweeps are being done in real time, ones a second, and is stored on a SD card in files split into hours. I have created a simple arduino code for sweeping a curve on 2 analog pin, controlled by a DAC unit. ![]() I'm having a real anoying problem that I carnt seem to find a solution on.
0 Comments
Leave a Reply. |