Discussion Overview
The discussion revolves around programming a servo motor to sort blocks based on size using an infrared sensor. Participants explore how to implement this using assembly language and frequency control, focusing on the technical aspects of interfacing a microprocessor with the servo motor.
Discussion Character
- Technical explanation
- Exploratory
- Homework-related
Main Points Raised
- One participant describes their project involving sorting blocks using an infrared sensor to determine size based on the duration the beam is interrupted.
- Another participant expresses unfamiliarity with the concept of "sorting by frequency" and suggests using solenoids to direct the blocks instead of a servo motor.
- A question is raised about whether the participant is asking about driving a stepper motor with a microprocessor.
- The original poster confirms they are using a 9s12mini dragon processor to drive a servo motor and seeks guidance on programming it by frequency.
- One participant suggests using onboard timers to output different frequencies and discusses the concept of timer overflow and reload values for frequency adjustment.
- The original poster elaborates on their sorting method and reiterates their need for help with the assembly program to control the servo motor using frequency.
- Another participant inquires whether the servo motor is actually a stepper motor and requests clarification on the meaning of "changing frequency."
- A participant provides pseudo code as a potential approach to programming the servo motor, emphasizing the need for timer management and output control, while noting that there are multiple ways to achieve the desired functionality.
Areas of Agreement / Disagreement
Participants have not reached a consensus on the best approach to program the servo motor. There are differing views on the use of solenoids versus servo motors, and the discussion includes various suggestions and questions regarding the implementation details.
Contextual Notes
There are limitations in the discussion regarding the specific capabilities of the 9s12mini dragon processor and the exact nature of the servo motor being used. Additionally, the pseudo code provided is not fully fleshed out and may require further refinement.