On 9/24/2016 9:37 AM, Sag ich Dir nich wrote:
> Just another question
> 
> Can i use the remaining 3 pins of p503 for encoder for closed loop
> spindle control, feed override and spindle speed override via
> potentiometers?

You need to use PRU direct inputs for the PRU encoder.  The signals on
P503 are available as direct PRU inputs and outputs, so you can setup
an encoder input.  An alternative would be to use the hardware eQEP
encoder modules.  They have much higher performance, but limited pin
availability (look for pins named "eQEP*" in the pinmux spreadsheet).

Nothing on P503 will support analog inputs, but you can connect a
potentiometer to either the thermistor connector (P504) or the
touch-screen connector (P305).  The thermistor inputs have a pull-up
resistor and R/C filtering, while the touchscreen input has analog
1.8V available and no pull-ups or filtering.

If you use the P305 touchscreen connector, be *VERY* careful you don't
ever exceed 1.8 V on any input (including noise or voltage spikes) or
you can easily kill the CPU on your BBB.  These signals are wired
directly to the CPU, and the AM335x has very little protection on the
ADC input pins.

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to