Seed-Eye test for acquiring frames from camera peripheral
This application note provides instructions for a SEED_EYE image board.
The system will acquire a QQVGA image (160 x 120) and will send it to the PC through the UART Port.
(The picture shows the system architecture)
- SEED-EYE board with camera board;
- PC with Python;
- TTL-USB adapter to connect PC with board;
- picKit3 or ICD3 or other PIC programmer.
- Erika + RTDruid;
- C32 Compiler;
- MPLAB X IDE;
- Python 2.6 with Python Imaging Library and Pyserial.
Running the demo
To run the demo there are two ways:
- download the pre-compiled example camera.elf or camera.hex (File) and go to point a)
download ERIKA + RTDruid
" C32 Compiler"
MPLAB X IDE
(follow the instructions in this page: Instruction)
When Eclipse is installed click on “File → New → RT-Druid C/C++ Project
→ Create a project using one of these template → pic32 → SEED-EYE
→ camera_demo ”
“Right click on project → build"
go to point a)
program the pic board with the .elf file (or .hex file) located inside the Debug folder into the main project folder (workspace/camera/Debug) or in the zip file;
connect the board with the PC;
reset the board (all leds are off);
run seed-eye_python script (LD2 is on):
$ python get_image_serial.py /dev/ttyS0 (or USB0, depending on the mounting point of the TTL adapter) [image 1-2];
wait for the pop-up window with the image (all leds are on) [image 3];