Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino Pro Sends Data to the serial port for only a limited amount of time... on: August 11, 2011, 10:37:03 am
const int sensor1 = A0;                   // pin that the sensor is attached to
const double offSetCorrection = .170;


void setup() {
  Serial.begin(9600);//Sets up COM port
//  Serial.println("Power Monitering System!");

}

void loop() {

  int endTime = millis() + 21.66;

  double sensor1Sum = 0;
  int count = 0;

  while (endTime  > millis()){
      int value = analogRead(sensor1);
      double sensedVoltage = value * .0049;
      double current = ((sensedVoltage-2.5) / .1);
      sensor1Sum = (sensor1Sum + (current * current));
      count++;
        }
       
  double RMS = sqrt((sensor1Sum/count));
 
  if ( RMS < offSetCorrection){
    RMS = 0;
  }
 
 
  Serial.print(":");
  Serial.print(RMS, 4);
  delay(1000);

  }
 
2  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino Pro Sends Data to the serial port for only a limited amount of time... on: August 11, 2011, 10:24:08 am
How?
3  Using Arduino / Interfacing w/ Software on the Computer / Arduino Pro Sends Data to the serial port for only a limited amount of time... on: August 10, 2011, 06:45:07 pm
Can I get it to send data continually while it is connected?
Thanks for the help!
4  Using Arduino / Project Guidance / Feasibility for an Auduino project that changes a multicolor LED array w/ sound? on: July 27, 2011, 03:33:48 pm
I am wondering if it would be feasible to design a project that takes sounds from an audio Jack, MDI, or mic and change the output of an LED array (preferably bright mutli color LEDS). For example one setting would be an EQ and another would be a light show that flashes a white strobe to the base.

5  Using Arduino / Sensors / Re: A/D conversion with Lilypad on: July 27, 2011, 03:28:16 pm
Great! Thanks for the help!
6  Using Arduino / Sensors / A/D conversion with Lilypad on: July 26, 2011, 01:41:38 pm
Can any of the 6 analog input/outputs be used as Analog to Digital converters? I need to read 6 separate analog voltage sensors.
Pages: [1]