zuzaparany
Posts: 6
Joined: Tue Jul 26, 2016 6:05 am

Arduino -> PD->Python->PD

Fri Sep 16, 2016 11:06 am

Hi!
i am quite new to python programming and i would like to do the following:

i have a controller that send data to Pure Data, it works great. but i would like to send data to an other port to python from pure data with the controller. I can open ttyACM0, but can't open ttyACM1, because it is not there...can i use ACM0 for communicating with 2 things, or try to use a virtual port, and if, how can i set up one that opens in pure data?

My project is, to make music in PD with the controller and show information on the Raspberry pi Sense HAT led wall.
Thanks,
Pete

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

Re: Arduino -> PD->Python->PD

Fri Sep 16, 2016 12:37 pm

The pi only has one available UART.

If you wish to add more you can connect one via USB.

Arduinos contain 'virtual serial ports' or USB to Serial converters. If you connect more than one Arduino you will see multiple additional ports.

(Other options for SPI/I2C UARTs do exist)
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

zuzaparany
Posts: 6
Joined: Tue Jul 26, 2016 6:05 am

Re: Arduino -> PD->Python->PD

Fri Sep 16, 2016 9:30 pm

I would like to send something from python first to pure data trough comport. How can i do that? I also would like to execute python scripts from pure data, but i can not install py/pyext object. tried a 100 ways but can not create it...i use raspberry pi 3 with latest raspbian...i can open serial in python but cant see any data in pd trough comport. Nothing...i need integers but don't know how it works...this python language is a mess compared to arduino...

Return to “Python”