Hi, first off all I want to say that I’am new to Arduino world and I’m loving it and greetings for everyone.
Hi have an Arduino 2560 and a Float switch with 2 wires.
Here is the photo:
So I have a red and a blue wire and I want to know when the switch is activated.
So where do I have to connect this 2 wires and how to read if the float is activated?
I connect 1 wire to ground and other to a digital or analogue pin?
I also want to detect when I have a power outage. So I have a UPS with 4 battery’s that can run the arduino with no problem when eletricity is gone. So I thought in this:
- Conect a adapter to the eletricity out of the UPS system. It is a DC-3V - 500mA adapter.
- Conect the plus of the adapter to arduino and read the value and the ground to the ground of arduino.
- When there is power arduino will read some value, and when there is a power outage arduino will read zero.
So by doing this I will damage arduino because I have heard of 40mA limitation (the adapter is only 3V but it is 500mA) on the pins but on the other side I read also that some people could detect when there is a power outage by this way.
I need some help here to know what should I do to detect a power outage with this adapter and without destroying Arduino.
Thanks and greetings.