Asked — Edited
Resolved Resolved by DJ Sures!

Camera Movement Control

Hi All!

My son and I built this robot with a mix of parts, hot glue and some fun. It has two motors connected to the ioTiny through an hbridge. The ez robot camera moves through the use of two servos. In ARC, the motors are connected through Hbridge PWM movement panel. We are trying to make this robot follow tape lines on the floor similar to @DJ's line following adventure bot.

The problem I am having is that the when setting up the speed settings through the camera module, that module does not activate the motors. I cannot even test the speed or test the turns as the module allows. Control through the hbridge is fine. I can move the robot in all directions using the sliders. I used this set up before and it was fairly easy to use for face tracking. This time however, I'm having problems.

I think this may be user error, but maybe not. Any suggestions?

User-inserted image


Related Hardware EZ-B IoTiny

ARC Pro

Upgrade to ARC Pro

With Synthiam ARC Pro, you're not just programming a robot; you're shaping the future of automation, one innovative idea at a time.

PRO
USA
#1   — Edited

Hi , do you have your setting correct in the camera control?

Here is the EzRobot video https://synthiam.com/Community/Tutorials/108?courseId=7

Line Following with AdventureBot

EzAng

User-inserted image

User-inserted image

#2  

Thanks EzAng for responding.

I have the basic camera configuration correct. The problem is with movement tracking. For some reason, I cannot control the motors from this panel. There is no movement whatsoever. The speed settings do not matter. I've attempted to use the test button to test the speed of the motors, but it did nothing. I don't have any scripts running. I've used this previously (a few weeks ago) with face tracking and I was able to utilize the test button to check the motors.

Separately, the hbridge works fine controlling the motors.

User-inserted image

PRO
Synthiam
#3  

Can you share the project here?

#4  

DJ.

I've uploaded it under the file name of Scott_CamMod

As always, thanks for your help.

Scott

PRO
Synthiam
#5  

You have added an HBridge PWM, not an HBridge Movement Panel. You can read about movement panels in the DOCS section and how they work. Here's a link: https://synthiam.com/Docs/ARC-Overview/movement-panels

User-inserted image

Remove that HBridge skill and add an HBridge PWM Movement Panel User-inserted image

#6   — Edited

DJ.

That was it. I should have caught that.

Now, it's time for some experimenting and fine tuning.

Blue tape isn't working as well as I thought because my house is filled with blues.  Perhaps I'll try some green or purple tape.

Thank you.

Scott

PRO
Synthiam
#7  

Make sure the camera is facing down as possible to avoid seeing other blue stuff - also blue is a weird color for tracking because it actually doesn't stand out very much unless it's practically neon. Most blues are darker because neon blue's kinda went out after the 80's lol. Greens are generally bright.. Bright reds work as well. On my examples of line following, I used green paper.

#8  

Blue is definitely a tricky color, especially in my house. Numerous shades of blues throughout the house seems to skew what the robot is tracking.

I ordered different colors of masking tape to see which one works best.

Once I get this working well, I think it will be time to try a saber tooth controller or perhaps an up board with an upgraded camera. So many choices.

Thanks again!