Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Driveway Alarm / Vehicle detection

Driveway Alarm / Vehicle detection

Scheduled Pinned Locked Moved Hardware
4 Posts 4 Posters 3.2k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tris
    wrote on last edited by
    #1

    After extensive googling i found others who had successfully used a HMC5883 magnetometer/compass to detect metal vehicles - AKA cars.

    The use cases are around car parking (detect when car space is free) and car counting (counting number of cars that use a road).

    I would really like to use this HMC5883 sensor to detect a car moving past the sensor, to act as a cheap driveway alarm.

    I am hoping to use a battery powered node for this, and i think a big induction is too power hungry loop and i would like to avoid digging and placing a sensors in the road.

    Existing driveway alarms seem to use a (magnetic field change?) probe to detect a car, but i cant find just the probe available, and kits are quite expensive and defeat the point of MySensors - DIY!!
    The HMC5883 solution would be low power and i could maybe get away with the sensor/node beside the road and not underneath it.

    I discovered this: https://gitlab.com/ColoradoSchoolOfMines/parking_sensor/commit/cca7b040654297fd06bc806e0ca8cef844f8d456
    which works - serial prints CAR in or CAR OUT when a car moves past the sensor.
    I tried to blend the above sketch with a MySensors sketch (and failed) - the gitlab code is way over my head and i think it uses memory that MYS also uses....

    Has anyone played with the HMC5883 for a similar purpose?

    @fleinze can you please share your code from your "Fun with magnetometer / digital compass sensors" post?

    Anyone else interested in this car detection idea?

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      Interesting idea!

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mrlynx
        Hardware Contributor
        wrote on last edited by
        #3

        Maybe you could use an ultrasonic distance sensor to detect if anything is in its measuring range?

        http://www.sa2avr.se

        1 Reply Last reply
        0
        • enloE Offline
          enloE Offline
          enlo
          wrote on last edited by enlo
          #4

          If you did not yet buy that chip: According to SparkFun, that sensor is retired. But they do suggest alternatives.
          I am not sure if that's SparkFuns definition or Honeywell

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          27

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular