LiyouZhou / mbed-work-experience

0 stars 0 forks source link

Intruder alarm using ubits #16

Open LiyouZhou opened 6 years ago

LiyouZhou commented 6 years ago

Problem: I have a door mounted ubit, with a magnet mounted to the frame.

  1. 2 microbits not physically connected to each other
  2. One detecting magnetic field, if the field strength is > 100000. Send a radio signal.
  3. The second ubit constantly listens to radio signals, if a signal is received, light up all leds.

Steps:

  1. try sending a radio signal and see if it is received
  2. Try reading the magnetometer in a loop and print out the strength. Experiment with magnet and what the reading you get.