So, we're making an autonomous plane that drops a payload(filled with water bottles). The payload is essentially a whole white loading design where we put in water bottles, and it contains a Arduino Nano 33 BLE Sense, a 9V Battery, and a servo to open and close the payload.
My friend had an idea regarding arming our payload, where they want to design a physical mechanicism to ensure that when the payload is on the plane, this mechanism stays closed(or connected) and when the payload is dropped, this mechanism breaks(or disconnect). They're thinking, for this, we should use magnets to close this mechanism where we have magnets on the payload that attach to those on the plane which will also help keep the payloads stable during our flight.
However, is it possible to connect like the 3.3v output on the arduino NANO 33 BLE Sense to another signal in pin? So that if there’s a current flowing into the signal in the board knows it’s on the plane but when that current stops it’s been dropped? Theidea with the magnets, continuing on the above thought, was that we could transmit an electrical current through two magnets when they’re attached but when the payload falls the magnets are pulled apart.
I'm still quite new to Arduino so I'm unsure if what's suggested is even possible or how that would work. I'd like to know of any open thoughts.