Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Oh Perlmonks, oh man oh man oh man, the replies in this thread, the replies in this thread. I can't believe it.

Anyways, as far as introductory microchips go, the parallax basic stamp is actually pretty nice. The problem, is, of course, the whopping 32 bytes of ram coupled with the (unusually fast) 2k of eeprom. You're barely going to have enough space to hold your program, much less do anything complicated.

You might be better off using a PIC, which is like super-cheap mini microcontroller. (try http://www.microchip.com/, you should be able to search around and find them for 5-8 bucks a pop). In addition to being cheap, PICS will be much faster than the stamp and have somewhere in the range of 16x - 64x the memory, as well as more I/O ports.

Unforunately, you'd need 20x more memory on top of that (at least 2 megs) to embed even the most stripped down versions of perl, such as miniperl. One technique to get around this is to write a domain-specific high level language and compile it (using Perl and Parse::Recdescent) down to whatever assembly language that the PIC uses. Not only will this make your code reliable and consistant, it can also give you the chance to write a simulation layer that will make your testing phase much faster.

I've been successful with this approach in the past, and am currently using the same approach in an AI-heavy robotic art project that I'm involved with right now. I highly recommend that you give it a shot. :)


In reply to Re: Perl and Robots by jryan
in thread Perl and Robots by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-19 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found