Jetson Nano Face Follower
Intro: Jetson Nano Face Follower
This is just a quick proof of concept , there is still a lot of improvements to do in order to have it to work faster.
( This is my first tutorial , any feedback would be valued ! )
STEP 1: Wiring
PCA Jetson
GND <----> GND
OE <----> NC
SCL <----> SCL (PIN 28)
SDA <----> SDA (PIN 27)
Vcc <----> 3.3V
V+ <----> NC
Connect MG90S servo to Channel 0 of the PCA9685
STEP 2: Installation
First install the dependencies :
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
sudo apt-get install python3-dev
sudo pip install adafruit-pca9685
sudo pip install imutils
STEP 3: Add User to the I2c Group
sudo usermod -a -G i2c username
sudo reboot
Check that your user is into the i2c group with the command groups
STEP 4: Verify If the PCA9685 Board Is Detected
i2cdetect -y -r 0
/!\ be sure to select the correct i2c bus on your nano /!\
The device should be detected as 0x40
STEP 5: Download the Code and Try It !
You can download the source code directly from my github : https://github.com/Neur0tek/Jetson-Face-Follow
Open a terminal and launch the script ( replace WIDTH and HEIGHT with the desired values):
python3 JetsonCvPCA.py WIDTH HEIGHT
STEP 6: Extra
You can add a led on channel 0 of the adafruit PWM driver , it will light up depending on your position !
3DPrint the eyes mechanisme from the Inmoov robot and use the code to drive the mg90s servo
3 Comments
teocrito 1 year ago
Penolopy Bulnick 4 years ago
Neur0tek 4 years ago