Reed Switch normally open or normally closed
-
@skywatch I recollect reading in another project that a NC /NO type reed switch consumes less power than a single output. In that project the author was setting the pin to "floating" when it opened to reduce the power consumption.
Is such the case? I
Thanks@Puneit-Thukral I guess it depends on the hardware the user was using and how it was wired up!
Really it is just an on /off switch. Well, in your case 2 on/off switches with the connectors commoned at one end of the switch.
Is this for a door/window/similar type application?
-
@Puneit-Thukral I guess it depends on the hardware the user was using and how it was wired up!
Really it is just an on /off switch. Well, in your case 2 on/off switches with the connectors commoned at one end of the switch.
Is this for a door/window/similar type application?
@skywatch in my case I will be using for a door sensor.
-
@skywatch I recollect reading in another project that a NC /NO type reed switch consumes less power than a single output. In that project the author was setting the pin to "floating" when it opened to reduce the power consumption.
Is such the case? I
Thanks@Puneit-Thukral Saving power by floating the pin may return spurious triggers, pull-up resistors give a solid open/close.
The gas meter here has a simple reed, now in it's second year on 2xAA at ca 30,000 actions/year, simple high value resistor bridge with a cap across the lower to ground to minimise noise and deal with "bounce" yet minimise current used. -
@Puneit-Thukral Saving power by floating the pin may return spurious triggers, pull-up resistors give a solid open/close.
The gas meter here has a simple reed, now in it's second year on 2xAA at ca 30,000 actions/year, simple high value resistor bridge with a cap across the lower to ground to minimise noise and deal with "bounce" yet minimise current used.@zboblamont Thanks.. this is promising.. Of course, I was trying to complicate this way too much than needed. I will work with the regular reed switch.
-
@zboblamont Thanks.. this is promising.. Of course, I was trying to complicate this way too much than needed. I will work with the regular reed switch.
@Puneit-Thukral Did you see this?....
-
@skywatch Yes I did try this first.. but I am trying to merge reed sensor with BME280 running on battery (preference is of a coin cell) and I am not using Arduino pro mini or similar. I am trying NRF51822. I did search the forums and openhardware. Most of the sketches available for this board are for NRF52 series board. I already have 10 of the NRF51822 boards and I would like to use them.
On another thread I posted my sketch where I merged but it is not working for me. :-(Alas, my struggles continue. I am not a programmer but a copy/paste kind of a person. I am sightly modify code but still cannot write from scratch..getting there slowly.
Cheers!
-
@skywatch Yes I did try this first.. but I am trying to merge reed sensor with BME280 running on battery (preference is of a coin cell) and I am not using Arduino pro mini or similar. I am trying NRF51822. I did search the forums and openhardware. Most of the sketches available for this board are for NRF52 series board. I already have 10 of the NRF51822 boards and I would like to use them.
On another thread I posted my sketch where I merged but it is not working for me. :-(Alas, my struggles continue. I am not a programmer but a copy/paste kind of a person. I am sightly modify code but still cannot write from scratch..getting there slowly.
Cheers!
@Puneit-Thukral OK - post the TWO codes completely here and I will TRY and help you merge them. That said I have NO experience of the 51822 and so you may still need help. I am fairly busy at the moment but in a few days I should have time to help you out.
-
@Puneit-Thukral OK - post the TWO codes completely here and I will TRY and help you merge them. That said I have NO experience of the 51822 and so you may still need help. I am fairly busy at the moment but in a few days I should have time to help you out.
@skywatch thanks a lot for offering to help. I think I have made some headway.
I used @NeverDie sketches. The one for nrf24 or RFM69 don’t really work well with waking up the nrf51 chip or maybe I made some mistake and were consuming way too much power.Anyhow , the test sketch is running and interrupts are working fine as well as the bme280 reports fine.
Tomorrow I will move it a battery powered and observe.Cheers!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login