Skip to content

Low-Level-Devils/tcrt5000-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCRT5000 Driver

Project Description

This Rust based driver is for getting input from TCRT5000 sensor modules.

Required Hardware for Test

  • ESP32
  • TCRT5000 Sensor
  • 10K Ohm Resistor
  • 100 Ohm Resistor
  • 220 Ohm Resistor
  • LED
  • Breadboard
  • Jumper Wires

Connections

ESP32

ESP32 Pin Connection
3v3 3v3 Bus
GND GND Bus
GPIO 2 TCRT5000 Emitter
GPIO 4 LED Anode

LED

LED Pin Connection
Anode ESP32 GPIO pin 4
Cathode 220 Ohm Resistor -> GND bus

TCRT5000 Sensor

TCRT 5000 Pin Connection
Collector 3v3 Bus
Emitter ESP32 GPIO 2 (pulled down to GND bus via 10K Ohm Resistor)
Anode 3v3 Bus
Cathode 100 Ohm Resistor -> GND bus

Build and run

Connect the ESP32 to the host then run the following command to build, run, and monitor

cargo run --release

About

Driver for TRCT5000 module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages