[Tutor] Python serial interface
Hi all, This is a very general question, but I was wondering if anyone has experience using python to interface with a serial port? If so, can you please forward any useful resources? Thanks! Colin ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python serial interface
On 01/04/2015 15:43, Colin Ross wrote: Hi all, This is a very general question, but I was wondering if anyone has experience using python to interface with a serial port? If so, can you please forward any useful resources? Thanks! Colin http://pyserial.sourceforge.net/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python serial interface
Pyserial is python 2.x and 3.x compatible. It is very widely used and is stable. http://pyserial.sourceforge.net/ What is your application? Sometimes you can use a higher level module that makes use of pyserial. Francois -- raspberry-python.blogspot.com - www.pyptug.org - www.3DFutureTech.info - @f_dion ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python serial interface
I am using the following controller: http://www.aerotech.com/product-catalog/drives-and-drive-racks/ensemble-mp.aspx Which does not specifically list python as one of the accepted languages, but I guess this does not mean it is not possible. Colin On Wed, Apr 1, 2015 at 12:58 PM, Colin Ross colin.ross@gmail.com wrote: Thank you Francois, this gives me a lot to think about! I really appreciate your feedback. Colin On Wed, Apr 1, 2015 at 12:50 PM, Francois Dion francois.d...@gmail.com wrote: On Wed, Apr 1, 2015 at 11:01 AM, Colin Ross colin.ross@gmail.com wrote: Hi Francois, Thank you for the fast reply! I am looking to control a brushless servo motor ( http://www.aerotech.com/product-catalog/motors/rotary-motors/bms-series.aspx) that drives a rotary stage. These motors are not controlled by serial, you'll need a brushless controller. In turn the controller might be or not serial, or ip or something else altogether (PWM is typical). They do have an rs-422 connection, but that is for a feedback signal. So you are building a feedback control system. If you google that and python you'll find several useful references, including a design and analysis module (but not control): https://pypi.python.org/pypi/control/0.6.6 http://sourceforge.net/projects/python-control/ Nothing out of the box for your application, obviously. Also, the motor control itself will depend on the microprocessor hardware you are using and the motor controller. Assuming PWM, the raspberry pi has a software PWM module in Python. Same with micropython. Anything else is pretty much DIY. As for the overall concept of control systems, Chapter 9 of Real World Instrumentation ( http://shop.oreilly.com/product/9780596809577.do ) will give you an overview of what is involved (with some python example, but not directly applicable to your system). Francois -- raspberry-python.blogspot.com - www.pyptug.org - www.3DFutureTech.info http://www.3dfuturetech.info/ - @f_dion ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python serial interface
Hi Francois, Thank you for the fast reply! I am looking to control a brushless servo motor ( http://www.aerotech.com/product-catalog/motors/rotary-motors/bms-series.aspx) that drives a rotary stage. Colin On Wed, Apr 1, 2015 at 11:53 AM, Francois Dion francois.d...@gmail.com wrote: Pyserial is python 2.x and 3.x compatible. It is very widely used and is stable. http://pyserial.sourceforge.net/ What is your application? Sometimes you can use a higher level module that makes use of pyserial. Francois -- raspberry-python.blogspot.com - www.pyptug.org - www.3DFutureTech.info - @f_dion ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python serial interface
On Wed, Apr 1, 2015 at 11:01 AM, Colin Ross colin.ross@gmail.com wrote: Hi Francois, Thank you for the fast reply! I am looking to control a brushless servo motor ( http://www.aerotech.com/product-catalog/motors/rotary-motors/bms-series.aspx) that drives a rotary stage. These motors are not controlled by serial, you'll need a brushless controller. In turn the controller might be or not serial, or ip or something else altogether (PWM is typical). They do have an rs-422 connection, but that is for a feedback signal. So you are building a feedback control system. If you google that and python you'll find several useful references, including a design and analysis module (but not control): https://pypi.python.org/pypi/control/0.6.6 http://sourceforge.net/projects/python-control/ Nothing out of the box for your application, obviously. Also, the motor control itself will depend on the microprocessor hardware you are using and the motor controller. Assuming PWM, the raspberry pi has a software PWM module in Python. Same with micropython. Anything else is pretty much DIY. As for the overall concept of control systems, Chapter 9 of Real World Instrumentation ( http://shop.oreilly.com/product/9780596809577.do ) will give you an overview of what is involved (with some python example, but not directly applicable to your system). Francois -- raspberry-python.blogspot.com - www.pyptug.org - www.3DFutureTech.info http://www.3dfuturetech.info/ - @f_dion ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python serial interface
Thank you Francois, this gives me a lot to think about! I really appreciate your feedback. Colin On Wed, Apr 1, 2015 at 12:50 PM, Francois Dion francois.d...@gmail.com wrote: On Wed, Apr 1, 2015 at 11:01 AM, Colin Ross colin.ross@gmail.com wrote: Hi Francois, Thank you for the fast reply! I am looking to control a brushless servo motor ( http://www.aerotech.com/product-catalog/motors/rotary-motors/bms-series.aspx) that drives a rotary stage. These motors are not controlled by serial, you'll need a brushless controller. In turn the controller might be or not serial, or ip or something else altogether (PWM is typical). They do have an rs-422 connection, but that is for a feedback signal. So you are building a feedback control system. If you google that and python you'll find several useful references, including a design and analysis module (but not control): https://pypi.python.org/pypi/control/0.6.6 http://sourceforge.net/projects/python-control/ Nothing out of the box for your application, obviously. Also, the motor control itself will depend on the microprocessor hardware you are using and the motor controller. Assuming PWM, the raspberry pi has a software PWM module in Python. Same with micropython. Anything else is pretty much DIY. As for the overall concept of control systems, Chapter 9 of Real World Instrumentation ( http://shop.oreilly.com/product/9780596809577.do ) will give you an overview of what is involved (with some python example, but not directly applicable to your system). Francois -- raspberry-python.blogspot.com - www.pyptug.org - www.3DFutureTech.info http://www.3dfuturetech.info/ - @f_dion ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python serial interface
On 01/04/2015 17:14, Colin Ross wrote: I am using the following controller: http://www.aerotech.com/product-catalog/drives-and-drive-racks/ensemble-mp.aspx Which does not specifically list python as one of the accepted languages, but I guess this does not mean it is not possible. Colin Can you please stop top posting, it's extremely irritating trying to follow fairly long threads like this, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor