These features would normally be tucked away in a library like abdrive360 This is a simplified example of how the low-level position control is done. I still think it is trivial to write a sketch that based on where the serve currently is in rotation with respect to the home position, that the necessary "commands" can be sent to the servo to move to the 0 degree position.įeedback 360 Angle Control. I do not have a 360 degree servo to play with so it is up to them to learn. I am not going to write the sketches for him. I deal with optical disc encoders and linear encoders in cnc machines. I would have to have one to play with to understand thoroughly the hall-effect position feedback. It is not complete clear to me how the Hall effect switch is providing the angle the servo is at. It moves forward, backward or stops.Īdafruit claims that the tutorial is valid with the 360 degree servo. A 360 continuous rotation servo does not move to s specific angle. Once you have that, you can tell the servo to start moving in a particular direction, then keep reading the feedback until it gives a value that corresponds to your desired position. So to make it move to a specific position, you sill need to calibrate the feedback values. I could be wrong, but I think that the tutorial you are trying to use is for a feedback servo that is NOT 360 degree capable. The answer is in the sketch on the below url. This should be possible with a simple button and function if I know and can use the Information in steps 1) and 2). Any ideas or hints how this could be done?ģ) and at last I want to home the servo to zero degrees. Am I right?Ģ) on a second step I want to move the servo with an command from the PC to an exact degree. Any ideas or hints how this could be done?Īnd at last I want to home the servo to zero degrees. On a second step I want to move the servo with an command from the PC to an exact degree. I´m open for any ideas (also completly new coding attempts). How can I write the map to the serial monitor? Return map(analogRead(analogPin), minFeedback, maxFeedback, minDegrees, maxDegrees) I´m stucked at this code lines: int getPos(int analogPin) I fiddled around with an Adafruit sample code for Feedback servos Using Feedback | Analog Feedback Servos | Adafruit Learning System I ordered one of these servos ( which works flawlesly) but the only problem for me is now how to read the angles of this servo and show them via the serial monitor.That said for this project I needed one 360° feedback servo and stumbled across the Parallax Feedback 360° High Speed Servo ( Feedback 360 Degree - High Speed Continuous Rotation Servo : ID 3614 : $27.99 : Adafruit Industries, Unique & fun DIY electronics and kits). After one year on learning the basics pf Arduino I finally moved on to a real project.
0 Comments
Leave a Reply. |