AWOL, thanks for your reply. I didn't think to provide additional info because like I said, adding/removing components does not seem to be the issue. I'm using a CNY70 as a line counter, MLX90614 (IR temp sensor), gas sensor MQ-7, and humidity sensor HS1101-LF. http://www.datasheetcatalog.com/datasheets_pdf/C/N/Y/7/CNY70.shtml http://www.melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspxhttp://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-7.pdfhttp://www.meas-spec.com/downloads/HS1101LF.pdf
Line counter is wired to interrupt pin 2 on arduino board. IR temp. sensor, being an I2C device goes to pins A4 & A5. The other 2 go into A3 &A2 for analog measurements
Arduino 5V and GND wires go into the power rail of a solderless breadboard. All components are wired according to datasheet specs. I must stress the fact that everything works perfectly fine until the arduino shuts the power off.
I've tried to isolate the problem to either faulty hardware or a bad sketch, but even if I'm using only one sensor (with everything else unwired) it still happens.
James, I just use a multimeter to measure voltage between the 5v and gnd pins on the arduino board. I get 0. Following is the sketch I use to measure gas, you'll notice it's a straight ripoff from the examples. It'll measure for a while then just return 0s because the sensor isn't powered.
unsigned int BAUD_RATE = 9600 ;
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
int sensorValue = 0; // value read from the pot
int outputValue = 0; // value output to the PWM (analog out)
int number = 0;
// read the analog in value:
sensorValue = analogRead(analogInPin);
// map it to the range of the analog out:
outputValue = map(sensorValue, 0, 1023, 0, 255);
// change the analog out value: