Home › Forums › Mayfly Data Logger › Water level monitor with a Mayfly. › Reply To: Water level monitor with a Mayfly.
You can connect the sensor power and ground pins to any power or ground pin on the Mayfly or any other Arduino board. The Maxbotix sensors draw just a few milliamps of current so I usually just connect the sensor power pin to an available Mayfly digital pin and switch it high or low to control the on-off cycle of the sensor, which is handy for situations where the logger is programmed for sleeping between measurements. However, I have found that some of the sensors don’t like having their power pin connected to the switched 3.3v bus on the Mayfly. So if you’re running the Mayfly without sleeping, just connect the sensor power to the 3.3v constant bus. If you’re sleeping the Mayfly between sensor readings and you want to shut off power to the sensor, then use a digital pin to provide the power.