Applications & Use Cases · Study deck

Smart Parking Sensor Contracts

LoRaWAN is short for Long Range Wide Area Network.

Blueprint Bina is your guide for this deck.

casessmartparking
Blueprint Bina, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain how a magnetometer detects vehicle occupancy by measuring local magnetic-field distortion.
  • Identify why adjacent-bay vehicles create false positives and how per-sensor baselines and thresholds reduce crosstalk.
  • Describe why event-driven LoRaWAN reporting saves battery but needs a recovery heartbeat.
  • List the field metadata needed to scale a parking deployment without guessing.
iotclass.org

Major section

Start With the Story

LoRaWAN is short for Long Range Wide Area Network.

  • A parking sensor may use it to report when a bay becomes free or full.
  • One wrong reading can waste time and trust.
  • The system must prove how it sensed the car, how sure it was, when the result was sent, and what happened when no new message arrived.

Key terms

If trust
If trust is low, guide the driver to another bay or mark the space as unknown.
iotclass.org

Major section

Start With the Story (continued)

A magnetometer is a sensor that measures a nearby magnetic field.

  • A vehicle can bend that field.
  • Cars in the next bay can also bend the field, so the team must test them too.
  • Sending only when a bay changes can save battery power.
  • It helps the system spot a silent or lost sensor.
iotclass.org

Major section

Start With the Story (continued)

A heartbeat is a small message sent at set times even when nothing changed.

  • This plain chain leaves out exact field limits, radio settings, and city rules.
  • The Practitioner section records those site facts.
  • The map should not show an old state as fresh.
  • A bay state needs a time and a clear source.
iotclass.org

Major section

Motion Marley's Math Bridge: Magnetic Field to Comparator Voltage

The mathematical gist.: A Hall junction gives $V_H=IB/(nqt)$.

  • With a 1.00 mA bias, 10 micrometre InSb film, and 12.0 microtesla field swing, the raw signal is only 0.375 microvolts.

Numbers to remember

10.0 mVReaching a 10.0 mV comparator target therefore needs about 26,700 times gain
iotclass.org

Major section

Smart Parking Magnetometer Case

A city puts an in-ground sensor in each parking bay to report whether it is occupied, feeding a "find a free space" app.

  • The sensor detects a car with a magnetometer: a parked vehicle's steel body distorts the Earth's magnetic field, about 25-65 microtesla, at the sensor, and that change signals occupancy.
This ACS712 board is a Hall-effect sensor implementation: the central package detects a magnetic field without mechanical contact. A parking node uses the same field-sensitive principle in a different package to detect the disturbance created by vehicle steel, then needs baselines and neighbour-bay tests to turn that signal into trustworthy occupancy. Photo: SparkFun Electronics, CC BY 2.0
This ACS712 board is a Hall-effect sensor implementation: the central package detects a magnetic field without mechanical contact. A parking node uses the same field-sensitive principle in a different package to detect the disturbance created by vehicle steel, then needs baselines and neighbour-bay tests to turn that signal into trustworthy occupancy. Photo: SparkFun Electronics, CC BY 2.0
iotclass.org

Major section

Smart Parking Magnetometer Case (continued)

Mechanism note: a magnetometer senses a car by its distortion of Earth's roughly 50 microtesla field; occupancy is reported over LoRaWAN.

  • Those diagram labels establish the scope of this acs712 board is a hall-effect sensor implementation: the central package detects a magnetic field without mechanical contact. A parking node.
  • The hard part is telling this bay's car from the neighbour's.
  • The decision in smart parking magnetometer case must preserve that labelled boundary.
iotclass.org

Major section

Smart Parking Magnetometer Case (continued)

Together those labels make this acs712 board is a hall-effect sensor implementation: the central package detects a magnetic field without mechanical contact. A parking node testable.

  • The mechanism sounds simple but hides a real engineering problem the case must confront: a magnetometer cannot see a bay's boundary, only a magnetic field, and cars in neighbouring bays distort that field too.
  • The visual evidence for smart parking magnetometer case sits in Figure: Case-study reading frame.
  • A deployment lesson is transferable only when that whole chain is visible.
  • That framing also separates local context from reusable pattern.
iotclass.org

Major section

The Cross-Detection Problem

Parking sensors need installation depth, bay geometry, empty-baseline sample, adjacent-vehicle test result, firmware version, LoRaWAN spreading factor, gateway RSSI/SNR, battery estimate, and complaint history.

  • This cross-detection is the defining real-world challenge of magnetic parking sensors, and it is solved by calibration, not by a bigger sensor.
  • A neighbour's car produces a smaller shift that the threshold rejects.
  • Setting the occupancy threshold at 6 microtesla catches the real occupant and rejects the neighbour.
iotclass.org

Major section

The Cross-Detection Problem (continued)

Each sensor learns its own empty-bay baseline field and flags occupancy only when the local change exceeds a threshold set above the crosstalk a neighbour's car produces.

  • Worked example.: A sensor calibrated to a 50 microtesla baseline sees a 12 microtesla swing when a car parks directly over it, but only a 3 microtesla swing from a truck in the next bay.
  • For practitioners, the case-study question is what must be recorded before rollout expands.
  • Those records let teams tune thresholds without guessing and separate a weak sensor, weak model, weak network, or weak workflow.
iotclass.org

Major section

Event Reporting Failure Mode

To pursue a multi-year battery target on LoRaWAN, the sensor reports on state change rather than streaming periodically: it sends a message when a bay transitions between vacant and occupied.

  • In EU868, the applicable duty-cycle or channel-access constraint depends on the sub-band, device, and network configuration; 1% is a common case, not a universal LoRaWAN limit.
  • Event-driven reporting still has a specific failure mode: an uplink may be configured as confirmed or unconfirmed, but either can ultimately be lost after interference or exhausted retries.
  • Getting the balance right is what makes the deployment trustworthy rather than merely cheap.
iotclass.org

Major section

Event Reporting Failure Mode (continued)

If the only "now occupied" message is lost, the app shows the bay free until a later update.

  • Worked example.: A car leaves a bay and the sensor's "vacant" uplink is lost to interference.
  • With pure event reporting the app wrongly shows the bay occupied for hours, sending drivers past an empty space.
  • The same heartbeat lets the backend flag a sensor that has gone silent for a day as failed.
iotclass.org

Major section

Event Reporting Failure Mode (continued)

The four-hour interval bounds stale-state error only under that delivery assumption; a lost heartbeat extends the error to the next successful update.

  • The transferable decision from this case, pairing change-events with a recovery heartbeat and an explicit delivery assumption, applies to any lossy, low-power, event-driven IoT link.
  • Under the hood, the backend should treat every parking or maintenance event as a state update with evidence attached.
  • A parking message should include device id, bay id, sequence number, measured field delta, threshold version, battery, RSSI/SNR, gateway id, event timestamp, and whether the message is a change event or heartbeat.
iotclass.org

Deck summary

Key takeaways

LoRaWAN is short for Long Range Wide Area Network.

  • A magnetometer is a sensor that measures a nearby magnetic field.
  • A heartbeat is a small message sent at set times even when nothing changed.
  • The mathematical gist.: A Hall junction gives $V_H=IB/(nqt)$.
  • A city puts an in-ground sensor in each parking bay to report whether it is occupied, feeding a "find a free space" app.
iotclass.org

Retrieval practice

Recall check 1 of 4

Blueprint Bina says: answer from memory, then check your reasoning.

Q1Per Phoebe's Field Notes worked numbers, why must a production Hall-effect parking sensor be built as a chopper-stabilized amplifier chip rather than a bare Hall element wired straight to a microcontroller pin?

AThe raw Hall voltage from the 12.0 microtesla occupant swing is only about 0.375 microvolts, so roughly 26,700x (about 88.5 dB) of gain is needed to reach a usable comparator level
BA bare Hall element cannot be biased with a current, so no voltage is ever produced without an amplifier chip
CCopper Hall elements produce a large enough signal on their own, so the amplifier is only needed for InSb elements
DThe amplifier is needed to increase the sensor's magnetic field range from 12 microtesla up to 50 microtesla
Show answer

Answer: A

iotclass.org

Retrieval practice

Recall check 2 of 4

Blueprint Bina says: answer from memory, then check your reasoning.

Q2Per this chapter's smart parking case, why is occupancy state reported over LoRaWAN rather than a high-bandwidth wireless link?

ALoRaWAN offers long range, low power, and acceptable performance for a sensor buried in the bay housing, matching the case's needs
BLoRaWAN's long range makes it suitable for uploading continuous magnetic-field samples to the cloud for occupancy classification
CLoRaWAN is chosen because it needs frequent recharging, which keeps the sensor's calibration fresh
DLoRaWAN matches the radio built into the selected parking node, so the integrated hardware is sufficient reason to approve the link
Show answer

Answer: A

iotclass.org

Retrieval practice

Recall check 3 of 4

Blueprint Bina says: answer from memory, then check your reasoning.

Q3In this chapter's worked crosstalk example (12 microtesla swing from the actual occupant, 3 microtesla swing from a truck in the next bay), why does setting the occupancy threshold at 6 microtesla work?

A6 microtesla sits above the 3 microtesla crosstalk from the neighbouring truck but below the 12 microtesla swing from the direct occupant, so it rejects crosstalk while still catching the real occupant
B6 microtesla is set below the 3 microtesla crosstalk value, so the sensor rejects any detected field change
C6 microtesla equals the sensor's calibrated empty-bay baseline of 50 microtesla
D6 microtesla is the exact field change a truck in the next bay produces, so any signal at that level confirms a neighbour's car
Show answer

Answer: A

iotclass.org

Retrieval practice

Recall check 4 of 4

Blueprint Bina says: answer from memory, then check your reasoning.

Q4Why does a change-only (event-driven) parking sensor also need a periodic heartbeat?

AIf a lossy LoRaWAN uplink drops a transition message, the reported state is stuck until the next change; a heartbeat resends current state so the error self-corrects.
BThe heartbeat is required so that the sensor can continuously stream a full high-resolution recording of the raw magnetic field waveform to the cloud at all times for later forensic analysis of every vehicle that ever parks.
CHeartbeats increase the magnetometer's sensitivity.
DWithout a heartbeat the sensor cannot join the LoRaWAN network.
Show answer

Answer: A A change-only sensor only reports when its state flips, so a dropped transition message over a lossy LoRaWAN uplink leaves the backend holding a stale state indefinitely.

iotclass.org

Print reference

Answers

Answer key.

  1. A
  2. A
  3. A
  4. A · A change-only sensor only reports when its state flips, so a dropped transition message over a lossy LoRaWAN uplink leaves the backend holding a stale state indefinitely.
iotclass.org