Hello everybody,
Today I’ve set up a system that imitates the function of sliding doors that open when approached, ie doors at Walmart, Ingles, Publix, etc. Inside this system, I have included a standard (non-continuous) servo that turns from 0-180 degrees whenever an object is detected within 10 inches of an ultrasonic sensor that has also been attached. Just to give a brief explanation for those who may not be familiar:
A servo is a rotary actuator that, when given commands via a code source, can turn to a specific angle with high accuracy. For the purpose of my system, I am using a standard servo, which means that it can effectively only turn 180 degrees, instead of a continuous servo that would be able to turn indefinitely.
An ultrasonic sensor is a device that, when given an activation command, sends out a sound frequency of normally about 40,000 Hz, takes input data stating how long the sound took to travel and converts that into the distance of the object off which the sound bounced.
So, with that said, I will be explaining the code within the video, so feel free to watch, and I hope you enjoy!
Recent Comments