Reed switch with inverse logic using 1-channel relay board

Customer:

I received your shipment. I’m interested in whether you have sensors like this but with inverse logic - meaning the circuit is closed normally, but opens when it approaches a magnet. I’m not an expert on this, but I’m troubled by the problem.

Original message (Croatian)

Pozdrav Danas sam.primio Vašu pošiljku.Interesira me imate li ovakvih senzora ali da su kontra ovoga. Znači da je zatvoren str.krug a kod dolaska do magneta da se prekine str. krug.Nisam te struke ali ovo me mući.lp

Originally submitted via email support on 29 August 2024. Migrated to the forum for community visibility.

Soldered Support:

Unfortunately we don’t have such switches, but you can use a relay to achieve the same effect.

Required relay: 1-Channel Relay Board for High Voltage Control – Soldered Electronics

Connections:

Relay power supply:

  • Connect the VCC pin of the relay to the positive pole of the power supply (5V)
  • Connect the GND pin of the relay to the negative pole of the power supply (GND)
  • A DC 5V adapter is needed for this

Reed switch:

  • Connect one end of the reed switch to GND
  • Connect the other end of the reed switch to the INPUT pin of the relay

Load and relay contacts:

  • Connect one end of the load to the power source (e.g. 230V AC for household appliances or 12V DC for low-voltage devices)
  • Connect the other end of the load to the COM (Common) pin on the relay
  • Connect the NC (Normally Closed) pin to the negative pole of the load’s power supply

This way the switch will keep the load off when the two magnets are connected (cabinet closed) and the load on when the magnets are separated.

Original message (Croatian)

na žalost nemamo takve prekidače, ali možeš koristiti relej kako bi dobio isti učinak:
Ovo je relej koji je potreban: 1-Channel Relay Board for High Voltage Control – Soldered Electronics

Spajanje: Napajanje za relej:
VCC pin releja spojite na pozitivan pol napajanja (5V). GND pin releja spojite na negativan pol napajanja (GND). Za ovo je potrebno imati adapter iz AC u DC 5V, npr ovaj: WiFi & Bluetooth | Wireless IoT Hardware – Soldered Electronics Reed prekidač:
Jedan kraj reed prekidača spojite na GND. Drugi kraj reed prekidača spojite na INPUT pin releja. Trošilo i relej kontakti:
Spojite jedan kraj trošila na izvor napajanja (npr. 230V AC za kućni uređaj ili 12V DC za niskonaponski uređaj). Spojite drugi kraj trošila na COM (Common) pin na releju. Spojite NC (Normally Closed) pin na negativan pol napajanja trošila.
Tako će prekidač držati trošilo ugašenim kad su dva magneta spojena (ormarić je zatvoren) a trošilo upaljenim kad su magneti odvojeni.

Nadam se da to pomaže :slight_smile: