In this lesson we show you how to teach the NVIDIA Jetson Nano to talk. We show two different ways. In the first, we use the espeak TTS engine. We then show how to do it with gTTS. We compare and contrast the pros and cons of each technique.
In this lesson we show how to configure the GPIO pins on the Jetson Nano to produce PWM signals. We show how the PWM libraries can be run in python. The Jetson Nano can provide Pulse Width Modulation signals on two physical pins, pins 32 and 33. We take you through the step by step process in the video above.
In this lesson we show you how to control a simple LED circuit using the GPIO pins on the Jetson Nano. We use pull up resistors to connect a push button to the Jetson Nano GPIO pins. We create a toggle switch where the light turns off when the button is pressed, and then turns it back on when pressed again.
In this lesson we learn how to incorporate a push button switch into our Jetson Nano projects. We explain the concept of a pull up resistor, and show how to configure the GPIO pins as inputs. This will allow you to take your NVIDIA Jetson Nano projects to new heights. Enjoy!
In this video lesson we should you a simple method to train our face recognizer on larger data sets. We use the python os.walk command to step through, and train automatically on all the training images in our folder. We then show how to store our training set to our SD card using the pickle utility. This allows us to train once, and use the trained model over and over.
For your convenience, the code below is what we developed to allow training our face recognition model.
for root, dirs, files in os.walk(image_dir):
for file in files:
with open('train.pkl','wb') as f:
Then this is a simple program that loads the trained model, and uses it to recognize people in unknown images.
with open('train.pkl','rb') as f:
for (top,right,bottom,left), face_encoding in zip(facePositions, allEncodings):
name='Unknown Life Form'
if True in matches:
cv2.rectangle(testImage, (left,top),(left+200, top+30),(0,255,255),-1)