AnsweredAssumed Answered

Exploring the FSLBOT

Question asked by Rioshaune Harris Employee on Jun 4, 2014
Latest reply on Jun 25, 2014 by Rioshaune Harris

Hey Everyone!

So I'm an intern here at Freescale and to become familiar with some of their devices I've gotten the opportunity to get "hands-on" with them.  Today I was able to fool around with the FSLBOT.  I've never worked with Basic Language nor have I ever used Tera Term, but once I got started everything was easy to navigate.  Getting the BOT to walk and turn around (check out the code below for turning around) using the servos was fairly simple, but now I look forward to checking out the touch sensors and the LEDs!  Any ideas?

 

dim inc
let inc = 40
dim rfoot as pin dtin0 for servo output
dim rhip as pin dtin1 for servo output
dim lhip as pin dtin2 for servo output
dim lfoot as pin dtin3 for servo output
let rfoot = 1500, rhip = 1100, lhip = 1500, lfoot = 1500

while lhip > 0 do
for lhip = lhip to 1200 step -10
  sleep inc ms
next
let rfoot = 0
for lfoot = lfoot to 900 step -10
  sleep inc ms
next
let rfoot = 1200
for rhip = rhip to 1700 step 10
  sleep inc ms
next
for lfoot = lfoot to 1500 step 10
  sleep inc ms
next
for rfoot = rfoot to 1900 step 10
  sleep inc ms
next
for lfoot = lfoot to 1900 step 10
  sleep inc ms
next
for lhip = lhip to 1600 step 10
  sleep inc ms
next
for rhip = rhip to 1000 step -10
  sleep inc ms
next
let rfoot = 0
for lfoot = lfoot to 1500 step -10
  sleep inc ms
next
let rfoot = 1500
endwhile

Outcomes