Analog Flex Sensor Library for Proteus
Hi Friends! Happy to see you here. Thank you for viewing this read. Hope you’re well today. In this post, I’m going to discuss the Analog Flex Sensor Library for Proteus. You should also have a look at Digital
Flex Sensor Library for Proteus.
I’ve been adding them over the last few days intending to design and share brand new libraries that are not a part of the proteus library database already. I’m adding both simple simulation and simulation with the Arduino board to help you better understand these libraries with microcontrollers and Arduino devices.
Before I go further and walk you through on how to download and simulate Analog Flex Sensor Library for Proteus, let’s get to know what’s Flex sensor first.
Simply put, a flex sensor is used to monitor the value of bend. It is also known as a bend sensor that is mainly used in robot whisker sensors, door sensors, stuffed animal toys, and Nintendo power glove. The flex sensor is coupled with the exterior where the rotation of this exterior is directly related to the change in the sensor resistance.
Carbon or plastic material is used for the construction of these sensors where deflection value is sensitive to varying resistance. In terms of varying resistance and size, these sensors are categorized into two main types i.e. 4.5-inch bend sensor and 2.2-inch bend sensor.
I hope you’ve got a brief insight into what is flex sensor and why it is used for. You can also sneak into the
Analog PIR Sensor Library for Proteus that I’ve shared previously.
And if you don’t have proteus software installed in your system, check this post on
how to download and install proteus software.
Without further ado, let’s jump right into the Analog Flex Sensor Library for Proteus.
Continue reading.
Analog Flex Sensor Library for Proteus
First of all, click the link given below to download the analog flex library for proteus.
Analog Flex Sensor Library for Proteus
As you download this file, it contains two folders named Proteus Library and Proteus Simulation.
Click the Proteus Library, it will open up four files that read:
- FlexSensorAnalogTEP.HEX
- FlexSensorTEP.HEX
- FlexSensorTEP.IDX
- FlexSensorTEP
Copy and place these four files into the proteus library folder.
Now, click the ‘P’ button as below and write ‘Flex sensor analog’ in the search bar.
As you do this, it will return the file as mentioned below.
- Select this file and click “OK” As you click OK, your cursor will start blinking with the flex sensor, indicating you can place this sensor anywhere you want on the proteus workspace.
When you place this sensor on the proteus workspace, it will appear as follows:
This is how flex sensor appears on proteus workspace.
Flex Sensor Pinout
Flex sensor contains four pins as follow:
- G = first is the ground pin that you’ll connect to the ground voltage.
- O = second is the OUT pin that gives the Flex sensor value demonstrating if the sensor has identified the value of bend.
- V = third is the voltage supply pin that receives 5V to power the sensor.
- TestPin = forth is TestPin that we require in Proteus simulation only. This pin is not included in the sensor in real. We need to add this pin for identifying the value of bend. When this Pin is HIGH it gives the value of bend and when it turns LOW it gives no value of bend.
Adding HEX File
Now we’ll add the HEX file in the Flex sensor to run our simulation. You can find FlexSensorAnalogTEP.HEX file in the library folder of your Proteus library folder. Recall, we’ve already placed this file in the library folder of proteus.
- To add this file, right-click on the sensor and look for ‘edit properties.’
- You can also double click the flex sensor to reach the ‘edit properties’ panel.
Now search for the HEX file that you have placed in the proteus library folder.
Add this file and click ‘OK’ … Before you run this simulation we need to design and connect the LC circuit with the Flex sensor. We’ll add this circuit purposely. Why? You’ll get to know later in this post.
Connect the Output ‘O’ pin with the LC circuit through voltmeter where we get the output voltage following the variable resistor attached with the test pin.
- Both output voltage across voltmeter and variable resistance are inversely proportional to each other. When resistance is maximum, the voltage on the voltmeter is zero, thus indicating no amount of bend.
And when resistance is zero the voltage appearing across a voltmeter will be 4.98V, confirming the value of bend as an output voltage on the flex sensor.
You may be wondering why we add this LC circuit with the flex sensor? We need to include this circuit because proteus gives a peak to peak value that we have to convert into the Vrms value. That LC circuit serves this purpose.
You’ve done it. You have designed a simple simulation of a flex sensor library for proteus. We have added this library the very first time, as you won’t find this library in the proteus library database before. I’ve mentioned at the start of the article, I’ll share both simple simulation and simulation with Arduino Board.
Analog Flex Sensor With Arduino UNO
Now we attach the Arduino board with the flex sensor. To do this, we connect the voltage appearing across the voltmeter with the analog input pin of the Arduino board.
As you run this simulation it will return the result below.
Again, when resistance is maximum, the voltage is zero, that gives equivalent analog value on the LCD connected with the Arduino board, that value is 0019. And when resistance is zero, the voltage will be 4.98V and its equivalent analog value on the LCD will appear 1019.
That’s all for today. Hope you find this read helpful. If you face any difficulty in the simulation of Analog Flex Library for Proteus, you can leave your query in the section below, I’ll help you the best way I can. Feel free to leave your suggestions of the libraries that are not available in the proteus library database, I’ll design and share respective libraries with both simple simulation and simulation with Arduino boards. Thank you for reading this post.
Control Engineering: Surprising Applications of Servo Motors
Hi Friends! Hope you're well today. I welcome you on board. In this post, we'll discuss surprising applications of servo motors.
Servo motors also called “servos” or “control motors”, are electrical devices used for the precise control of position, torque, or speed of an object.
They can help in rotating or pushing items at a certain angle or distance. This actuation device has been around for quite some time. Servo motors are widely practiced in different industries.
Servo Motor Applications
A servo motor may appear small but this tiny beast is packed with countless capabilities that make certain objects function more effectively. Projects that require maximum precision rely on this electrical device. You should also have a look at
Servo Motor Control using Arduino.
A servo motor with high torque is an ideal pick to handle heavy loads properly. These versatile servo motors can quickly adapt to any kind of environment. I have also posted on
Servo Motor interfacing with PIC Microcontroller. Let’s take a look at some of the valuable uses of servo motors.
1. Sushi Bars
Have you seen those cute, sushi trains in Japanese restaurants? They use servo motors. Due to lack of staff, Yoshiaki Shiraishi developed a sushi train to serve sushi straight to customers.
Sushi trains are made with a conveyor belt. The ability of a servo to deliver perfect repeatability of motion serves a great purpose in sushi trains.
2. Escape Rooms
Those who seek an adventure will love escape rooms. You and your friends will have to complete a mission for you to literally “escape”.
The doors are installed with a servo motor controller that will only open if your team solves the puzzle. Props and supplies as well as other interactive parts of the game also use servo motors.
3. Automated Doors
We usually see these doors in business centers, shopping malls, and other commercial establishments. They all operate through servo motors. How? Automated doors have infrared sensors that detect the presence of an individual. The data collected through the infrared sensors is sent to the servo motors which in turn open the door.
4. Remote-Controlled Toys
Whatever remote-controlled toy or object it may be, it is guaranteed to be equipped with a servo motor. A user controls the toy using a transmitter which sends a signal through radio waves. The signal is then sent to the toy through an antenna and circuit board.
Upon receipt of these signals, the servo motors then steer the wheels in a toy car, operate the toy helicopter’s propellers, or do whatever the command you apply.
5. Camera Auto-Focus
Advanced cameras like Canon or Nikon use servo motors for their auto-focus feature. You can see the feature “AF Servo” in some digital cameras. Based on the camera’s settings, autofocus allows photographers to capture perfect images even if the subject is moving.
The servo motors are programmed with an intelligent algorithm. With just one click, it looks for angles with great focus in auto mode. This is helpful for photographers working on sports or wildlife.
6. Super High-Tech Fashion
Sometimes servo motors serve purposes beyond human imagination. In 2013, Anouk Wipprecht, an iconic Dutch designer, designed a one-of-a-kind outfit called “Spider Dress”. This dress is, no doubt, unprecedented.
Each shoulder pad has two 12-channel Maestro servo controllers that move through embedded sensors. The triggers involve stress levels or when someone comes close around the wearer.
7. Collaborative Robots
Also known as “cobot”, this type of machine is different from a traditional robot. They are programmed to work in partnership with humans to complete a certain task.
Servo motors provide these robots a remarkable intelligence that you cannot expect from a simple cc motor. Also, advanced sensors and servo drive technology enable cobots to adapt to different environments.
Types of Servo Motors
There are scores of servo motors available in the market. They are categorized in terms of size and shape based on the nature of the application.
1. DC Servo Motors
DC current controls DC servo motors. They are the right fit for smaller applications for their ability to handle smaller current surges. Due to their swift reaction to commands and motions, DC motors are preferred for machines programmed with mathematical controls. They have, however, stability issues and may need more maintenance compared to AC servo motors.
2. AC Servo Motors
AC current controls AC servo motors. Compared to their DC counterparts, these servos can take higher current surges. The reason they are preferred for CNC and industrial machinery, as well as in automation. In this type of servo, there is an integrated encoder that allows closed-loop control and feedback. Stability is also not an issue with this servo. Furthermore, frequent maintenance is not required.
3. Positional Rotation Servo Motors
This kind of servo is considered as the most common and important among all servo motors. They are typically used in an aircraft, toy, or robot servo. This servo comes with a shaft that can rotate up to 180 degrees. To make sure it won’t surpass this limit, the servo is also equipped with gear mechanisms with physical stops that guard the rotation sensor.
4. Continuous Rotation Servo Motors
These servo motors are somewhat similar to a positional rotation model with limited operations. They can move in any direction but the distance results are indefinite. Instead of directing the motor in a fixed position, the control signals handle the servo’s speed and direction of rotation. Their unlimited rotation and directional control features make them ideal for radar dishes or servo motor for robots.
5. Linear Servo Motors
Another kind of servo that is similar to a positional rotation model is the linear servo motor. The difference is that this type of servo motor has extra gears that allow linear movements or forward/backward motions. They are rare but are available in hobby stores. A hobby or higher-model airplane, small vehicle build, and even a robot use linear servo motors as actuators.
Working of Servo Motors
Servo motors can rotate 90 degrees from either direction and can turn up to a maximum of 180 degrees. It cannot exceed this number because of its built-in mechanical stop. A
Pulse Width Modulated (PWM) signal controls the servo motors which are sent to the control wire.
Every 20 milliseconds (ms), the servo motor expects to receive a pulse. The PWM received by the motor sends a command as to how the shaft will position. Moreover, the duration of the pulse forwarded via the control wire directs the rotor in which position to turn to.
Take a look at this study about a robot arm’s movement that can be controlled via Internet access. Here, the control signal came from someone behind the computer. The
robotic arm servo motors react differently according to the pulse width received.
With a pulse width of 0.6 mS, the shaft moved -45 degrees. Then the pulse width increased to 1.5 mS causing the shaft to return to 0 degrees. Lastly, the pulse width increased again to 2.4 mS which shifted the shaft to 45 degrees.
Conclusion
If excellent precision is required, servo motors are the solution you’re looking for. The application of this actuation device is rampant in different industries. You’ll find servo motors in a collaborative robot, sushi bar, and even in an out-of-this-world fashion.
Their classification depends on the servo motors application. When it comes to movement, the command comes through
PWM signals. The width of the pulse received dictates the position of the shaft.
The Internet is already occupied with countless content where it’s difficult to identify the right one. With the Design Web Kit, you don’t need to worry about getting the wrong information anymore. We offer a collection of articles about various website trends.