Categories
TUTORIALS

Induction Loop Detector for Counting Vehicles Entering and Leaving a Section of Street

Overview

This is one of the tutorial for the project ‘Smart Parking Philadelphia’, which is aiming to provide real-time parking information for the drivers in Philadelphia to help them make the decision more easily for parking in Center City.

In this tutorial, the induction loop will be introduced which is responsible for counting the vehicles on a section of the street, and the output will be communicated to the display remotely through a transmitter & receiver. To know more about how the data will be presented and transmitted, please look at the tutorial written by our group member Hongyi (visualization) and Jingyi (transmission).

In addition, this tutorial only include the coding part for detecting vehicles, counting them, and printing the number of passing vehicles onto the Serial Monitor. The additional calculation and following coding parts will be in Changhao’s tutorial.

Parts List

Sensor: Grove – 2-Channel Inductive Sensor (LDC1612)

Provider: Texas Instrument (TI), Seeed Studio

Source: Seeed Studio

Wires: Grove cable (Seeed Studio)

Source: Seeed Studio

Arduino UNO (Amazon)

Source: Amazon

Grove Base Shield V2.0 for Arduino (Seeed Studio)

Source: Seeed Studio

Circuit Diagram

Below is the steps and diagram showing a basic way of connecting the parts: (Source: Seeed Studio)

Step 1. Connect the Grove – 2-Channel Inductive Sensor (LDC1612) to port I^2^C of Grove-Base Shield.

Step 2. Plug Grove-Base Shield into the Arduino UNO Board.

Step 3. Connect Arduino UNO Board to PC via a USB cable.

Source: Seeed Studio

In this project, the Seeeduino V4.2 Board (the red board underneath) will be replaced by our Arduino UNO board, and of course it will connect to the power source using the USB or directly connect to a 9V battery.

If we look at the Induction Loop Detector more closely, it is comprised of one main connection board (which is called a sensor drive, showing at left in the diagram), and two coil sensor (which is called channel circular coil, showing at right in the diagram).

Source: Seeed Studio

In this context, we are doing a multiple channel measurement, which means that the Coil 0 and Coil 1 need to be put at the two ends of the street, therefore in theory, the sensor drive will be placed at the middle, connected to the Base Shield and the Data Transmitter, while the two channel circular coil will be placed at the two ends of the street, connected to the sensor drive respectively. The diagram below shows the basic rule of connecting the circular coil and sensor drive. (Both through wires/cables)

Code

Before running the code, the library ‘Grove-2-Channel_Inductive_Sensor-LDC1612’ need to be downloaded either online on GitHub or installed directly in Arduino IDE. If you don’t know how to download library through GitHub and add ZIP library in Arduino IDE, please follow the steps shown in this website.

Now we have installed the library, and we can get started and run the code.

Reference

Counting Cars and Buses with a Grove Inductive Sensor.

Seeed Studio Grove – 2-Channel Inductive Sensor (LDC1612)

https://wiki.seeedstudio.com/Grove-2_Channel_Inductive_Sensor-LDC1612/

Leave a Reply

Your email address will not be published. Required fields are marked *