Post Reply 
Copying an image to HP Prime via USB
08-22-2023, 10:16 PM (This post was last modified: 08-22-2023 10:17 PM by matalog.)
Post: #1
Copying an image to HP Prime via USB
I have been experimenting with USB transfer to HP Prime from Arduino recently and tried out this idea to see how fast I could transfer data. It could still be a little bit faster, but this is getting close to the full rate.





I wrote a program that extracts the RGB data from a 320x240 pixel image and then outputs the data as text that I can import into an Arduino program. I then store the data in PROGMEM (Flash) memory on the Arduino and transfer that to another Arduino (via 250,000bps serial) that can communicate via USB HID with the HP Prime (because the Arduino Leonardo, which can commmunicate via USB does not have enough flash storage to store the entire image I had to use an Arduino Mega to store on).

It could be a tiny bit faster, but not a lot. For example, running a program on HP Prime which only fills each pixel with black takes a few seconds itself, and obviously this program needs to assign the data to the Red, Green and Blue channels on the HP Prime.

I will be experimenting with reading from SD Card next, and will show the results when I get around to it. The data transfer rate is not so bad considering that it is running in BASIC on the HP Prime, and there is hope for some other methods to increase the speed in the future.
Find all posts by this user
Quote this message in a reply
08-23-2023, 02:02 AM
Post: #2
RE: Copying an image to HP Prime via USB
I found your video of the image transfer via USB very interesting and educational.
The transfer speed not half bad it reminded me of the old 8-bit microcomputers like the ZX Spectrum , C64 loading splash screens then the game.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)