Open MV Pan and Tilt

Hi im currently a mechatronics student.

One of our projects was to design a pan and tilt device (Relatively old) using an OpenMV Cam and Arduino uno. The motors in the current pan and tilt uses voltage to trigger certain directions it has to move, it has a separate wire for each of the directions it can move. Our project was to interface the openMV cam so that it can track either IR light or colours. Any help for possible schematics or code i could use to actuate the pins of the arduino would help alot.

Kind regards,
Sleepy engineering Student

What input voltage does the pan/tilt require to trigger movement ?
Is this a logic level input or does it provide power to the motors ?
Does it have its own power supply ?

HI

It uses 5V to trigger movement of the motors. It uses the power supplied from a wall socket, goes through a transformer and steps down to 24V. We use relays to trigger movement at 5V.

My suggestion would be to first ensure that you can control the 2 motors with the Arduino. One Arduino digital pin to each of the motor control input pins and a common GND connection.

Write a small program to move the motors in each direction for a period then both motors at the same time. Do NOT use delay() for the timing, use millis() instead. See Using millis() for timing. A beginners guide, Several things at the same time and look at the BlinkWithoutDelay example in the IDE if you are not familiar with the technique.

As a matter of interest, what happens if a motor is commanded to go in both directions at once ?

Havent gotten as far as testing with two commands is sent. I got my movemv cam tracking face. Now i have to take that data somehow and send it to dc motors. Each wire of the motor has a certain direction, ie. one wire for up, one for down, one for right and one for left etc. Now im struggling to send the data i get from the movemv cam and send in the form of voltage to the different motor wires. Any help will be appreciated.

Perhaps use rc servos.

We were given an object we have to innovate, its an old pan and tilt device. It uses basic DC motors to change direction in x and y direction. We have to interface that with the openMV Cam.

You will have to reverse engineer the pan tilt device.

See reply #1. Until you tell us what sort of signals, at what voltages and currents, are required to steer it, we can't help.

As of right now, its just a normal dc motor(24V). We were thinking of using an arduino chip because we arent allowed to use a development board. Only problem is reading the values for x and y in the face detection or colour detection program and outputing it to the motors. is there any way of maybe getting an output voltage on one of the pins of the OpenMV Cam? The voltage could tell the motor when to go high and low. I tried looking online for solutions, but ive only gotten servo motor examples. I have until the 27th to develope this systems and its tedious not having any guide towards solving the problem.

You need a 24V (or higher) motor driver to drive a 24V motor. Pololu has a good selection.

its tedious not having any guide towards solving the problem.

It is tedious trying to help a person who can't supply any useful information about the project.

We are using relays to switch 5V to 24V

Please read the first message if you require details on the project. Im a student, i was given an idea and i had to build on it, thats all the information we got.

Please read the first message if you require details on the project.

If that is all you have, best of luck with the project, "sleepy engineering student"!

Hi, Can you post a picture of the pan/tilt device and any model/maker labels it may have it and its motors.

Have you developed code JUST to control the pan/tilt, forget the camera and just get this working first.

Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom.. :)

Hi Tom, turns out this motor runs on servo motors. Heres a picture. The pan tilt device works 100%. Just need to interface it with a openMV cam