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.
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 ?
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.
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.
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.
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.