2020-11-22 (Su) IoTHackDay2020 Cloud Ouija

The Arduino servo library has a couple of limitations. For one, it won't always utilize a servo's full range of motion. Secondly, it has low precision compared to what a servo motor is capable of performing. The stock library divides the angle into 180°, but it is possible to send commands that divide the full range into one-thousand or more increments. I want to implement smooth acceleration, so I need that kind of precision.

When I wrote a drop-in replacement, the servos movement was erratic until I realized that I left the old code in place. Once I removed traces of the old library, my servos moved logically, but they could get a little shaky. Next, I noticed that they weren't moving to the board's ends, so I had to scale the upper and lower limits. According to Google Images, the servo motors expected a pulse between one millisecond and two milliseconds long. When I connected a couple of potentiometers to adjust the limits, I settled on 0.5 to 2.4 milliseconds.
Sending serial commands

The rest of the posts for this project have been arranged by date.
First time here?

Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information on this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property, or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.
2020-11-21

Comments