The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

HP-50 on Raspberry Pi? The HP-67 come true?
Message #1 Posted by Matti Övermark on 29 July 2013, 1:51 p.m.

Has anyone tried to use/implement a HP48/50 on a Raspberry Pi? The R-pi runs on 700 MHz with a possibility to overclock to 1000 MHz, so it would be quite nice since the R-pi costs much less than the original.

My extreme wet dream is a commandline interface in/on the Pi with all the, indeed, superb functions of the HP50g. Just hook up to the Pi/HP (with ssh) and run all of the ordinary HP functions!

The R-pi costs about 650 SEK here in Sweden, say 100 USD with 16 GB Ultra 10 SD-card and power adapter. HDMI and Ethernet cables not included.

Benefits of the R-pi/HP50 combo would be that a Large HDMI-display can be used, i.e.24''. It runs on open source Linux distros and one is able to swap SD-cards and reboot with a new setting. The memory can be expanded with a single cheap SD-card of sufficient size. There are images of the HP-50g ROM around, but I am an engineer, but no computer one, although computerized :)

How many have tried the R-pi? If you haven't, do.

Cheers from Matti in Sweden

      
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #2 Posted by Pier Aiello on 29 July 2013, 2:02 p.m.,
in response to message #1 by Matti Övermark

Run an (slow) emulator to waste CPU cycles ? It's better to install debian and octave/sage/python + scipy.

An hp50g emulator is too inefficient, it's inefficient on the very hp50g that runs userRPL not in native manner (in fact hp39gII rocks in terms of speed).

            
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #3 Posted by Gilles Carpentier on 29 July 2013, 7:26 p.m.,
in response to message #2 by Pier Aiello

You can't compare an HP39GII and a 50G... For sure the 39GII is faster than the 50G, but the 50G is fast enough in most cases an the 39GII does 10% of what you can do with the 50G... For me the limitation of the 50G is not the speed, it's his old (and unevolutive) CAS and his graphing resolution (for text/numbre or textbook display, i prefer the 50G screen than the 39GII). And RPL remains perfect for a calculator ;)

                  
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #4 Posted by Pier Aiello on 30 July 2013, 1:29 a.m.,
in response to message #3 by Gilles Carpentier

Yes, in terms of features you are right. But i want to say: an emulator of hp50g is a waste of CPU performance, even on the very hp50g since userRPL and sysRPL commands are emulated and not native.

(in fact with HPGCC programs, the 50g is insanely fast)

      
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #5 Posted by Thomas Klemm on 29 July 2013, 3:55 p.m.,
in response to message #1 by Matti Övermark

Maybe not exactly what you want but similar: install emacs and run the calculator.

Kind regards
Thomas

PS: To install emacs run:

sudo apt-get install emacs
      
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #6 Posted by Thomas Klemm on 29 July 2013, 4:13 p.m.,
in response to message #1 by Matti Övermark

Yet another possibility is RPL/2. I thought I give it a try and am currently compiling it on my Raspberry Pi running raspbian. Additionally I had to install:

  • gfortran
  • uuencode (sharutils)
  • yacc (byacc)

Cheers
Thomas

            
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #7 Posted by Barry Mead on 29 July 2013, 4:43 p.m.,
in response to message #6 by Thomas Klemm

python with its mpmath library handles almost all of the advanced mathematics you would ever need, and to any precision you like. Also there are some nice graphing packages for python as well.

                  
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #8 Posted by Chris Smith on 29 July 2013, 4:48 p.m.,
in response to message #7 by Barry Mead

Agreed.

I use SciPy IPython a lot these days when sitting in front of a computer. Incredible piece of software.

Example "notebook" from it with tutorial...

http://nbviewer.ipython.org/5920182

                  
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #9 Posted by Thomas Klemm on 29 July 2013, 5:16 p.m.,
in response to message #7 by Barry Mead

Quote:
Now I know what it comes with, but it's not what I want.

Some people are stuck to RPN/RPL.

Cheers
Thomas

PS: And some of them still like Python.

      
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #10 Posted by Thomas Klemm on 30 July 2013, 1:36 p.m.,
in response to message #1 by Matti Övermark

Quote:
My extreme wet dream is a commandline interface in/on the Pi with all the, indeed, superb functions of the HP50g. Just hook up to the Pi/HP (with ssh) and run all of the ordinary HP functions!

After installing a few other things I'm able now to run RPL/2 on my Raspberry Pi. Here's my program from Gerson's thread Nibble reverse (HP-48,49,50g)

pi@raspberrypi ~ $ rpl -si
+++RPL/2 (R) version 4.1.14 (Tuesday 07/30/13, 16:23:51 CEST)
+++Copyright (C) 1989 to 2012, 2013 BERTRAND Joel

+++This is a free software with absolutely no warranty. +++For details, type 'warranty'.

RPL/2> << + 001> # 5d DUP2 AND SL + 002> ROT SR ROT AND OR + 003> # 3d OVER AND SL SL + 004> SWAP SR SR OR + 005> >>

1: << # 5d DUP2 AND SL ROT SR ROT AND OR # 3d OVER AND SL SL SWAP SR SR OR >> RPL/2> NR STO RPL/2> BIN RPL/2> #1101b NR

2: # 1101b 1: << # 101b DUP2 AND SL ROT SR ROT AND OR # 11b OVER AND SL SL SWAP SR SR OR >> RPL/2> EVAL

1: # 1011b RPL/2> abort

From the man-page:

RELATED STANDARDS
       The RPL/2 sequencer is compliant with the HP-28S calculator user manual, and with the HP-28S itself, in its 2BB version (C)  HP  1986-1987.   Some
       operations dealing with complex numbers are not following the definitions from HP, because they are bogus. The main such operations are transposi-
       tion and scalar product.

So still not a HP-50 but you might like it nonetheless.

Have fun!
Thomas

            
Re: HP-50 on Raspberry Pi? The HP-67 come true?
Message #11 Posted by Matti Övermark on 30 July 2013, 9:40 p.m.,
in response to message #10 by Thomas Klemm

Thanks Thomas!

Check Your mailbox!

Cheers Matti


[ Return to Index | Top of Index ]

Go back to the main exhibit hall