<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sara Kadam on Medium]]></title>
        <description><![CDATA[Stories by Sara Kadam on Medium]]></description>
        <link>https://medium.com/@sarakadam18?source=rss-4ea4ade29d58------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xCEp6PZ2D-K2FIuY</url>
            <title>Stories by Sara Kadam on Medium</title>
            <link>https://medium.com/@sarakadam18?source=rss-4ea4ade29d58------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:40:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sarakadam18/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Distributed Control Systems (DCS)]]></title>
            <link>https://medium.com/@sarakadam18/distributed-control-systems-dcs-8307f6920e2?source=rss-4ea4ade29d58------2</link>
            <guid isPermaLink="false">https://medium.com/p/8307f6920e2</guid>
            <dc:creator><![CDATA[Sara Kadam]]></dc:creator>
            <pubDate>Tue, 02 May 2023 21:12:23 GMT</pubDate>
            <atom:updated>2023-05-02T21:12:23.305Z</atom:updated>
            <content:encoded><![CDATA[<p>With the current technology, humans have devised ways to improve the mechanism of various systems used for multiple things. The <strong>automation industry</strong> is constantly improving, and humans have achieved incredible feats ever since. It all started with PLC or Programmable Logic Controller.</p><p>This tool helps control a specific production process by keeping the air flowing maintaining the volume of water tanks and other components in a production process that needs to be regulated. However, PLC cannot simply control everything, and it cannot work simultaneously to control other devices and procedures as well.</p><p>Then came the birth of the DCS or <strong>Distributed Control System</strong>. As the name suggests, this tool distributes its power to control different processes in production, which makes it more flexible. At the same time, the tool can also be coordinated with other devices, making it more reliable to use in different devices in a plant.</p><p>Now we know this, it is time to understand what it is precisely and why it is vital for the production process.</p><h3>What is Distributed Control System?</h3><p>In simplest terms, a DCS or a Distributed Control System is a tool that manages all the components that need to be controlled in a plant. Think of it as the one extensive remote control that can turn on or off any device within a particular area. This device is powerful, especially in places where automation is highly utilized.</p><p>A few people usually control DCS. However, DCS is highly different from a plant’s main control unit. What it mainly does is manage a particular group of machines. These machines are categorized and grouped, then controlled by a DCS.</p><p>Then the information taken by the DCS is transferred to the central control unit of a plant. The leading data is being processed and then studied in real time.</p><p>To get a clearer picture of it, imagine you are sending a message to a group of people, and you asked this group of people to transfer the message to the primary receiver you want. The group of people is like DCS, and the main receiver is like the central unit of the whole plant.</p><p>DCS makes controlling easier, especially for units that need more extensive attention in a plant.</p><h3>Where is Distributed Control System (DCS) Used?</h3><p>The main purpose of DCS is to be used in extensive production processes in a plant. So, let’s say for manufacturing, distribution, or chemical manufacturing. With DCS, manufacturers can control different production areas and transfer information in real time to the main computer unit of a plant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*GIZi3sNbmanF-jr23UNVXQ.png" /><figcaption>Figure 1: A Distributed Control System</figcaption></figure><p>At the same time, DCS also transfers instructions to the different components of a plant, which makes the automation process more accessible and more efficient. This information is distributed to individual components, creating a particular plant component function.</p><p>Everything must be organized accurately to get the best results in using DCS. At the same time, to guarantee the safety of everyone in the plant, every DCS also acts as a regulator for every device used in a plant.</p><h3>What is the Difference Between DCS and PLC?</h3><ul><li><strong>Speed of Response — PLC</strong> is faster than a DCS because it takes 30mins for a DCS to respond. However, despite its slow response, it can control various plant components.</li><li><strong>IO Capacity — </strong>DCS is viable if you want to control multiple IOs at a time because PLC can only control a few.</li><li><strong>Logic Development — </strong>Every DCS is equipped with built-in control, configured based on the need, while PLC does not have a built-in command.</li><li><strong>Redundancy — </strong>DCS is cheaper to maintain because it only uses the default system while PLCs are not. In using PLCs, you are compelled to buy more additional hardware, making them more expensive.</li><li><strong>Application — </strong>If you want to use a single control system for a single device, then PLC is the one for it. However, if you need a more reliable component for multiple devices, then DCS is the one you should choose.</li><li><strong>Cost — </strong>PLC is more expensive than a DCS, but that does not make PLC less of a value.</li></ul><h3>What is the Difference Between DCS and SCADA?</h3><ul><li><strong>Focus — </strong>Despite their similarity, a DCS and SCADA have many differences. One of which is the focus of the devices. The number one control of SCADA is gathering data from one area to another. In comparison, the DCS is more of an authority over various systems or components of a plant. In simple terms, DCS is the remote control, and the SCADA is the one that gathers information.</li><li><strong>Areas of Implementation — </strong>It also differs on the application. The scope of reach of SCADA is broader, and it can transfer information from one plant to another. But DCS can only control the devices within the plan where it is placed.</li><li><strong>Ability to Endure Communication Loss — </strong>SCADA can handle any interruption to communication while DCS can’t. This is important, especially if the area is prone to electricity interruption.</li><li><strong>Communication Protocols — </strong>SCADA can support various protocols, but DSC can’t. However, this does not mean that DCS is useless for communication. It’s just that SCADA stands out more in communication.</li><li><strong>Processing Times — </strong>SCADA is faster than DCS because it mainly connects to the main network system. However, DCS is effective for communication.</li></ul><h3>Advantages of DCS</h3><ul><li><strong>Handle complex structure — </strong>PLC is used to control the industrial process at a very high-speed requirement. However, due to the limitation of Input/Output devices, PLC can’t handle a more complex structure.</li><li><strong>System redundancy — </strong>DCS facilitates system redundancy at the entry level. Redundancy raises system reliability by maintaining system operation endlessly during the time of some abnormalities even when the system is in operation.</li><li><strong>HMI — </strong>DCS can give a facility to monitor and control the equipment of the entire plant area through HMI. Data logging and an Alarming facility can give the operator a better understanding of the physical overview of the process.</li><li><strong>Scalable platform — </strong>The structure of DCS can be easily scalable just by adding some more control units or process units. I/Os can be easily expanded by just adding some I/O modules to the controller.</li><li><strong>System Security — </strong>Distributed Control System design offers a perfectly secured system to handle system functions for better factory automation control. Security is also provided at different levels such as engineer level, entrepreneur level, operator level, etc.</li></ul><h3>Popular Brand of DCS System</h3><ol><li>ABB</li><li>Emerson Electric</li><li>Honeywell International</li><li>Siemens</li><li>Yokogawa Electric</li><li>General Electric</li><li>Metso</li><li>Mitsubishi Heavy Industries</li><li>Omron</li><li>Rockwell Automation</li><li>Schneider Electric</li><li>Toshiba International</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8307f6920e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Most Popular Serial Communication Protocols.]]></title>
            <link>https://medium.com/@sarakadam18/the-most-popular-serial-communication-protocols-c191e34be8ac?source=rss-4ea4ade29d58------2</link>
            <guid isPermaLink="false">https://medium.com/p/c191e34be8ac</guid>
            <dc:creator><![CDATA[Sara Kadam]]></dc:creator>
            <pubDate>Sun, 30 Apr 2023 13:43:17 GMT</pubDate>
            <atom:updated>2023-04-30T13:43:17.003Z</atom:updated>
            <content:encoded><![CDATA[<p>Communication is a well-known term that refers to the exchange of information between two or more mediums. Communication in embedded systems refers to the exchange of data in the form of bits between two microcontrollers. In a microcontroller, data bits are exchanged according to a set of rules known as communication protocols. When data is transferred in series, that is one after the other, the communication protocol is known as Serial Communication Protocol.</p><p>In Serial Communication, data bits are delivered one at a time in a sequential way through the data bus or communication channel.</p><p><strong>CAN Bus Protocol</strong></p><p>The Controller Area Network (CAN bus) is a message-based system that allows the Electronic Control Units (ECUs) used in today’s automobiles, as well as other devices, to interact with one another in a dependable, priority-driven manner. Messages or “frames” are received by all network devices without the need for a host computer. CAN is backed by a comprehensive set of international standards defined by ISO 11898.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jGm2TTC_DdlLmIh4HM6sg.jpeg" /></figure><p><strong>Figure 1: CANBUS protocol architecture</strong></p><p>CAN provide superior control and fault detection capabilities. Error detection is simple, and so transferred data gets to its destination. It is an excellent protocol for distributing control of a complex system. It minimizes bulky wiring and, as a result, costs and weight. The chips are inexpensive, and implementing CAN is simple due to the protocol’s straightforward design.</p><p><strong>Profibus Protocol</strong></p><p>“Profibus” is an abbreviation for “Process Field Bus,” and it is the most frequently used industrial control network in the world for industrial process control, motion control, automation, and safety networks. This network is backed by over 1400 equipment vendors throughout the world. This control network delivers services at many tiers in the OSI model, including layer 1, layer 2, and layer 7.</p><p>Profibus is a widely established international networking standard that is commonly used in big assembly, material handling, and process control machines. This control network only allows for multi-input wiring with single-cable sensor blocks, smaller sub-networks such as AS-i, complicated intelligent devices, operator interfaces, and pneumatic valves. PROFIBUS’ primary function is to facilitate communication between controllers or control systems and field sensors. The OSI model is used in this network to ensure that devices from multiple suppliers can interact effectively and easily.</p><p>Profibus was initially pushed by the German Ministry of Education and Research. Following that, Siemens used it in 1989 in collaboration with various automation equipment manufacturers. Over 11.5 million PROFIBUS-based devices are currently used in process automation systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*4kz1EOs-O4YUNnOQBeX4VA.jpeg" /></figure><p><strong>Figure 2: Profibus Protocol Architecture</strong></p><p>Profibus-DP and Profibus-PA are the two most often used Profibus versions.</p><p>Profibus devices include masters and slaves. The primary function of Master devices is to operate the bus once they have access to it, allowing them to broadcast messages without the need for a remote request, also known as active stations.</p><p>Slave devices are typically peripheral devices like sensors, transmitters, and actuators that allow received messages to be sent to the master at the master’s request and are referred to as passive stations.</p><p><strong>Ethernet</strong></p><p>We know that the OSI model of a networking system contains seven layers: physical, data connection, network, transport, session, presentation, and applications, with protocols in each layer. As a result, the first two layers of the OSI model, the physical layer and data link layer, have a large number of Ethernet protocols. The Ethernet protocol is available in numerous versions around us, however, the current Ethernet may be defined by the IEEE 802.3 standard.</p><p>Ethernet Protocol is the most popular and oldest LAN technology, hence it is more commonly used in LAN environments, which are utilized in practically all networks such as workplaces, residences, public places, businesses, and institutions. Ethernet has grown in popularity because of its high data speeds across extended distances using optical media.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*x3O7hPV3pXRHmOxVmjKxXQ.jpeg" /></figure><p><strong>Figure 3: Ethernet Protocol Architecture</strong></p><p>The Ethernet protocol is based on the IEEE 802.3 standard’s star architecture or linear bus. The fundamental reason for the widespread use of Ethernet is that it is simple to learn, manage, and implement, gives flexibility, and allows for lower-cost network deployment.</p><p><strong>Modbus Protocol</strong></p><p>Modbus is an industrial protocol created in 1979 to allow communication between automation devices. Modbus was originally designed as an application-level protocol for data transfer over a serial layer, but it has since evolved to include serial, TCP/IP, and user datagram protocol (UDP) implementations.</p><p>Modbus is a request-response protocol that uses a master-slave relationship to communicate. Communication always occurs in pairs in a master-slave relationship — one device must begin a request and then wait for a response — and the initiating device (the master) is responsible for initiating every interaction. A human-machine interface (HMI) or Supervisory Control and Data Acquisition (SCADA) system is typically the master and the slave is a sensor, programmable logic controller (PLC), or programmable automation controller (PAC). The multiple layers of the protocol determine the content of these requests and responses, as well as the network layers across which these messages are transmitted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*hqs5g84P9XYIDtRDTX0Yrw.png" /></figure><p><strong>Figure 3: MODBUS Protocol Architecture</strong></p><p>Modbus is an open protocol, which means that manufacturers can incorporate it into their products without paying royalties. It has evolved into an industry-standard communications protocol and is now the most widely used method of linking industrial electronic devices. It is widely used by various producers across a wide range of sectors. Modbus is most commonly used to send signals from instrumentation and control devices back to a main controller or data-gathering system, such as a system that measures temperature and humidity and sends the information to a computer. In supervisory control and data acquisition (SCADA) systems, Modbus is frequently used to connect a supervisory computer to a remote terminal unit (RTU). Modbus protocol versions for serial lines (Modbus RTU) exist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c191e34be8ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PID Controllers In Control Systems]]></title>
            <link>https://medium.com/@sarakadam18/pid-controllers-in-control-systems-ea250828c925?source=rss-4ea4ade29d58------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea250828c925</guid>
            <dc:creator><![CDATA[Sara Kadam]]></dc:creator>
            <pubDate>Sat, 19 Nov 2022 21:19:55 GMT</pubDate>
            <atom:updated>2022-11-19T21:19:55.452Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is PID Control?</strong></h3><p>PID control stands for proportional—integral—derivative control. PID control is a feedback medium used in a control system. This type of control is also nominated as three-term control and is enforced by a PID Controller. By calculating and controlling three parameters — the proportional, integral, and derivative of how much a process variable deviates from the asked set point value — we can achieve different control conduct for specific work.</p><p>PID regulators are considered to be the best regulator in the control system family. Nicholas Minorsky published the theoretical analysis paper on the PID regulator. For PID control the actuating signal consists of a commensurable error signal added with secondary and integral of the error signal. thus, the actuating signal for PID control is -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/0*IHC7enS1mzSRP1b8" /></figure><h3><strong>History</strong></h3><p>The history of the PID regulator is, In the time 1911, the first PID regulator was developed by Elmer Sperry. After that, TIC (Taylor Instrumental Company) enforced a former pneumatic regulator with fully tunable in the year 1933. After many times, control engineers removed the error of steady-state that’s set up within proportional regulators by retuning the end to some false value until the error wasn’t zero.</p><p>This retuning included the error which is known as the Proportional-Integral Regulator. After that, in the time 1940, the first pneumatic PID regulator was developed through a secondary action to reduce overshooting problems.</p><p>In 1942, Ziegler &amp; Nichols have introduced tuning rules to discover and set the suitable parameters of PID regulators by the engineers. At last, automatic PID regulators were considerably used in industries in the medial of 1950.</p><h3><strong>PID Controller Block Diagram</strong></h3><p>A closed-loop system like a PID regulator includes a feedback control system. This system evaluates the feedback variable using a fixed point to generate an error signal. Grounded on that, it alters the system output. This procedure will continue till the error reaches Zero else the value of the feedback variable becomes original to a fixed point.</p><p>This regulator provides good results as compared with the ON/ OFF type regulator. In the ON/ OFF type regulator, simply two conditions are accessible to manage the system. Once the process value is lower than the fixed point, also it’ll turn ON. also, it’ll turn OFF once the value is advanced than a fixed value. The affair isn’t stable in this kind of regulator and it’ll swing constantly in the region of the fixed point. still, this regulator is more steady &amp; accurate as compared to the ON/ OFF type regulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*sHai9SY-46i-Nstz" /></figure><h3><strong>1. PID Controller in Temperature Control System —</strong></h3><p>As the name implies, a temperature controller- frequently called a PID controller is an instrument used to control temperature. The temperature controller takes input from a temperature detector and has an output that’s connected to a control element similar to a heater or fan.</p><p>To directly control process temperature without extensive operator involvement, a temperature control system relies upon a controller, which accepts a temperature detector similar to a thermocouple or RTD as input. It compares the actual temperature to the asked control temperature, or setpoint, and provides an output to a control element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/0*QPSZhu7kGWLrtCuQ" /></figure><h3><strong>2. Stand-alone Digital PID Controller —</strong></h3><p>Still, independently) were fully removed and replaced by all-digital electronic componentry, the result would be a stage-alone digital PID regulator If the internal factors of a panel-mounted curvaceous or analog electronic regulator(were similar to the Foxboro models 130 or 62. From the outside, such a digital regulator looks veritably analogous to its technological ancestors, but its capabilities are far lesser.</p><p>An illustration of a popular panel-mounted digital regulator is the Siemens model 353( formerly the Moore Products model 353).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*qeaC4e0SCqSQAM35" /></figure><h3><strong>3. Direct Digital Control (DDC) —</strong></h3><p>A microprocessor operating at sufficient clock speed is suitable to execute further than one PID control algorithm for a process circle, by “time-sharing” its calculating power devoting slices of time to the evaluation of each PID equation in the rapid race. This not only makes multiple-circle digital control possible for a single microprocessor, but also makes it veritably seductive given the microprocessor’s natural capability to manage data archival, transfer, and networking. A single computer is suitable to execute PID control for multiple circles, and also make that circle control data accessible between circles and accessible on networks for human operators and technicians to easily access similar direct digital control( DDC) has been applied with great success to the problem of building automation, where temperature and moisture controls for large structures profit from large- scale data integration. The following snap shows a Siemens APOGEE erecting robotization system with multiple I/ O( input/ affair) cards furnishing interfaces between analog instrument signals and the microprocessor’s digital functions.</p><h3><strong>Limitations</strong></h3><p>While PID regulators are applicable to numerous control problems, and frequently perform satisfactorily without any advancements or only coarse tuning, they can perform inadequately in some operations and don’t in general give optimal control. The fundamental difficulty with PID control is that it’s a feedback control system, with constant parameters, and no direct knowledge of the process, and therefore overall performance is reactive and a compromise. While PID control is the stylish regulator in a bystander without a model of the process, better performance can be attained by overtly modeling the actor of the process without resorting to an observer.</p><p>PID regulators, when used alone, can give poor performance when the PID circle earnings must be reduced so that the control system doesn’t overpass, oscillate or quest about the control setpoint value. They also have difficulties in the presence of non-linearities, may trade off regulation versus response time, don’t reply to changing processes ( say, the process changes after it has warmed up), and have a pause in responding to large disturbances.</p><p>The most significant enhancement is to incorporate feed-forward control with knowledge about the system and use the PID only to control errors. Alternately, PIDs can be modified in further minor ways, similar by changing the parameters( either gain scheduling in different use cases or adaptively modifying them grounded on performance), perfecting dimension( advanced slice rate, perfection, and delicacy, and low-pass filtering if necessary), or slinging multiple PID regulators.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea250828c925" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does a GPS work?]]></title>
            <link>https://medium.com/@sarakadam18/wireless-protocols-in-iot-2e95eeca7608?source=rss-4ea4ade29d58------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e95eeca7608</guid>
            <dc:creator><![CDATA[Sara Kadam]]></dc:creator>
            <pubDate>Sun, 12 Jun 2022 09:29:24 GMT</pubDate>
            <atom:updated>2022-06-13T19:39:20.121Z</atom:updated>
            <content:encoded><![CDATA[<p>We use the US military-built Global Positioning System, often known as ‘NavStar’, which has been fully operational since 1995. For enhanced coverage and accuracy, many current GPS receivers combine GPS and the Russian GLONASS satellites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*ogBtjxrWnVuPn952" /></figure><p><strong>Satellite Positioning System -</strong><br>In orbits inclined 55 degrees to the equator, the GPS system currently includes 31 functioning satellites. The satellites orbit the planet at a distance of around 20,000 kilometers and make two orbits per day. The orbits are planned so that 6 satellites are always visible from most points on the planet.</p><p>GPS makes use of a lot of complicated technology, yet the premise is straightforward.</p><p>Each GPS satellite sends a signal to the GPS receiver. The satellites broadcast the signals at the exact time they were received. There’s a problem with this work. The GPS receiver needs to know the time extremely precisely in order to determine the time it took for the GPS signals to arrive. The GPS satellites have atomic clocks that keep extremely accurate times, but an atomic clock cannot be installed in a GPS receiver. However, by using the signal from a fourth satellite, the GPS receiver can solve an equation that allows it to determine the exact time without the use of an atomic clock.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*XaI9qwyBh1EZ8a0d.jpg" /></figure><p>You can still acquire your position if your GPS receiver only receives signals from three satellites, but it will be less precise. As previously stated, the GPS receiver requires four satellites to calculate your 3-dimensional position. When just three satellites are accessible, the GPS receiver can calculate an approximate position by assuming you’re at sea level. The position will be relatively accurate if you are truly at mean sea level. If you’re in the mountains, though, the 2-D fix may be hundreds of meters wrong.</p><p>Modern GPS receivers normally track all available satellites at the same time, but only a subset of them is used to calculate your position.</p><h3>Almanac and Ephemeris</h3><p>The GPS receiver requires two types of data to identify the location of the GPS satellites: the almanac and the ephemeris. The GPS satellites continuously broadcast this information, which your GPS receiver receives and stores.</p><p>The almanac offers information on the satellites’ condition as well as approximate orbital data. The almanac is used by the GPS receiver to determine which satellites are currently visible. The almanac isn’t accurate enough to provide a fix to the GPS receiver. If the GPS receiver is brand new or hasn’t been used in a while, it could take up to 15 minutes to obtain a current almanac.</p><p>An almanac is required to collect satellites in earlier GPS receivers, however many modern devices can acquire satellites without waiting for the almanac.</p><p>Your GPS receiver requires additional data for each satellite, known as the ephemeris, in order to get a fix. This data provides extremely detailed information on each satellite’s orbit. The ephemeris data can be used by your GPS receiver to compute the location of a satellite within a meter or two. Every two hours, the ephemeris is updated and is usually good for four hours. If your GPS receiver has been turned off for an extended period of time, it may take several minutes for it to receive ephemeris data from each satellite before it can get a fix.</p><p>Your GPS will include a screen that shows which satellites are in use, similar to the one given below. The bar graphs depict the strength of the satellites obtained by the GPS. The GPS is still downloading the ephemeris if the bar is hollow. The circular plot depicts the satellites’ positions in the sky, with the center of the circle being directly overhead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/160/1*T7R2gLXPSc6QZV4D1naDFQ.gif" /></figure><h3><strong>How do GPS devices communicate with satellites?</strong></h3><p>GPS receivers just receive data; they never send data back to the satellites.</p><p>The positions of all GPS satellites are continuously transmitted by GPS satellites. Each satellite also sends out signals that can be pinpointed as having been sent at specific periods. A GPS device can calculate the current time, as well as where the satellites are located and how far away each satellite is, by receiving signals from at least four satellites.</p><p>That is all GPS allows a gadget to accomplish: identifying the current time and distance between a group of satellites, believe it or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*-GcozEogvnwF3_ky.jpg" /></figure><p>A GPS device can calculate its own location on the Earth, essentially its longitude and latitude, using this data.</p><p>Everything else your gadget performs is completely unrelated to GPS. By analyzing how your location changes over time and matching your location to data (such as maps) that your device gets over the Internet, your device can do things like display your speed and direction of travel, build maps, provide traffic information, and plan travel routes. None of this data is derived from GPS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e95eeca7608" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Need for Abstract Classes and Interfaces in JAVA.]]></title>
            <link>https://medium.com/@sarakadam18/need-for-abstract-classes-and-interfaces-in-java-e195cfae5ae8?source=rss-4ea4ade29d58------2</link>
            <guid isPermaLink="false">https://medium.com/p/e195cfae5ae8</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Sara Kadam]]></dc:creator>
            <pubDate>Thu, 30 Dec 2021 16:23:30 GMT</pubDate>
            <atom:updated>2022-01-08T08:28:17.067Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Table Contents -</em></strong></p><p><strong>Introduction</strong></p><ol><li>What are Abstract Classes?</li><li>What are Interfaces?</li></ol><p><strong>Implementation</strong></p><ol><li>Abstract Classes and Interfaces Examples.</li><li>Creating Abstract Classes and Interfaces.</li></ol><p><strong>Need for Abstract Classes and Interfaces in JAVA.</strong></p><p><strong>Quick Summary</strong></p><p><strong>FAQs</strong></p><p><strong>Key Takeaways</strong></p><p><strong>INTRODUCTION</strong></p><ol><li><strong>What are Abstract Classes?</strong></li></ol><p>In Java, abstract classes are like interfaces, but you can also have standard method implementations. Abstract classes can have abstract methods without a body and implemented methods.</p><p>The abstraction allows you to focus on the functionality of the object rather than how it is executed. Abstractions can be achieved in a variety of ways. There are two approaches to achieving abstraction in Java.</p><p>An abstract class is a class declared as abstract, there are both abstract and non-abstract methods available. You need to extend and implement that method. It cannot be instantiated.</p><p>You must use the abstract keyword when declaring an abstract class. There are both abstract and non-abstract methods available. It cannot be instantiated. You can also include constructors and static methods. You can have a final method that prevents subclasses from modifying the method body.</p><p><strong><em>Things to keep in mind when declaring an abstract class,</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*VFDss9TRkd7XNDVk0EBriw.jpeg" /></figure><ol><li><strong>What are Interfaces?</strong></li></ol><p>Like classes, interfaces can contain methods and variables, but the methods declared in an interface are abstract by default (method signatures only, everyone). The interface defines what the class does, not how it does. For example, a player can be an interface, and any class that implements a player must be able to (or need to) implement it.</p><p>As a result, it exposes some methods that the class needs to implement. If the class implements the interface but does not provide the method body for all the functionality of the interface, then you need to abstract the class. The comparator interface is an example of a Java library. This interface can be used to sort a collection if the class implements it.</p><p><strong><em>Syntax -</em></strong></p><p>interface &lt;interface_name&gt; {</p><p>// declare constant fields</p><p>// declare methods that abstract</p><p>// by default.</p><p>}</p><p>Use the interface keyword to define an interface. It is used to get rid of everything.</p><p>All methods declared in the interface must be implemented by the class that implements them. Create an interface using the implemented terminology.</p><h4>The relationship between classes and interfaces</h4><p>As shown in the figure given below, a class extends another class, an interface extends another interface, but a <strong>class implements an interface</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*X6St0jbqvH2mWHDgnJkffw.jpeg" /></figure><p><strong>IMPLEMENTATION</strong></p><p><strong>Abstract Classes and Interfaces</strong></p><ol><li><strong><em>Abstract Class Example</em></strong><em> -</em></li></ol><p>abstract class Shape {</p><p>int b = 20;</p><p>abstract public void calculateArea();</p><p>}</p><p>public class Rectangle extends Shape {</p><p>public static void main(String args[]) {</p><p>Rectangle obj = new Rectangle();</p><p>obj.b = 200;</p><p>obj.calculateArea();</p><p>}</p><p>public void calculateArea() {</p><p>System.out.println(“Area is “ + (b * b));</p><p>}</p><p>}</p><ol><li><strong><em>Interface Example -</em></strong></li></ol><p>interface Pet {</p><p>public void test();</p><p>}</p><p>class Dog implements Pet {</p><p>public void test() {</p><p>System.out.println(“Interface Method Implemented”);</p><p>}</p><p>public static void main(String args[]) {</p><p>Pet p = new Dog();</p><p>p.test();</p><p>}</p><p>}</p><p><strong>Creating Abstract Classes and Interfaces</strong></p><ol><li><strong>ABSTRACT</strong></li></ol><p>To create an abstract class, simply use the abstract keyword before the class keyword in the class declaration. You can see that the Employee class is the same as a regular Java class, except for the abstract methods. The class has been abstracted, but it still has 3 fields, 7 methods, and a constructor.</p><p>Abstract Class Syntax:: To declare an abstract class, first use the access modifier, then the keyword “abstract” and the class name is shown below.</p><p>abstract class</p><p>{</p><p>// data_members;</p><p>//procedure;</p><p>// method;</p><p>}</p><p><strong>2. INTERFACE -</strong></p><p>Interfaces are declared with the keyword interface. It provides a complete abstraction. This means that all methods are declared in an interface with an empty body and all fields are public, static, and final by default. The class that implements the interface must implement all the methods declared on the interface. Starting with Java 8, one interface can contain standard and static methods. Starting with Java 9, interfaces can include private methods. syntax:</p><p>interface {</p><p>// Declare a constant field</p><p>// Declare a method that abstracts</p><p>by default //.</p><p>}</p><p><strong>Need for Abstract Classes and Interfaces in JAVA.</strong></p><p><strong><em>Need for Abstract Class -</em></strong></p><ol><li>Java Abstract class can implement interfaces without even providing the implementation of interface methods.</li><li>Java Abstract class is used to provide common method implementation to all the subclasses or to provide a default implementation.</li><li>We can run an abstract class in java like any other class if it has a main() method.</li></ol><p><strong><em>Need for Interfaces -</em></strong></p><p>When To Use Interfaces in JAVA?</p><ol><li>If we’re designing small, concise bits of functionality, we can use interfaces.</li><li>If we are creating functionality that will be useful across a wide range of objects, then we must use an interface.</li><li>Interfaces are a first-rate choice in case you suppose that the API will not change for a while for some time.</li><li>Interfaces also are an excellent choice. In case you want to have something similar to more than one inheritance, then you can implement numerous interfaces.</li></ol><p><strong>QUICK SUMMARY</strong></p><p><strong>Abstract class -</strong></p><ol><li>Abstract classes cannot be instantiated.</li><li>Other classes extend the abstract class.</li><li>You can have both abstract and concrete methods.</li></ol><p>Similar to an interface, but (1) methods can be implemented, (2) fields can have different access modifiers, and (3) subclasses can only extend abstract classes.</p><p><strong>Abstract method -</strong></p><ol><li>Abstract method body must be empty (no curly braces).</li><li>A subclass must implement the abstract method of the abstract class</li></ol><p>Eclipse example: abstract_classes_methods</p><p><strong>FREQUENTLY ASKED QUESTIONS (FAQs) -</strong></p><ol><li>Can abstract classes use system exercises?</li></ol><p><strong>Answer </strong>— Yes. This is because an abstract class can contain two abstract and non-abstract orders together.</p><p>2. What is in the middle of the opposite view of the two points of abstract planning and objective methods?</p><p><strong>Answer — </strong>Abstract means that the action has no design physics, although it has the actual order.</p><p>3. What is the difference between a two-point abstract class and a connection?</p><p><strong>Answer — </strong>The biggest difference is that abstract classes can contain abstract and fact methods, while interfaces only support abstract patterns. At this point, you can almost express clarity.</p><p>4. Where do you use the abstract class?</p><p><strong>Answer — </strong>The abstract class is used to define a base class that can later be replaced by a derived class.</p><p><strong>KEY TAKEAWAYS -</strong></p><p>Abstract classes and interfaces both permit users to use abstraction when developing functions or working with regular methods. Even though there are many differences between abstract classes and interfaces.</p><ol><li>Abstract classes can support non-abstract methods as well as abstract methods, but interfaces only can support abstract methods.</li><li>Instances cannot be supported by an abstract class of multiple inheritances but interfaces can be used extensively to work with multiple inheritances.</li><li>Abstract classes can function with static, non-static, final, as well as non-final variables, while Interfaces can only work with final and static variables.</li><li>Abstract classes are capable of providing interface implementations, while Interfaces cannot provide implementations of abstract classes.</li><li>Other classes can be extended by the abstract class and also it can implement multiple interfaces but on the other hand interfaces, themselves can only extend another interface.</li><li>‘extends’ keyword is used to extend the abstract class but to extend interfaces ca ‘implements’ keyword is used.</li><li>Abstract classes can possess protected, private, and other class members in Java, while Members of interfaces in Java are always public.</li></ol><p><strong><em>Thank You for reading Our Blog…</em></strong></p><p><strong><em>Blog by -</em></strong></p><ol><li><strong>Sara Kadam</strong></li><li><strong>Aishwarya Jadhav</strong></li><li><strong>Srushti Hamand</strong></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e195cfae5ae8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>