Page 1 of 1

PB and using USB port modeles

Posted: Tue Jan 14, 2025 5:24 pm
by Rudy M
Hello,

One can use a RaspberryPi or Arduino to do a lot of things via PB programs.
For me a beer brewing installation, but for others a lot of robotics and so on...

On internet (Ali... Amaz..., Temu...) You can see a lot of modules using the USB port (mostly USB to parallel...).
The prices are very low, sometimes a few Euro's.

Are there PB programmers who have experiences with such modules?
If Yes: - Can You publish a link to such device(s) and possible 'needed' software modules?

Reason of my question:
In that case every PB programmer can use his PC, laptop... to do the job.

Rudy M

Re: PB and using USB port modeles

Posted: Tue Jan 14, 2025 5:31 pm
by skywalk
Don't you mean RaspberryPI+Arduino?
Does Arduino come with an OS?
I thought it was only a microcontroller interface.

Re: PB and using USB port modeles

Posted: Tue Jan 14, 2025 5:52 pm
by Marc56us
Arduino uses a C syntax code that you upload in his flash rom (via Arduino IDE)
Arduino IDE setup install a driver to map USB to serial port
So if you need to communication with Arduino, this is made via USB (or BT) so with PB using SerialPort lib
Connect sensors, relay etc to arduino, then drive it via PB program.
This is easy and there is many samples in this forum. (use search field)

Re: PB and using USB port modeles

Posted: Wed Jan 15, 2025 10:44 am
by Rudy M
I first thought of a cheap plug-in module on a USB port to parallel, or a kind of USB-gpio module.
The problem is to find a good c-lib (or to write the software myself).

When searching further on the internet I am now more inclined to buy an older type of e.g. the RaspberryPi series (cheaper than the latest new types...) and install Pb on it.
And then it is also much simpler in terms of software to do the job from PB with the pigpio-lib.

Re: PB and using USB port modeles

Posted: Wed Jan 15, 2025 3:56 pm
by skywalk
My question was what PB compiler target you planned?
RaspberryPI or a fanless ARM PC running Windows or Linux?
Certainly cheaper to go RaspPI controlling the Arduino relays,etc.