STEAM DISCOVERY LAB
  • About
  • Tools
  • Projects
  • Resources
  • Product
  • About
  • Tools
  • Projects
  • Resources
  • Product
Search

​OPENMV CAMERA-Object TRACKER

Lesson Objectives:
  1. Students will explore the concepts of image processing and face tracking 
  2. 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! 
  1. 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
  2. To attach the servo motor to the camera connect:  
                         Servo Yellow to OpenMV P7
                         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:
  • 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
Comment/uncomment according to comments on OpenMV code
Arduino Code

    
Picture
200 Boston Ave, Medford, MA 02155
steamdiscoverylab@gmail.com
Center for Engineering Education and Outreach
​Tufts University
About
Tools
Projects
Resources
​
Contact
LEGO®, the LEGO® logo, the Brick, MINDSTORMS®, and the Minifigure are trademarks of ©The LEGO® Group. On some parts of this site  you will get access to so-called “developer software”, which offers documentation on different ways to operate the LEGO® Education SPIKE™ Prime Hub and technology. Whatever use you make of the developer software, bear in mind that the results are not experiences that the LEGO Group endorses, is with or will be liable for. No rights in or to trademarks of the LEGO Group are implied or given, and you may not apply to or register any protection anywhere in the world for intellectual property or industrial rights or similar in respect of any developer software, derivative or other result achieved through its use. The developer software is made available “as is” and, to the extent possible, no warranties or representations are implied or given in relation to it by the LEGO Group. It’s your responsibility to ensure all uses that you make and enable others to make comply with all applicable laws and best practices. By accessing the developer software, you acknowledge that the terms and conditions set out above and in LEGO Education’s terms of use for SPIKE Prime apply.
  • About
  • Tools
  • Projects
  • Resources
  • Product