OPENMV CAMERA-Object TRACKER
Lesson Objectives:
Materials:
- Students will explore the concepts of image processing and face tracking
- Students will gain experience using an OpenMV camera and servo motor
Materials:
- An OpenMV camera (M7)
- A MicroUSB camera cord
- A Servo Motor
- Tape
- Paper/Cardboard/Wood (to make the arrow, if you use wood also screws to attach it to the servo, for paper/cardboard glue is probably best)
- Wires
- (Optional) Arduino and power cord
Getting Started!
Servo Red to OpenMV 3.3V
Servo Black to OpenMV GND
3. Input the code below in the OpenMV IDE.
4. Create a fun arrow! Set up the camera and servo as shown in the video.
5. Have fun with your code!
- Follow the links for hardware and software setup: http://docs.openmv.io/openmvcam/tutorial/software_setup.html http://docs.openmv.io/openmvcam/tutorial/hardware_setup.html
- To attach the servo motor to the camera connect:
Servo Red to OpenMV 3.3V
Servo Black to OpenMV GND
3. Input the code below in the OpenMV IDE.
4. Create a fun arrow! Set up the camera and servo as shown in the video.
5. Have fun with your code!
OpenMV IDE Code
How to Connect to Arduino:
To attach an Arduino connect:
To attach an Arduino connect:
- Servo Yellow to Arduino Pin 9
- Servo Red to Arduino 3.3V
- Servo Black to Arduino GND
- OpenMV P4 to Arduino TX1
- OpenMV P5 to Arduino RX1
- OpenMV GND to Arduino GND
- OpenMV V+ to Arduino 5V
Arduino Code