Francklin
Posts: 8
Joined: Wed Jan 24, 2018 7:47 pm

[Help]: Using raspberry to control a industrial robot

Thu Jan 25, 2018 5:10 pm

Hi everyone!

I bought a raspberry pi 3+ a week ago to learn something using this.

Yesterday at my work we had a situation...a smartphone read a QR Code and send (by wifi or bluetooth) a signal to PLC - which read this code and convert in binary and send to robot.

Someone has any suggestion to make this with raspberry pi instead PLC?

I appreciate your help! :mrgreen:

Att;
Francklin

PiGraham
Posts: 3696
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: [Help]: Using raspberry to control a industrial robot

Thu Jan 25, 2018 5:28 pm

You will need to supply some details, but how about:

Pi (with camera) read a QR Code and send to robot?
;)

Francklin
Posts: 8
Joined: Wed Jan 24, 2018 7:47 pm

Re: [Help]: Using raspberry to control a industrial robot

Thu Jan 25, 2018 5:40 pm

PiGraham wrote:
Thu Jan 25, 2018 5:28 pm
You will need to supply some details, but how about:

Pi (with camera) read a QR Code and send to robot?
;)
I am sorry.
Let me explain:

Now we have an app which read a QR Code and send a code to PLC.
But I am thinking about use raspberry pi instead the PLC.

A smartphone read the QR Code throught the app, and send a msg to raspberry pi - which convert this msg (for example: on = GPIO1 HIGH, off = GPIO1 LOW).

scotty101
Posts: 3799
Joined: Fri Jun 08, 2012 6:03 pm

Re: [Help]: Using raspberry to control a industrial robot

Fri Jan 26, 2018 9:38 am

Francklin wrote:
Thu Jan 25, 2018 5:40 pm
A smartphone read the QR Code throught the app, and send a msg to raspberry pi - which convert this msg (for example: on = GPIO1 HIGH, off = GPIO1 LOW).
Still more information needed. How are the messages sent from the smartphone? (bluetooth, wifi?) What format are the messages? What processing needs to happen to set GPIO pins based on the message sent?
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

PiGraham
Posts: 3696
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: [Help]: Using raspberry to control a industrial robot

Fri Jan 26, 2018 3:05 pm

How does the PLC do this: "read this code and convert in binary and send to robot."
Make the Pi do the same.

Francklin
Posts: 8
Joined: Wed Jan 24, 2018 7:47 pm

Re: [Help]: Using raspberry to control a industrial robot

Fri Jan 26, 2018 5:05 pm

scotty101 wrote:
Fri Jan 26, 2018 9:38 am
Francklin wrote:
Thu Jan 25, 2018 5:40 pm
A smartphone read the QR Code throught the app, and send a msg to raspberry pi - which convert this msg (for example: on = GPIO1 HIGH, off = GPIO1 LOW).
Still more information needed. How are the messages sent from the smartphone? (bluetooth, wifi?) What format are the messages? What processing needs to happen to set GPIO pins based on the message sent?
At first moment the smartphone will send this code by wifi.
No matter the format of the messages...but let try to use a string for example.

Simple like that.

if word == 'light'
set GPIO1 = HIGH
if word == 'dark'
set GPIO1 = LOW



Do you understand?

Francklin
Posts: 8
Joined: Wed Jan 24, 2018 7:47 pm

Re: [Help]: Using raspberry to control a industrial robot

Fri Jan 26, 2018 5:06 pm

PiGraham wrote:
Fri Jan 26, 2018 3:05 pm
How does the PLC do this: "read this code and convert in binary and send to robot."
Make the Pi do the same.
I found a topic who can help me:

viewtopic.php?f=37&t=196010

Thank you for everyone!

ranpitime
Posts: 73
Joined: Sat Mar 23, 2013 5:21 am

Re: [Help]: Using raspberry to control a industrial robot

Sat Jan 27, 2018 9:17 am

Hi,
I would recommend to use CODESYS control on Raspberry Pi. (back in the plc world combined with the Pi world)
You have probably direct connection via profinet or ethercat to the Robot?!
(What Kind of Robot is it exactly?)

Additional it is possible to read qr code on the pi...or even reading on the mobile phone.
Here is an example how to use the sensors from mobile phone transfer them by network variables to the Raspberry Pi plc
https://store.codesys.com/codesys-senso ... droid.html.
CODESYS Project which you need to for this(to receive the data from the app).

Additional you could use this to control the visualisation on the plc (this is Independent from the sensor app):
https://play.google.com/store/apps/deta ... ys.webview



BR
ranpitime
Attachments
SensorApp.jpg
SensorApp.jpg (135.53 KiB) Viewed 1505 times

Hans Liu
Posts: 1
Joined: Wed Jan 31, 2018 8:06 am

Re: [Help]: Using raspberry to control a industrial robot

Wed Jan 31, 2018 8:13 am

Just using a Raspberry Pi with camera to control the Industry Robot .(scan QR code and control Robot like PLC do).

Return to “Automation, sensing and robotics”