Skip to content

Using an NPN Capacitive proximity sensor as an object counter with a Raspberry Pi and displaying the information to a 16x2 I2C LCD

Notifications You must be signed in to change notification settings

d3vCr0w/raspberry_pi_capacitive_sensor_i2c_lcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Capacitive Sensor I2C 16x2 LCD

Using an NPN Capacitive proximity sensor as an object counter with a Raspberry Pi and displaying the information to a 16x2 I2C LCD

Diagram

Instructions:

  • Connect the I2C LCD Display like this (check diagram): VCC -> Raspberry Pi 5V, GND -> Raspberry Pi GND, SDA -> Raspberry Pi SDA, SCL -> Raspberry Pi SCL
  • Connect the capacitive sensor like this (check diagram): BROWN -> Power Supply 12v, BLUE -> Power Supply GND, BLUE -> Raspberry Pi GND Pin, BLACK -> Raspberry Pi GPIO 4
  • Enable I2C in the Raspberry Pi: tutorial here
  • Install required dependencies with: sudo apt install gpiozero python-smbus git
  • Download code from this repo with: git clone https://github.com/d3vCr0w/raspberry_pi_capacity_sensor_i2c_lcd.git
  • Change directory to the downloaded folder: cd raspberry_pi_capacity_sensor_i2c_lcd
  • Run the script with: python sensor.py

About

Using an NPN Capacitive proximity sensor as an object counter with a Raspberry Pi and displaying the information to a 16x2 I2C LCD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages