Professional Documents
Culture Documents
Simple Voltage Read
Simple Voltage Read
h>
#include <SD.h>
void setup() {
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
Serial.println("Initializing SD card...");
if (!SD.begin(chipSelect)) {
return;
Serial.println("card initialized.");
delay(2000);
void loop() {
float voltage;
// open the file. note that only one file can be open at a time,
if (Ramon) {
Ramon.println(voltage);
Ramon.close();
Serial.println(voltage);
else {