Post Reply 
The ultimate partner for the HP Prime G2 - The Arduino Leonardo.
05-17-2023, 06:11 PM
Post: #1
The ultimate partner for the HP Prime G2 - The Arduino Leonardo.
The HP Prime can connect directly to an Arduino Leonardo (which can speak USB HID). This allows input from any type of sensor you can think of, or output to any type of device, such as a piezo speaker for a BEEPER for example. You can log any data on the Prime, display it as a graph or process it, or you could use the HP Prime as an input into Arduino projects with all of its great buttons and multitouch screen.

Here is a short video of the connection to an Arduino Leonardo which has an LDR attached to it.



This is very easy to use, requires no software setup and allows any analog sensor or digital communication protocol to be sent to Arduino and output to HP Prime.

USBOpen(9025,32822) opens the connection to the Arduino, after that you send data from the Arduino or to the Arduino, receiving that data is as simple as USBRecv. The numbers sent from Arduino will appear in a list (64 bytes). If you use USBSend({1,2,3,4}), then the Arduino receives 1,2,3,4. It really couldn't be any simpler.

It is now possible to connect anything you want to your HP Prime G2 through the Arduino.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
The ultimate partner for the HP Prime G2 - The Arduino Leonardo. - matalog - 05-17-2023 06:11 PM



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