View Single Post
  #27   Spotlight this post!  
Unread 24-02-2002, 02:36
kmcclary's Avatar
kmcclary kmcclary is offline
Founder 830/1015;Mentor 66/470/1502
FRC #0470 (Alpha Omega Robotics)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 1994
Location: Ann Arbor, MI
Posts: 491
kmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond repute
Simulation vs Emulation

Quote:
Originally posted by Ian W.
that confuses me. a simple program for the computer would be so much easier to use, for me at least.
Well, it all depends just WHAT you are trying to ACCOMPLISH. Do you really want EMULATION (the thread's topic), or SIMULATION? This thread said Emulation, but so far most people here have really been talking Simulation.

SIMULATION normally implies a piece of software that "tries to run" the code, with imaginary hardware, interacting with an imaginary real world, and gives you "results". That's rather hard to do here, as in this case we're talking some SERIOUS, REAL TIME interaction with both the operator and the real physical world. For example, it is hard to simulate your robot tipping over because your software said to do something strange without simulating the entire physical environment too. There are programs that'll DO that, but they're not cheap, and this isn't something you normally write in a day or two without a serious solver engine of some kind behind you.

If you're not talking that level of simulation, then what are your true goals here? The Stamp programming environment already checks your syntax for you, and without some real world interaction on the RC end of SOME kind, your results aren't going to be very useful.

OTOH, EMULATION normally means that SOME hardware is involved, although normally not the true stuff.


It all boils down to what you want to do, and how far you're willing to go with your simulation before involving hardware. Syntax and Sanity checkers are one thing, but TRUE simulation in anything like real time is quite another. IMHO, this is definitely a situation where Emulation would be MUCH easier, cheaper, faster to get running, and more useful, than Simulation.

You first create SOME kind of a physical model of the robot, whether out of Lego Technic, a BOE-Bot, an RC car, Kynex, Tinkertoys, or whatever. This takes care of the physical world part.

You then only have to emulate the interaction between your control set and the RC, and the RC to the model, with something in the middle representing the RC that'll run PBASIC. That should only take a micro or two.

I think if you get creative, and restrict the number of I/O channels, you can emulate the entire OI/RC set much more cheaply than simply buying another copy of the Innovation First hardware.
Stamp-IIs and PIC micros are pretty cheap. BTW... There is even now a drop in replacement for a Stamp-II called the ATOM that gives you floating point math!

Note that you CAN use a PC as the joystick OI front end. Simply tie it to a Stamp board with a serial port. You then tie the Stamp (or Stamp equivalent) to the real motor model platform.

NOW you have a hardware platform that'll give you some SERIOUS results, AND allow you to practice!

Bottom line: IMHO, you need SOME hardware in this, somewhere, or else you're in for a big development, or won't get useful results. RC cars and chips are cheap. I feel the optimum solution is a mix of software and hardware, but WHERE you draw the line is up to you and your expertise.

- Keith McClary, Advisor Huron High 830 Rat Pack
"Want to emulate the speed of an IBM XT at 4.77MHz? Simple: Try running Windows on a 486..."
__________________
Keith McClary - Organizer/Mentor/Sponsor - Ann Arbor MI area FIRST teams
ACTI - Automation Computer Technologies, Inc. (Sponsoring FIRST teams since 2001!)
MI Robot Club (Trainer) / GO-Tech Maker's Club / RepRap-Michigan) / SEMI CNC Club
"Certifiably Insane": Started FIVE FRC teams & many robot clubs (so far)!
2002: 830 "Rat Pack" | 2003-5;14: 1015;1076 "Pi Hi Samurai" | 2005-6: 1549 "Washtenuts"/"Fire Traxx"
2005-(on): 1502 "Technical Difficulties" | 2006-(on): FIRST Volunteer!
2009-(on): 470 "Alpha Omega" | WAFL | Sponsor & "Floating Engineer" for MI Dist 13 (Washtenaw Cnty)
2011: 3638 "Tigertrons" | 2013-(on): 4395 "ViBots" | 2014-(on) 66 "Grizzlies"
"Home" Teams: 66, 470, 1076, 1502, 4395
Local FIRST alumni at or coming to Ann Arbor (UM/EMU/WCC/Cleary)?
...We Want YOU as a Mentor! Please email me for info!
Support CDF Reputation - If a posting helped, thank 'em with rep points!
"It must be FRC build season when your spouse and children become 'Action Items 8 & 9'..."