← General Discussion
Wampo@wampo· 634 viewsin General Discussion

External Handheldpanel & Linux (Raspberry Pi)

Hey Guys and nice Greetings from Germany,

is it possible to run the Software on a Raspberry PI system?

I would create a Handheldpanel with Touchfunctionality and a little 3D Mouse, would be easyer to handle and Teach the Robot. Like a KRC from KUKA.

Any Ideas?!

Greetings Daniel

Comment 10

Chris Annin

Yes, see here on the project repository: https://github.com/Chris-Annin/AR2/tree/master/RaspberryPi

this was provided courtesy of Zach Allen.

Wampo

THX, Chris. GOT IT!

In this RaspberryVersion on Git you only must change the Line in AR2.py where the BAUDRATE is defined. Actual it is at 9600baud but Arduino Communicates with 115200baud.

If i changed it, my Arduino talks to the Raspberry else you got no Communication.

def setCom():

global ser

port = "/dev/ttyACM0" #+ comPortEntryField.get()

baud = 115200

ser = serial.Serial(port, baud)

Okay, lets build some Touchscreen Handheld Device :-D.

My plan is it to downsize your Main Softwarevisualisation for a Touchscreen with buttons like Orientation changes from Base to Tool to SingleAxis.

Greetings Daniel

Marius-Cristian Pop

@Wampo (https://anninrobotics.com/community/questions/external-handheldpanel-linux-raspberry-pi) I confirm your def setCom() settings work even in case of running the python AR2 script on Ubuntu 16.04. Another thing to do when running on Ubuntu is to run the script with "sudo". For example sudo python3 AR2.py. Else this error will appear: serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'.

Matt Carrier

@Wampo (https://anninrobotics.com/community/questions/external-handheldpanel-linux-raspberry-pi) Thanks for the tip on setting the baud. Were you able to use auto calibrate without it crashing? When I click the button the robot drives to all the limit switches and then stops but the button does not unstick. Program seems to freeze.

Kstan Simit

Hi, I’m tried run AR3 on raspberry pi.however it notice that once both usb cable from arduino and teensy connected the raspberry pi look like freeze or reboot. I think because of insufficient power supply from microUSB into raspberry pi. How you guy overcome this obstacle?

cause we need connect raspberry pi to hdmi, keyboard, mouse, teensy and arduino. Seems it drain too much power

Welding Flash Restorations

Hi there i have just ordered the combo kit and steppers etc and im currently printing the 3d files, do you know if the pi project still works with the AR4?

Matt Carrier

I've ported the latest 2.0 version of the software to linux so it is now working for me. I need to update the UI because some of the buttons are cut off but once I'm done doing this I'll send @Chris (https://anninrobotics.com/community/questions/external-handheldpanel-linux-raspberry-pi) Annin a copy of it so he can update the main repo. This is so exciting to have my robot finally working after 2+ years of working on it off and on. Thanks again @Chris (https://anninrobotics.com/community/questions/external-handheldpanel-linux-raspberry-pi) Annin for creating this project and sharing all the info. (Should note that it works on a raspberry pi but I had to disable xbox controller support. I think that will need a bit of work possibly to work on the Pi.)

raghuraman.b

When running the AR3 software in raspberrypi i get AR3.ico error. Icon error. Unable to resolve it. Any ideas guys?

Robert Rolleston

yeah delete line 79 in AR4.py: root.iconbitmap(r'AR.ico')

Welding Flash Restorations

can this still be done with the AR4 and the teensy 4.1?

10 replies

Photos