Finn
Published

Customer Tracker

This project tracks customer traffic in and out of a shop.

IntermediateFull instructions provided1 hour81
Customer Tracker

Things used in this project

Hardware components

Jumper wires (generic)
Jumper wires (generic)
×13
Resistor 2.21k ohm
Resistor 2.21k ohm
×5
Breadboard (generic)
Breadboard (generic)
×2
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×2
Raspberry Pi 3 Model B Starter Pack RPI 3 Starter Kit
Itead Raspberry Pi 3 Model B Starter Pack RPI 3 Starter Kit
×1
Argon
Particle Argon
×1
LED (generic)
LED (generic)
×1

Software apps and online services

Maker service
IFTTT Maker service
Particle Pi
Particle Pi

Story

Read more

Schematics

RPi Schematic

Argon Schematic

Orange jumper cable plugged into ground and negative. Yellow cable plugged into negative and same line as the negative side of the LED. Resistor plugged into positive side of LED and in D3.

Code

RPi Code

Python
Import code to an IDE in your RPi. Update the Echo Pins and Trig pins to match your ultrasonic sensor GPIO pins. You also need to update the URLS in lines 75, 84, 90 and 92.
For the iFTTT URLs you'll need to update the name of your webhook event name and your api key. These webhooks are made within iFTTT and provide the service of "notification" so that you're able to receive mobile notifications if a customer has walked in or out of the store.
For the Particle URLs you'll need to update the device key and token access key.
Error opening file.

Particle Argon Code

C/C++
This code is for a cloud function that will be initiated by your RPi code. You will only need to update the led1 pin that you use. It is currently set to D3.
Error opening file.

Credits

Finn

Finn

1 project • 0 followers

Comments

Add projectSign up / Login