You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's about ~270 uA instead of ~30 uA.
Fix: pins to low state at the end of WaspSensorSWIons::OFF() digitalWrite(DIGITAL2, LOW); digitalWrite(DIGITAL5, LOW); digitalWrite(DIGITAL4, LOW); digitalWrite(DIGITAL3, LOW); digitalWrite(DIGITAL1, LOW);
The text was updated successfully, but these errors were encountered:
After some tests, I've found out that this change fix power consumption issue, but it break measures (first two measures Ok, but for next voltage for all sensors is 0.0). I've made some additional changes and now it works OK (correct consumption and correct measure).
Here are my current ON and OFF functions:
void WaspSensorSWIons::ON(void)
{
// Turn on the power switches in Waspmote
PWR.setSensorPower(SENS_5V, SENS_ON);
PWR.setSensorPower(SENS_3V3, SENS_ON);
delay(1000);
// These pins manage the analog multiplexor
// Digital pin 2 is for selecting
pinMode(DIGITAL2, OUTPUT);
pinMode(DIGITAL5, OUTPUT);
pinMode(DIGITAL4, OUTPUT);
pinMode(DIGITAL3, OUTPUT);
digitalWrite(DIGITAL2, HIGH);
digitalWrite(DIGITAL5, HIGH);
digitalWrite(DIGITAL4, HIGH);
digitalWrite(DIGITAL3, HIGH);
pinMode(DRDY, INPUT);
delay(100);
// Configure the ADC
myADC.begin();
}
It's about ~270 uA instead of ~30 uA.
Fix: pins to low state at the end of WaspSensorSWIons::OFF()
digitalWrite(DIGITAL2, LOW);
digitalWrite(DIGITAL5, LOW);
digitalWrite(DIGITAL4, LOW);
digitalWrite(DIGITAL3, LOW);
digitalWrite(DIGITAL1, LOW);
The text was updated successfully, but these errors were encountered: