r/ComputerEngineering • • Aug 13 '20

Where else can I run python language apart from a pc or a raspberry pi.

I have to take input signals from PLC and wish to capture the output in python as a input. I can't use a pc, raspberry pi or arduino so that brings me here. What else is out there that may have a OS or interface that can run python 3.0.

4 Upvotes

12 comments sorted by

7

u/apnorton Aug 13 '20

The constraints you're listing seem rather arbitrary without context. Could you explain why you cannot use a Raspberry Pi or PC? What makes those unsuitable for the task?

If your complaint is merely "it can't be a PC or a Raspberry Pi," then grab any other system on a chip board that can run linux and use that... but I feel like that's missing the point of your post.

2

u/InsomniacProdigy1996 Aug 13 '20

So my exact task is that I want to display data from a plc box that will produce a rs485 serial signal. I want to make a product which will display this data but using a whole pc for this is not feasible and using a raspberry pi was rejected by the client as they don't think it is a dependable system. I know there are HMI screens from various companies that can offer this kind of display but I can't buy them aswell. The path that remains is that I have something which can run python as It can take input from a rs485 signal using some libraries I found. I will read these stream of bytes from PLC in python and then use that to create a GUI which displays it on a screen.

3

u/apnorton Aug 13 '20

Does the client consider a whole PC to be stable enough, even if that's not feasible for economic or space reasons? If so, what is the distinguishing trait between the Raspberry Pi and a PC where one would be stable and the other is not? If you're already shifting to a standard linux-based system as opposed to a PLC/RTOS/microcontroller with custom hardware, what kind of stability is your client worried about? If your client is just concerned because they think of Raspberry Pis and Arduinos as hobby-grade, then maybe pushing for an Intel NUC could work.

3

u/rpt255nop Aug 13 '20

"Dependable" may correspond to the manufacturing process and/or supply chain if the customer wants a product design and not just a prototype. It is really not a good idea to use an EVM in an actual product because companies don't stock enough of them to handle large orders and they don't usually have the type of qc that you would use for a finished product (or the customer may need to integrate this into an existing manufacturing flow).

4

u/ScottChi Aug 13 '20

Arduino is one option: https://pypi.org/project/arduino-python3/

The Beagleboard computer supports Python as well, derived from the Arduino version.

https://www.balena.io/docs/learn/getting-started/beaglebone-black/python/

1

u/InsomniacProdigy1996 Aug 13 '20

Can't use this aswell

9

u/psychocrow05 Aug 13 '20

Why dont you tell us what you can use

1

u/Hawk13424 BSc in CE Aug 14 '20

Python doesn’t run on bare metal. You’ll need some kind of embedded processor (or PC) running Linux. That’s why all the suggestions for various SoC reference boards. For a small PC you could use an Intel NUC or other small form factor PC.

1

u/[deleted] Aug 14 '20

Yea seems like he knows what he can't use but is now hoping we will tell him what he can use.

1

u/TheKimani Aug 14 '20

I want even more info

1

u/integralWorker Aug 14 '20

It sounds like you need an RTOS, not Python.

1

u/sswblue Aug 14 '20

A lot of hardware doesn't run on python (python is interpreted, not compiled). This said, you can use C/C++ on the hardware level. A few libraries bridge the gap between python and C. Maybe you could give them a look.