headset and main breadboard, missing controller and end product of everything soldered on the board as Henry left and I could not use his phone to take a picture of it
/* ------------------------------------------------------------- */ /* This program stores fingerprint information in a structure. */ /* It then references a function to compute the overall category.*/ #include <stdio.h> /* Define a structure for the fingerprint information. */ /* The order for fingertips is right hand, thumb to pinky, */ /* and left hand, thumb to pinky. The codes are L for loops, */ /* W for whorls, and A for arches. */ struct fingerprint { int ID_number; double overall_category; char fingertip[10]; }; int main(void) { /* Declare and initialize variables. */ struct fingerprint new_print; double compute_category(struct fingerprint f); int k, w_num = 0, l_num = 0, a_num = 0; float w_per, l_per, a_per; /* Specify information for the new fingerprint. */ new_print.ID_number = 2491009; new_print.overall_category = 0; new_print.fingertip[0] = 'W'; new_print.fingertip[1] = 'L...
//data logging pressure and temperature data to SD card with time #include <Wire.h> #include <SD.h> #define BMP180_ADDRESS 0x77 // I2C address of BMP180 const int CS_PIN = 10; const int POW_PIN = 8; int refresh_rate = 5000; const unsigned char OSS = 0; // Oversampling Setting unsigned long t; double temp; int ac1; int ac2; int ac3; unsigned int ac4; unsigned int ac5; unsigned int ac6; int b1; int b2; int mb; int mc; int md; long b5; short temperature; long pressure; const float p0 = 101325; // Pressure at sea level (Pa) float altitude; //-------------------------------------------------------------------------------// void setup() { Serial.begin(9600); Wire.begin(); Serial.println("Initializing Card"); pinMode(CS_PIN, OUTPUT); if(!SD.begin(CS_PIN)) { Serial.println("Card Failure"); return; } Serial.println("Card Ready"); File commandFile = SD.open("speed.txt"); ...
Comments
Post a Comment