A raspi usually runs a Linux distribution, Debian or something derived from that. (Other systems like the BSDs are also possible.) So, running Perl on the raspi should be no problem, and according to the module name Device::BCM2835, I guess the code runs on the raspi. The BCM2835 is the SoC, around which the raspi was designed. 700 MHz ARM CPU and 512 MByte RAM should be sufficient for Perl and lots of other things. Some years ago, a common PC or Mac had less RAM and a slower CPU clock, and even then, running Perl on Linux or *BSD was no problem. Update: According to the Wikipedia Article, the raspi CPU performance is roughly equal to a Pentium III 300 MHz.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
| [reply] |
| [reply] |
As mentioned already: yes, the RPi can run one of several Linux distributions. I've run Arch Linux before; currently a version of Debian is on my RPi. The OS is stored on a SD card, which can also act as storage.
The standard "Raspbian" install comes with Perl, and I've used CPAN to install modules (such as the package I mentioned).
I posted this code because I've just discovered how to use the I/O pins to read or write data to/from the outside world, with Perl, on my Raspberry Pi, and I'm excited!
| [reply] |
I'm excitedYeah, me too. I guess now the next step would be to get some opto-isolation relays, are be able to send messages out via the LEDS. Then, see if and ports give a varying output, say 128 or 256 voltage levels, then you could
use it to provide realtime feedback for controls. After watching the various youtube videos on the newer anti-gravity experiments, it may be that the only way to
get one, is to build one yourself.... and I'm dreamin of using the Raspian to do the
Hall effect sensor and stabilizer functions. I need to get back to my home world. :-)
Get me my Imhotep's flying platform!
| [reply] |