penguin and timing
halo_nerd_3
Posts: 3
·as i'm not that sophisticated a robot person, i typically like just plain "hook the sensor to the motor to the battery" bots. but the penguin is obviously more complex.....
·(newie question below)
can you program the penguin to move in a·certain direction for a specified period of time?
such as "3 time units forward and 2 left"?
also, if you can, is this possible with allthe basic stamps?
thanks
·
·(newie question below)
can you program the penguin to move in a·certain direction for a specified period of time?
such as "3 time units forward and 2 left"?
also, if you can, is this possible with allthe basic stamps?
thanks
·
Comments
Absolutely. The way you could approach this problem is to program the Penguin with an index counter (instead of a timer, or specified period of time). As the BS2px has no real clock, it's going to be more practical to make a variable which is incremented through each series of steps until your exit value is reached. And this would be the same with all BASIC Stamps.
Welcome to the Penguin club!
Ken
mathforum.org/dr.math/faq/faq.distance.html
It's simple to measure the rate and distance traveled to get time. Take a look a look at any of the Penguin walking programs to get some ideas, at the PRS Penguin Robot Society web sites. You'll find programs for all the turns, walking forwards and back, running, dancing, and special things like slow motion, aerobics, VR servo motion and the array of special motions.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
humanoido
*Stamp SEED Supercomputer *Basic Stamp Supercomputer *TriCore Stamp Supercomputer
*Minuscule Stamp Supercomputer *Three Dimensional Computer *Penguin with 12 Brains
*Penguin Tech *StampOne News! *Penguin Robot Society
*Handbook of BASIC Stamp Supercomputing
*Ultimate List Propeller Languages
Post Edited (humanoido) : 1/3/2010 6:20:14 AM GMT