Asked — Edited

Tracked Robot - Mobile Controls

Hello Everyone! New to the platform, please forgive me if these questions have very obvious answers.

I'm incorporating the EZ Platform into a tracked robot. http://www.thingiverse.com/thing:1240754 The EZ Platform looks like a perfect platform to shoehorn in. (Camera support, mobile support, etc)

I've got the bot built, and it's pretty sweet. (I'll upload a video link soon)

I have some major questions though.

Current Setup: Motors: 4 5v geared motors (connected 2 in series a side) Motor Controller: L298 Driver Brain: IoTiny (Beta) Battery: 3S Lipo 2200 mAh Mobile: iPhone 7+

Config: D0-D3 - Motor Outputs for the L298 (See L298 Truth table) D4-D5 - Motor PWM for EnA and EnB- Controls Track Speeds

Success! Using L298 Control with PWM sliders controlling the bot is pretty simple. Keyboard control is crisp, PWM sliders work fine manually. Control is jerky but entirely functional.

Challenges Mobile Controls! - My Mobile Interface does not present any options for proper touch controls. Having to manually stop both the turn movements and the forward reverse (Toggle) is incredibly cumbersome. I'm sure there's a way to script the buttons with a WhilePressed function (or something similar), but I wasn't able to find it. Scripting! - Basic tracked robot controls are jerky. Base control for movement isn't analog. Ideally would like to write a differential script for controlling the PWM output for both sides. Example (Basic Idea, Pardon my NEWB arduino code:) ) Define Turnslider = $RightLeftSliderValue Define Throttle = $UpDownSliderValue Define Lspeed Define Rspeed init loop{ if Turnslider => 55{ int x = 100-Turnslider; Rspeed = (x/45)*Throttle; Lspeed = Throttle; } elseif Turnslider =< 45{ Lspeed = (Turnslider/45)*Throttle; Rspeed = Throttle; } else{ Lspeed = Throttle Rspeed = Throttle } $PWMLeft = Lspeed $PWMRight=Rspeed }

Ultimately I think I just need more experience with scripting with ARC, but the mobile controls don't seem to lend themselves to manual control in this situation.

Any tips/assistance you can offer would be greatly appreciated!

Thanks!


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

PRO
Synthiam
#9  

Yes - you could do that using the WiiMote control. Although, moving a robot with accelerometer isn't practical imo but give it a shot if you're interested:D

Scripting guides are in the learn section.

There's more than ARC for software, as there's also SDK's and UWP library. You can decide what to use, and they're located in the software section.

ie if you're wanting your own controls, there's plugin ability as well. If you want to add onto the ez-scripting environment, you can do extend the EZ-Script with user defined functions in a plugin. Find more information in the software section.

I recommend spending some time on www.ez-robot.com and take some activites in the tutorials. Experiment a bit and learn the environment with example, etc.. It's a gigantic ecosystem.

There's literally no limit. Have fun!

#10  

Wow DJ, still giving your personal "all" to us. It still impresses me how you get involved with people's issues and questions right down to the level of making demo projects to help us through our process.

Heck, if you're looking for things to do like this I should ask you to download my very complicated B9 project from your cloud. Then go over it to see if I'm over complicating my control process. LOL. ;) I sometime wonder "Is this what DJ would do?". :)

#12  

Repost:

That's what I'm talking about! Analog sticks, and some pretty serious code interface. I am impressed!

Thank you!