Hi there
I'm pretty new to the world of microcontrollers so I am using a BASIC Stamp module for the easier learning curve.
I have a question about sensor inputs to the microcontroller.
I plan on using PID control to stay on the line and light sensors to detect the line. Also, I'd like to be able to regain the line if lost, hence the use of a microcontroller. On a side note, what would be the best sensor, phototransistors/photodiodes or IR detectors?
My main question is, what is better, analogue inputs or digital inputs to the microcontroller? What are the pro's and con's?
Also, if digital, how would PID control work as there are no longer values to sum to find the error signal.
I'm pretty new to the world of microcontrollers so I am using a BASIC Stamp module for the easier learning curve.
I have a question about sensor inputs to the microcontroller.
I plan on using PID control to stay on the line and light sensors to detect the line. Also, I'd like to be able to regain the line if lost, hence the use of a microcontroller. On a side note, what would be the best sensor, phototransistors/photodiodes or IR detectors?
My main question is, what is better, analogue inputs or digital inputs to the microcontroller? What are the pro's and con's?
Also, if digital, how would PID control work as there are no longer values to sum to find the error signal.