I am new to Netduino, though I recently bought Netduino Plus.
I am trying to build a small project where I need to log some analog sensor data and date-time in a csv file on SD card.
Here is a small code which I wrote for CO sensor.
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; using System.IO; using Ethernet.Data; namespace co { public class Program { public static void Main() { // write your code here AnalogInput coSensor = new AnalogInput(Pins.GPIO_PIN_A0); coSensor.SetRange(0, 1024); while (true) { Debug.Print(coSensor.Read().ToString()); Thread.Sleep(1000); } } } }
Please help me log it on SD card.
Thanks.
Z