
jlvandusen
Looking for shadowing session with a Ez User on walkthrough through connecting a styrene and a sabertooth controller to be managed by Ez-b and then controlled like a tank using a wireless controller (PS2)
I see some older topics on people tackling this but I don't see a clear walkthrough of creating from start to finish this a project that would create a tank per say with a rotating turrent or dome... think R2D2
I do have arduino experience and basic understanding of C++
Help!
Serial commands in a script are straight forward... you need to set the dip switches for 38400 baud (simple serial). You only need two wires to the ezb... ground pin on the ezb (D0) to ground on the sabertooth... signal pin (D0) to S1 on the sabertooth.....
Code:
You can simply do what you want by adding the sabertooth motor control and the joystick control to you project (instead of using scripts)...
Yes that is exactly what I wanted from both of you... I currently use a customized PADAWAN code (arduino in C++) from DanF in the Astromech group... which I tried adding some additional pieces (failed miserably due to wait states understanding) such as:
Autonomous movements:
Go on Patrol - which allowed R2 to scan from 3 separate ultrasonic sensors (located in the skirt of his body) and return best results up to 10' ahead... and make decisions on turning left or right depending upon which sensor returned the most distance.
Follow Me - which used the PIR sensors to detect body heat and follow it... keeping distance of 2' behind and speed matching
Voice Activation - which allowed me to initialize all the above as well as ask questions and get reactions...
The ultimate goal was to take him to Children Hospitals and have a full fledged conversation and interaction in front of the kids... without having to use the PS2 controller.
Does anyone have a quick tutorial of just:
1. Connecting the sabertooth (for the feet) and then the siren (for the dome left and right)
2. IMPORTANT ONE - Connecting 3 different sensors and getting distance tracking (collision detection) readings from them at the same time to make decisions?
3. Just walk through of plain and simple integration of each control to communicate and how to enable further commands through scripting.
I could tell you how to do this... I could also tell you (maybe LOL) how to build a car... but we both know how long that would take... Do some experimenting and we'll be here if you have any questions....
Thank you very much Louis!
Louis covers adding multi sensors via Arduino back to provide imput back to EZ-B