Anbieter: vendor-unknown

Turn on and off the Led using Magnetic Reed Sensor interfacing with Arduino Uno - KT831

7,01 €10,15 €30% OFF
Menge

Beschreibung

The reed switch is an electrical switch operated by an applied magnetic field. It consists of a sealed glass envelope When a magnetic substance approaches to the glass envelope, the reeds will come together due to the magnetic field thus completing an electric circuit.

  • Working voltage: 3.3V-5V
  • Output format: Digital switching output ( 0 and 1 )
  • Adopting LM393 comparator with wide voltage

HARDWARE REQUIRED
  • Arduino UNO with USB cable – 1
  • Magnetic Reed Sensor – 1
  • LED pack
  • Jumper wires (male to female ) - 20 pieces each
  • Mangnet - 1
SOFTWARE REQUIRED

Arduino IDE ( programmable software for Arduino boards )

You can download the software from this link: https://camblick.com/en/Main/Software

PIN DESCRIPTIONCIRCUIT DESCRIPTIONCODE

Click to see the code

https://camblick.com/document/d/e/2PACX-1vR2zM1lmCVMEaPI-XTro1nEqJ3SO4_ZDGXbUxbxQwiDbFgSeDrO8axn-ojVcWvkvyG96IV3O9PVq21b/pub

WORKING
  • The reed switch must work together with the magnet, when it detects magnetism, the circuit is connected and the module outputs low level; when there is no magnetic force, it is disconnected and module outputs high level. If the sensing range of the reed to the magnet is more than 1.5cm, it will become insensitive and it may not be triggered;
  • DO output terminal on the module can be directly connected to I / O port of MCU, the trigger state of reed switch can be detected through MCU;
  • DO output terminal on the module can be connected to IN terminal on relay to form a high-power reed switch for direct control of high voltage

Connect the power source and external red led will start glowing. When you take the magnet close to magnetic reed , external red Led will turn off and module’s green led will turn on.