The G-bot (gwen's B9 Robot Project) Gets His First Test Outside Fully Assmebled

 
#11

Very nice, glad you got that big guy moving. So entertaining to watch !

#12

I just updated the project on the cloud to include a ScriptStop ControlCommand() in the Movement Panel direction scripts. I don't know how much (if any) difference it will make but the way it was before there wasn't anything saying "OK stop that running" before asking it to run again. If nothing else it's now written properly Smile

Give it a whirl (if you merged the project with yours before and kept the script manager's name as I set it just remove your Movement Panel, merge with this new version and import the new Movement Panel - make sure you keep a copy of your project before doing it though, I'd hate for it to screw up the project and have no back up).

If you are experiencing lag with the new version (and probably the old version too) it is more likely to be the sabertooth and the speed ramping causing it, in which case there's not a lot that can be done. It should work without lag (at least in my tests without a sabertooth it updates everything near instantly), the only thing to watch out for should be the fact that stop doesn't immediately stop but ramps down so it may take half a second or so to come to a halt.


Touching on the safety features (i.e. anti-child run over, crashing, tipping etc) you could add in Ultrasonic sensors (@Toymaker has a good set up for these) and script it to monitor the distance to something, if it (rapidly) gets too close it shuts off the movement, similar to how these new cars work to make it impossible to have a low speed crash.

#13

Wow Sweet Robot, great work Smile

#14

And Gwen brings us another episode of "lost in Gwen world"... lol

Great job, thanks for sharing...

j Grin

#15

I have a couple of the ultrasonic sensors that I bought with the EZ Robot kits. They'll definitely be in the next round of upgrades...

@Rich Thanks again so much for updating the code. I wont be able to try it out until the morning though.

I'll let you know how it works out Smile

#16

Gwen, Is your lag problem due to the need to use a script to simulate ramping? What version of the Sabertooth are you using? I was under the impression that the Sabertooth is able to ramp. I've never used the Sabertooth alone (without a Kangaroo attached for position and speed) but I've seen the setting in the DEScribe software. You need to attach your laptop to the sabertooth through a TTL / USB adaptor and run the DEscribe software. However I'm not sure ramping is available in all versions. I'm going to have to look it over.

#17

Not really sure Dave. I'm in way over my head with microcontrollers and motor controllers of any sort. All I really know is it ramped and mixed perfectly and smoothly when I had it connected to 2 channels on my Futaba RC unit. That is PWM though right? But I trhought that was analog? I did experiment with using PWM controls in EZ Builder but there was no simple way to use PWM with a joystick without writing custom script... I think. Don't even know if it would work the same. I would imagine its possible to do.

No idea though... BUT always interested in future improvements Winky *confused*

G

#18

@Dave, it looks like you are absolutely correct. According to the Describe manual, on the Simplified Serial page, you set the check box next to "Use exponential map in serial mode" and then on the general tab, you can set your ramp time, dead band, and max voltage.

Unclear of you can use the exponential mode mapping in simplified serial (gives finer grain control over the ramping). It appears to need another dip switch setting that may only be available in analog and RC mode)

Here is the link to the doc: https://www.dimensionengineering.com/software/DEScribe/html/

Alan

#19

Very nice Gwen. Love the robot and the music. He moves smooth and rotates nicely. Will his arms move like in the TV series, that would be cool. Thanks for sharing and hope to see more videos from Halloween.

#20

Gwendolyn,

That was a MOST Enjoyable video. It did make me a little nervous however. I kept waiting for a car to come along about 50 mph and hit the Robot. Glad that did not happen.