Happy, the AI hardware robot – the eyes – camera
These are the steps to connect and test the camera for the Building Happy, the AI hardware robot project
Test the camera
My board already has the camera installed
Upload the camera test file
- Upload the firmware/tests/cam_snap/cam_snap.ino file to the board
Close the Arduino IDE
As only one application can access the same port at a time on the computer, to be able to communicate with the board from PowerShell
- Close all running instances of the Arduino IDE application on the computer
Take a picture with the camera
- Save the tools/grab_photo.ps1 file in a directory on your computer
- Open a PowerShell window on the computer in the script’s directory
- Execute the script as ./grab_photo.ps1 THE_PORT_NAM. In my case
./grab_photo.ps1 COM5
A 6480×480 pixel, low quality .JPG file should appear in the folder where the grab_photo.ps1 script is executed from. This is just a test, the ESP32 cameras usually have a 3 or 5 megapixel resolution, so the robot will have a much better eyesight in the future.