Arduino Project
Arduino Finger Counter Using Computer Vision V2
Course Introduction
This code controls a series of LEDs on an Arduino Uno based on finger count data received from a Python script. The script detects the number of fingers shown to a camera and sends this data to the Arduino via serial communication.
The Arduino then lights up the corresponding number of LEDs.
The LEDs are connected to digital pins 2 through 6, with the number of lit LEDs corresponding to the finger count detected by the Python script.
Note
If this is your first time working with an Arduino project, we recommend downloading and reviewing the basic materials first.
1.1 Install Arduino IDE(Important)
1.2 Introduction of Arduino IDE
Python Installation Guide
Wiring

Common Connections:
LED
Connect the LEDs cathode to a 1kΩ resistor then to the negative power bus on the breadboard, and the LEDs anode to the 2 to 6 on the Arduino.
Writing the Code
Note
You can copy this code into Arduino IDE.
Select the board(Arduino UNO R4 Minima) and then clicking the Upload button.
Then use the Python code FingerCountSender (3) . You can click here FingerCountSender (3).zip to download it.
Update the Python script to use the correct serial port(COMx).
Then run the python code to open the camera window.
