Arduino Car Counter

A low-power Arduino car counter that works by logging each time a car drives over a rubber tube across the road.

Feb 24, 2020

10943 views

3 respects

Components and supplies

1

Pelicase 1120

1

RV 3028 RTC Breakout

1

Hook Up Wire Kit, 22 AWG

1

clear plastic tube, 4mm internal diamter

1

DC POWER JACK 2.1MM BARREL-TYPE PCB MOUNT

1

Barrel jack power switch

1

Flash Memory Card, MicroSD Card

1

4mm double headed bulkhead connector

1

SparkFun Level Shifting microSD Breakout

1

4mm internal diameter rubber fuel hose

1

Arduino Pro Mini 328 - 5V/16MHz

1

MPX5100DP Pressure Sensor

1

4mm hose T-connector

Tools and machines

1

Soldering iron (generic)

1

Plier, Needle Nose

1

Solder Wire, Lead Free

Project description

Code

New! Overnight sleep

arduino

I've added a few lines and rearranged the code so the arduino goes to sleep at night, as we are only open 10am - 5pm. This saves a bit of battery! you need to physically connect pin 2 on the arduino to the alm or int pin on the RTC.

Car counter pressure test

arduino

This code allows you to see that the pressure sensor is working. It's just the main code with some bits commented out.

Car counter pressure test

arduino

This code allows you to see that the pressure sensor is working. It's just the main code with some bits commented out.

Car Counter Full Code

arduino

This code counts each time the pressure sensor is triggered

New! Overnight sleep

arduino

I've added a few lines and rearranged the code so the arduino goes to sleep at night, as we are only open 10am - 5pm. This saves a bit of battery! you need to physically connect pin 2 on the arduino to the alm or int pin on the RTC.

Car Counter Full Code

arduino

This code counts each time the pressure sensor is triggered

Downloadable files

Arduino Car Counter

This is a rough approximation of the circuit; the RTC and the pressure sensor aren't the models you use in my project but they have the same connections. (I'm rubbish at fritzing, half of the parts aren't in the library and nothing lines up with the holes. )

Arduino Car Counter

Car Counter Fritzing

Car Counter Fritzing

Arduino Car Counter

This is a rough approximation of the circuit; the RTC and the pressure sensor aren't the models you use in my project but they have the same connections. (I'm rubbish at fritzing, half of the parts aren't in the library and nothing lines up with the holes. )

Arduino Car Counter

Comments

Only logged in users can leave comments

Aetos999

0 Followers

0 Projects

Table of contents

Intro

3

0