Jump to content
43oh

SamSMK

Members
  • Content Count

    5
  • Joined

  • Last visited

About SamSMK

  • Rank
    Noob Class

Profile Information

  • Location
    USA
  1. MSP 430 We need to edit it and make it read a battery voltage and we can't use normal c or c++
  2. I have made this code with my group now we want to edit it and make the code read voltage of a battery but we're not sure how to edit it because the professor want it in the same form as below and by the simple C Please don't forget to put comments so I would know what you actually changed float ThresholdExceeded = 0; char x[] = " out of 3.3v \n"; volatile unsigned int i=2001; void setup() { ADC12CTL0 = ADC12SHT02 + ADC12ON; // Sampling time, ADC12 on ADC12CTL1 = ADC12SHP; // Use sampling timer ADC12IE = 0x01; /
  3. Hi guys, So, we are making a project where we use 3 UV sensors. We want to get the readings of 3 sensors connected together but we want the serial monitor to show only the readings of the highest intensity of the sensors. So whenever one of the sensor is been directed towards the sun we want only that sensor's readings to show up. And we are not sure how to make the 3 sensors all in one code Thanks! This is the original code of one sensor //Hardware pin definitions int UVOUT = A0; //Output from the sensor int REF_3V3 = A1; //3.3V power on the Arduino board void setup() { Serial.
  4. So we are doing a project where we gonna use 3 UV sensors. I was just wondering how can we use the code more than one time? Like how can we triple it? this is the code. /* AnalogReadSerial Reads an analog input on pin A3, prints the result to the serial monitor. Attach the center pin of a potentiometer to pin A3, and the outside pins to ~3V and ground. Hardware Required: * MSP-EXP430G2 LaunchPad * 10-kilohm Potentiometer * hook-up wire This example code is in the public domain. */ // the setup routine runs once when you press reset: void
×
×
  • Create New...