<?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"><channel><title><![CDATA[Huzaifa Irfan's Blog]]></title><description><![CDATA[Huzaifa Irfan's Blog]]></description><link>https://blog.huzaifairfan.com</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 11:52:19 GMT</lastBuildDate><atom:link href="https://blog.huzaifairfan.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Arduino vs Raspberry PI]]></title><description><![CDATA[1. Overview
1.1 Arduino
Arduino is an open-source hardware and software company, project, and user community that designs and manufactures very low-powered single-board microcontrollers and microcontroller kits for building digital devices. It can ea...]]></description><link>https://blog.huzaifairfan.com/arduino-vs-raspberry-pi</link><guid isPermaLink="true">https://blog.huzaifairfan.com/arduino-vs-raspberry-pi</guid><dc:creator><![CDATA[Huzaifa Irfan]]></dc:creator><pubDate>Mon, 21 Mar 2022 15:04:04 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1647874815878/cmV-FRGQ2.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-1-overview">1. Overview</h2>
<h3 id="heading-11-arduino">1.1 Arduino</h3>
<p>Arduino is an open-source hardware and software company, project, and user community that designs and manufactures very low-powered single-board microcontrollers and microcontroller kits for building digital devices. It can easily be programmed with an Arduino IDE from a computer/laptop using C++ Programming Language.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647876582343/JKnxLFYxj.png" alt="Arduino" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.1 - Arduino Uno</b></td></tr>
</tbody>
</table>
</div><h3 id="heading-12-raspberry-pi">1.2 Raspberry PI</h3>
<p>Raspberry Pi is a series of small low powered single-board computers (SBCs) developed in the United Kingdom by the Raspberry Pi Foundation in association with Broadcom. It is a full-fledged computer with USB/HDMI/audio/browser, Operating System, and GPIO (General Purpose Input Output) Pins to connect sensors and other devices. As It has an OS, it can be programmed with any programming language.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647876208909/c-ySOF8y2.png" alt="image.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.2 - Raspberry PI 4B</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-2-comparison">2. Comparison</h2>
<h3 id="heading-21-type">2.1 Type</h3>
<p>Arduino is a series of microcontrollers/development boards that can be programmed from another computer. Read data from sensors/switch and control motors/led etc.</p>
<p>Raspberry PI is a series of minicomputers for edge computing with a Linux operating system, Browser, Display, Keyboard, Mouse, with additional GPIO functionality where we can attach sensors to read data and actuators to control them.</p>
<h3 id="heading-22-portability">2.2 Portability</h3>
<p>Both controllers' main focus is on portability and edge computing. Arduino with Low power and Shields is highly portable but with low processing power and memory.</p>
<h3 id="heading-23-power">2.3 Power</h3>
<p>Arduino requires very low power 5V from USB Port or 6-12V from Barrel Jack with the current in mA. It can run with a battery pack for days.</p>
<p>PI requires 5V 0.5-3A Current Range to power processor, USB, Display, and Ethernet Port</p>
<h3 id="heading-24-processing">2.4 Processing</h3>
<p>Arduinos has a processor of low-frequency 16MHz ATMega328P (Arduino Nano) for low-end processing</p>
<p>PI have multicore processors to run the browser, app, software like normal computers 1.5GHz quad-core ARMv8-A     (PI 4)</p>
<h3 id="heading-25-memory">2.5 Memory</h3>
<p>Arduino has SRAM range from 2KB (Arduino Nano) - to 64MB (Arduino Portenta H7)
Arduino has internal Flash Memory of 32KB - 128MB.</p>
<p>Raspberry PI has DRAM range from 512MB (PI Zero) - to 8GB (PI 4B)
PI requires separate storage SD Card/USB for storing OS, Data, and code.</p>
<h3 id="heading-26-applications">2.6 Applications</h3>
<p>Arduino is used for simpler Applications Including</p>
<ul>
<li>I/O pins to Sense, Control, and Display on LCD.</li>
<li>Real-Time Control</li>
<li>Simple Web Server</li>
<li>Simple Low-Resolution Camera/Image Processing </li>
</ul>
<p>PI is used for More Software-based Applications Including</p>
<ul>
<li>GPIO pins to connect sensors, controllers, LCD displays.</li>
<li>Web Server Control</li>
<li>Camera/Image Processing</li>
<li>GUI Application/Control</li>
<li>Edge Networking</li>
<li>AI and ML</li>
</ul>
<h3 id="heading-27-durability">2.7 Durability</h3>
<p>The diode on Arduino Uno's Barrel Jack protects it from reverse voltage and the Voltage regulator regulates voltage to 5V. The internal EEPROM of Arduino has a lifetime of 100,000 write cycles. So Refrain from writing to EEPROM too much. It can function 24/7 for a long time and don't get heated up easily.</p>
<p>Running PI with Low Current/Voltage may damage the SD Card (can be replaced). PI gets hot easily, proper heat management can cool the processor.</p>
<h3 id="heading-28-price-pkrs">2.8 Price (pkrs)</h3>
<p>Arduino has a price range from 500 (Arduino Nano) - to 25K (Arduino Portenta H7)</p>
<p>Raspberry PI has a price range from 5K (PI Zero) - to 30K (PI 4B 8GB Model)</p>
<h2 id="heading-3-using-arduino-over-raspberry-pi">3. Using Arduino over Raspberry PI</h2>
<p>Arduino is preferred over Pi when</p>
<h4 id="heading-your-application-is-very-simple">Your application is very simple</h4>
<p>The application includes using any sensor to control the actuator/display information on LCD Display.</p>
<h4 id="heading-real-time-processing">Real time processing</h4>
<p>Unlike PI handling hardware/Ports/OS, Arduino runs a single function compiled in a loop. It can be used when you have real-time constraints.</p>
<h4 id="heading-analogpwm-hardware-pins">Analog/PWM Hardware pins</h4>
<p>Analog inputs: Arduino can be used to read analog values from sensors 0-5V (0-1023)</p>
<p>PWM: Some Pins on Arduino can use PWM (Pulse Width Modulation) to control motors/devices and faster switching to create analog output signals.</p>
<h2 id="heading-4-using-raspberry-pi-over-arduino">4. Using Raspberry PI over Arduino</h2>
<p>PI is preferred over Arduino when you have</p>
<h4 id="heading-a-complex-application-software-based">A Complex application – Software Based</h4>
<p>When you need high-end processing and memory or need a web server or display for GUI Application</p>
<h4 id="heading-want-to-use-other-languages">Want to use other languages</h4>
<p>PI has an OS which means you can install and program on any Language eg. Python, C++, Javascript, etc.</p>
<h4 id="heading-multi-threading-task">Multi-threading Task</h4>
<p>Arduino runs on a single function running in a loop on a single processor. Due to Multi-Cores present on the PI with an OS, It can easily be programmed for multi threading.</p>
]]></content:encoded></item><item><title><![CDATA[Arduino Mega 2560]]></title><description><![CDATA[1. Overview
Arduino Mega 2560 is a microcontroller board based on the ATmega2560.
It has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB conn...]]></description><link>https://blog.huzaifairfan.com/arduino-mega-2560</link><guid isPermaLink="true">https://blog.huzaifairfan.com/arduino-mega-2560</guid><dc:creator><![CDATA[Huzaifa Irfan]]></dc:creator><pubDate>Mon, 21 Mar 2022 13:32:51 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1647868618085/QJEqxJltb.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-1-overview">1. Overview</h2>
<p>Arduino Mega 2560 is a microcontroller board based on the ATmega2560.</p>
<p>It has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647869788544/994KXdwhK.png" alt="spec.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.1 - Arduino Mega Specs</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-2-arduino-mega-pin-diagram">2. Arduino Mega Pin Diagram</h2>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647870170899/TNr6UQDjZ.webp" alt="pins.webp" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.2 - Arduino Mega Pin Diagram</b></td></tr>
</tbody>
</table>
</div><p><a target="_blank" href="https://www.arduino.cc/en/uploads/Main/arduino-mega2560_R3-sch.pdf">Arduino Mega 2560  R3 Schematic</a></p>
<h2 id="heading-3-rammemory">3. Ram/Memory</h2>
<p>The ATmega2560 has 256 KB of flash memory for storing code (of which 8 KB is used for the bootloader), 8 KB of SRAM and 4 KB of EEPROM (which can be read and written with the EEPROM library).</p>
<h2 id="heading-4-serial-and-parallel-communication">4. Serial and Parallel Communication</h2>
<h3 id="heading-41-serial-communication">4.1 Serial Communication</h3>
<p>Serial Communication is transferring of data bit by bit, sequentially. This is the most common form of communication used in the digital word. Contrary to the parallel communication, serial communication needs only one line for the data transfer. Thereby, the cost for the communication line as well as the space required is reduced. USB (Universal Serial Bus) is present in every computer/mobile/devices for serial communication </p>
<h4 id="heading-411-i2c-inter-integrated-circuit">4.1.1 I2C (Inter Integrated Circuit)</h4>
<p>The I2C communication can be supported by two pins namely 20 &amp; 21 where 20-pin signifies Serial Data Line (SDA) which is used for holding the data &amp; 21-pin signifies Serial Clock Line (SCL ) mostly utilized for offering data synchronization among the devices</p>
<h4 id="heading-412-spi-serial-peripheral-interface">4.1.2 SPI (Serial Peripheral Interface)</h4>
<p>The SPI is used to transmit the data among the controller &amp; other components. Four pins like MISO (50), MOSI (51), SCK (52), and SS (53) are utilized for the communication of SPI.</p>
<h4 id="heading-413-uart-universal-asynchronous-receivertransmitter">4.1.3 UART (Universal Asynchronous Receiver/Transmitter)</h4>
<p>Arduino Mega has 4 UART Serial Port (TX, RX), (1, 0), (14, 15), (16, 17), (18, 19)</p>
<p>TX is used to Transmit and RX to Recieve Data from other device.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647874288045/k5_Eku12u.png" alt="image.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.3 - UART Specs</b></td></tr>
</tbody>
</table>
</div><h3 id="heading-42-parallel-communication">4.2 Parallel Communication</h3>
<p>Parallel communication is transferring of the bits in a parallel at a time. This is used where is speed is main concern than space. The transfer of data is at high speed due to no bus buffer is present. Digital and Analog Pins are used in Parallel to communicate with other devices. Where Each Pin's High/Low state defines the bit of Data. Seperate Pin/Wire is used to define a state/stream of data.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647873623578/ottyB75AF.png" alt="image.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.4 - Parallel Communication</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-5-digital-analogue-and-pwm-io-pins">5. Digital Analogue and PWM I/O Pins</h2>
<p>Arduino Mega 2560 has</p>
<ul>
<li>54 digital input/output Pins (0-53)</li>
</ul>
<p>These Digital Pins can be used to either ouput 5V (High) or 0V (Low) or can input High/Low state.</p>
<ul>
<li>Where 15 are PWM Pins (2-13, 44, 45, 46)</li>
</ul>
<p>These PWM (Pulse Width Modulation) Pins can be used to Analog Output which is generated through digital pulses. The average due to frequency/width of pulse define the analog output/voltage less than 5V.  And can be used where faster High/Low switching is required.</p>
<ul>
<li>16 analog inputs Pins (A0 - A15)</li>
</ul>
<p>These Analog input Pins can be used to detect input signals from 0V-5V (0-1023)</p>
<h2 id="heading-6-currentvoltage-limitations">6. Current/Voltage Limitations</h2>
<ul>
<li>Operating Voltage: 5V</li>
<li>Input Voltage (Barrel Jack): 6-20V</li>
<li>DC Current I/O Pins: 20mA</li>
<li>DC Current 3.3V Pins: 50mA </li>
</ul>
<p>The Arduino Mega2560 has a resettable polyfuse that protects your computer's USB
ports from overcurrent. If more than 500 mA is applied to the USB port, the fuse will automatically break the connection until the short or overload is removed.</p>
<h2 id="heading-7-icsp-header">7. ICSP Header</h2>
<p>The ICSP (In-Circuit Serial Programming) header can be used to program the Arduino board’s firmware with the new functionalities. Or if your internal arduino programmer is not working you can use seperate programmer or another arduino board to program your microcontroller.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647871075842/P6jzqyHOB.png" alt="icsp.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.5 - ICSP Header</b></td></tr>
</tbody>
</table>
</div>]]></content:encoded></item><item><title><![CDATA[Arduino Simulation in Proteus]]></title><description><![CDATA[1. Search if Arduino is preinstalled in Proteus
Open Proteus Professional. Press P on the keyboard to open device manager and search for Arduino if present.








Fig.1 - Device Manager


2. Download and Install Arduino Library
2.1 Download and ext...]]></description><link>https://blog.huzaifairfan.com/arduino-in-proteus</link><guid isPermaLink="true">https://blog.huzaifairfan.com/arduino-in-proteus</guid><dc:creator><![CDATA[Huzaifa Irfan]]></dc:creator><pubDate>Mon, 21 Mar 2022 12:48:46 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1647866764723/f-d3QstZb.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-1-search-if-arduino-is-preinstalled-in-proteus">1. Search if Arduino is preinstalled in Proteus</h2>
<p>Open Proteus Professional. Press P on the keyboard to open device manager and search for Arduino if present.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647866870813/pvvlBcDco.jpg" alt="0.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.1 - Device Manager</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-2-download-and-install-arduino-library">2. Download and Install Arduino Library</h2>
<h4 id="heading-21-download-and-extract-the-archive-from-the-url">2.1 Download and extract the archive from the url</h4>
<p>https://drive.google.com/file/d/1yV5pCpzhq_Td8zuksWEae6Dqg-0E7l5v/view</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867177253/ACd4mzMnb.jpg" alt="2.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.2 - Arduino Library Files</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-22-copy-the-files-to-proteus-library-folder">2.2 Copy the files to Proteus LIBRARY folder</h4>
<p>C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\DATA\LIBRARY</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867182759/3zPi8hEw6.jpg" alt="3.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.3 - Proteus Library Folder</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-23-restart-proteus-and-check-for-arduino-double-click-to-use">2.3 Restart Proteus and check for Arduino  Double Click to use.</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867187646/Sw1BpAz1a.jpg" alt="4.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.4 - Arduino Components Available in Devices Manager</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-24-place-arduino-in-schematic-view">2.4 Place Arduino in Schematic View</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867392325/4hkXUm6hS.jpg" alt="5.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.5 - Schematic View</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-3-program-and-simulate-arduino">3. Program and Simulate Arduino</h2>
<h4 id="heading-31-open-arduino-ide">3.1 Open Arduino IDE</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867448086/1hcFtWNEN.jpg" alt="9.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.6 - Arduino IDE</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-32-select-blink-example-and-save-it-to-your-desired-location">3.2 Select Blink Example and Save it to your desired Location</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867456635/TcYAQm0fq.jpg" alt="6-2.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.7 - Blink Example</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-33-export-to-compiled-binary-for-use-in-proteus">3.3 Export to compiled binary for use in proteus</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867460572/pB1rk0uhW.jpg" alt="7-2.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.8 - Compile to Binary</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-34-hex-extension-file-will-be-generated-in-the-folder">3.4 .hex Extension file will be generated in the folder</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867464815/qIoHPwU1O.jpg" alt="8-2.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.9 - Generated .hex Files</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-35-edit-arduino-properties">3.5 Edit Arduino properties</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867468276/tOmpDBdgi.jpg" alt="9.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.10 - Arduino Component Properties</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-36-select-program-file-from-the-folder">3.6 Select Program file from the folder.</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867476065/ji6QGSV9z.jpg" alt="10.jpg" /></td><td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867488125/2PkAneK46.jpg" alt="11.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.11 - Component Properties</b></td><td><b>Fig.12 - Select .hex file</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-37-pick-led-from-device-manager">3.7 Pick LED from device manager</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867491592/10rOP_SpL.jpg" alt="12.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.13 - LED</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-38-select-ground-terminal-from-terminals-mode">3.8 Select Ground Terminal from Terminals Mode</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867506141/ODM1xHlMW.jpg" alt="13.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.14 - Ground Terminal</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-39-connect-the-led-with-pin-13-and-ground-terminal">3.9 Connect the LED with PIN 13 and Ground Terminal</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867509244/M21EuptLB.jpg" alt="14.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.15 - Schematic View</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-310-start-the-simulation-and-led-will-start-blinking">3.10 Start the Simulation and LED will start Blinking</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647867514057/vx_XWrJrt.jpg" alt="15.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.16 - Simulation</b></td></tr>
</tbody>
</table>
</div>]]></content:encoded></item><item><title><![CDATA[Install and Use Proteus Professional]]></title><description><![CDATA[1. Download Proteus Professional Demo from Website
1.1 Open Url https://www.labcenter.com/downloads/








Fig.1 - Proteus Download Page


1.2 Click download
Enter your email and the download link will be sent to your email address and will expire ...]]></description><link>https://blog.huzaifairfan.com/install-and-use-proteus</link><guid isPermaLink="true">https://blog.huzaifairfan.com/install-and-use-proteus</guid><dc:creator><![CDATA[Huzaifa Irfan]]></dc:creator><pubDate>Mon, 21 Mar 2022 12:26:41 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1647863594174/Y-dDe4ctC.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-1-download-proteus-professional-demo-from-website">1. Download Proteus Professional Demo from Website</h2>
<h4 id="heading-11-open-url-httpswwwlabcentercomdownloads">1.1 Open Url https://www.labcenter.com/downloads/</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647863840589/96TzKRCaI.jpg" alt="1.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.1 - Proteus Download Page</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-12-click-download">1.2 Click download</h4>
<p>Enter your email and the download link will be sent to your email address and will expire in 2 hours.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647863869298/jdq4VJj8j.jpg" alt="4.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.2 - Proteus Download Link</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-2-download-and-run-the-setup">2. Download and run the setup</h2>
<h4 id="heading-21-visual-c-installer-will-start-before-proteus-setup">2.1 Visual C++ Installer will start before Proteus Setup</h4>
<p>Install All 3 Packages.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>VC++ 2008</td><td>VC++ 2010</td><td>VC++ 2013</td></tr>
</thead>
<tbody>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647863993229/JmfGvlifu.jpg" alt /></td><td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647863997885/SvXaexPwZq.jpg" alt /></td><td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647864001508/Wx-EBESxc.jpg" alt /></td></tr>
</tbody>
</table>
</div><h4 id="heading-22-install-proteus-with-default-settings">2.2 Install Proteus with Default Settings</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647864011477/_9uc_inrD.jpg" alt="8.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.3 - Proteus Setup</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-3-open-proteus-professional">3. Open Proteus Professional</h2>
<h4 id="heading-31-right-click-and-run-as-administrator-proteus-icon-present-on-desktop">3.1 Right Click and Run as Administrator Proteus Icon Present on Desktop</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647864928172/4UYuq3mcv.jpg" alt="admin.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.4 - Run as Administrator</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-32-proteus-home-page">3.2 Proteus Home Page</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647864944414/p4SBjCT1t.jpg" alt="11.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.5 - Proteus Home Page</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-33-create-new-project-and-select-default-settings">3.3 Create New Project and Select Default Settings</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865023425/cFrq9HiDP.jpg" alt="17.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.6 - Default Schematic Window</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-34-menu-bar">3.4 Menu Bar</h4>
<p>You create/save/load/print etc the project from the menu bar</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865120524/4nZfCII7a.jpg" alt="18.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.7 - Menu Bar</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-35-simulation-controls">3.5 Simulation Controls</h4>
<p>You can start stop and pause the simulation from here</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865207822/9exEW3_ln.jpg" alt="20.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.8 - Simulation Controls</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-36-modes">3.6 Modes</h4>
<p>You can change to select/component/instrument mode etc from here</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865242085/wx8hn-SlI.jpg" alt="19.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.9 - Modes</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-37-device-manager">3.7 Device Manager</h4>
<p>Click P in Component Mode or Press P on Keyboard to open Device Manager.
Here you can see and select the device/components installed for use.
Search and double click LED and Cell to use</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865250448/npf5gPWxK.jpg" alt="21.jpg" /></td><td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865259039/zCBha13oq.jpg" alt="22.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.10 - LED</b></td><td><b>Fig.11 - Cell</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-38-selected-component-will-be-present-in-devices-list-on-the-left">3.8 Selected Component will be present in Devices list on the left</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865265101/dt6mgDCFs.jpg" alt="23.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.12 - Devices List</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-39-drag-and-drop-components-schematic-view-and-connect-the-terminals">3.9 Drag and Drop components schematic view and connect the terminals</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865282680/OveUIOe8i.jpg" alt="24.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.13 - Simulation Schematic</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-310-double-click-the-cell-and-change-the-voltage-to-3v">3.10 Double click the cell and change the voltage to 3V</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865287777/4ge3Iwnb5.jpg" alt="25.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.14 - Components Properties</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-311-clcik-start-simulation-button-and-led-will-start-glowing">3.11 Clcik start simulation Button and LED will start Glowing</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647865295228/KrBAZ5_8s.jpg" alt="26.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.15 - Simulation</b></td></tr>
</tbody>
</table>
</div>]]></content:encoded></item><item><title><![CDATA[Install and Use Arduino IDE]]></title><description><![CDATA[1. Download Arduino IDE Setup from Website
1.1 Open url: https://www.arduino.cc/en/software
Select the setup for your operating system








Fig.1 - Arduino Download Page


1.2 Support or Just Download the Setup








Fig.2 - Support Arduino


2....]]></description><link>https://blog.huzaifairfan.com/install-and-use-arduino-ide</link><guid isPermaLink="true">https://blog.huzaifairfan.com/install-and-use-arduino-ide</guid><dc:creator><![CDATA[Huzaifa Irfan]]></dc:creator><pubDate>Mon, 21 Mar 2022 10:24:43 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1647857773836/QehXOvRm1.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-1-download-arduino-ide-setup-from-website">1. Download Arduino IDE Setup from Website</h2>
<h4 id="heading-11-open-url-httpswwwarduinoccensoftware">1.1 Open url: https://www.arduino.cc/en/software</h4>
<p>Select the setup for your operating system</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647857900484/N4YmLKlV5.jpg" alt="Arduino Website" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.1 - Arduino Download Page</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-12-support-or-just-download-the-setup">1.2 Support or Just Download the Setup</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647859256240/I0-aL51UM.jpg" alt="Contribute" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.2 - Support Arduino</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-2-open-ide-setup">2. Open IDE Setup</h2>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647859233010/SxoqNgruU.jpg" alt="IDE Setup" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.3 - Arduino Setup</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-21-use-default-settings-and-click-install">2.1 Use Default Settings and click Install</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647859209525/0kYuMgl4h.jpg" alt="Installing" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.4 - Installation Progress</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-22-click-install-to-all-drivers-prompts">2.2 Click Install to All Drivers Prompts</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861365090/6hd6YUq_E.jpg" alt="6.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.5 - Drivers Prompts</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-3-open-arduino-ide">3. Open Arduino IDE</h2>
<h4 id="heading-31-arduino-ide-is-ready-to-use">3.1 Arduino IDE is ready to use</h4>
<p> Double Click Shotcut icon present on the desktop</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861087384/bvZuyyy0b.jpg" alt="7.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.6 - IDE Icon</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-32-allow-ide-to-access-the-internet">3.2 Allow IDE to access the Internet</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861097757/EiOPhkhBI.jpg" alt="8.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.7 - Firewall Prompt</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-33-ide-splash-screen">3.3 IDE Splash Screen</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861104898/aBok3uLU3.jpg" alt="9.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.8 - IDE Splash Screen</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-34-ide-default-view">3.4 IDE Default View</h4>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861111384/1lwPXC8up.jpg" alt="10.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.9 - IDE Default View</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-35-menu-bar">3.5 Menu Bar</h4>
<p>New Library and Boards can be installed and Selected from the menu bar. A sketch can be compiled/uploaded/saved and created from this menu</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861140056/7rlWFujFF.jpg" alt="12.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.10 - Menu Bar</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-36-console">3.6 Console</h4>
<p>IDE Compilation/Uploading/Error Logs can be viewed from this console</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861217777/CnrvB-QBc.jpg" alt="13.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.11 - Console</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-37-library-manager">3.7 Library Manager</h4>
<p>Other Libraries can be Installed from Library Manager</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861221897/8rvzyiyXh.jpg" alt="15.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.12 - Library Manager</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-38-boards-manager">3.8 Boards Manager</h4>
<p>Other boards can be installed/selected from the board manager</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861229912/GT-OSP7Ln.jpg" alt="17.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.13 - Board Manager</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-39-serial-monitor">3.9 Serial Monitor</h4>
<p>Serial Monitor is used to read/write data to/from the serial device/arduino</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861233891/LDOMz6zW-.jpg" alt="serial monitor.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.14 - Serial Monitor</b></td></tr>
</tbody>
</table>
</div><h2 id="heading-4-example-codes">4. Example Codes</h2>
<p>Example codes can be accessed from example menu.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861119334/9hvC7OhY2.jpg" alt="11.jpg" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.15 - Example Codes</b></td></tr>
</tbody>
</table>
</div><h4 id="heading-41-blink-example">4.1 Blink Example</h4>
<p>Arduino Uses C++ Language to Program the Board which is then compiled to machine code then uploaded to the board to run.</p>
<p>The code consist of two default functions</p>
<ul>
<li>setup</li>
</ul>
<p>Setup function runs once on start to setup I/O pins and to define/setup the default state of the device.</p>
<ul>
<li>loop </li>
</ul>
<p>Loop function runs forever in the loop</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647861303366/EVXtIXOE3.png" alt="image.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><b>Fig.16 - Blink Example</b></td></tr>
</tbody>
</table>
</div><p>Connect Arduino Microcontroller to your computer and Select your Board and Port and then click Upload to auto compile and upload the code to arduino. LED Builtin on the Board will start Blinking.</p>
]]></content:encoded></item><item><title><![CDATA[Mobility / Grashof's Condition and Barker's Classification]]></title><description><![CDATA[Mobility of Mechanism
Degrees of freedom for planar linkages joined with common joints can be calculated through Gruebler’s equation.
Gruebler’s equation is given by the formula:

M = 3(L-1) - 2J1 - J2

where:

M is degree of freedom or Mobility
L is...]]></description><link>https://blog.huzaifairfan.com/mobility-grashof-barker</link><guid isPermaLink="true">https://blog.huzaifairfan.com/mobility-grashof-barker</guid><dc:creator><![CDATA[Huzaifa Irfan]]></dc:creator><pubDate>Sat, 19 Mar 2022 15:13:12 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1647708164428/LAERDhEzk.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-mobility-of-mechanism">Mobility of Mechanism</h2>
<p>Degrees of freedom for planar linkages joined with common joints can be calculated through Gruebler’s equation.</p>
<p>Gruebler’s equation is given by the formula:</p>
<blockquote>
<p>M = 3(L-1) - 2J<sub>1</sub> - J<sub>2</sub></p>
</blockquote>
<p>where:</p>
<ul>
<li>M is degree of freedom or Mobility</li>
<li>L is number of links</li>
<li>J<sub>1</sub> is number of full joints</li>
<li>J<sub>2</sub> is number of half joints</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647244176862/dSsKALnhE.png" alt="image.png" /></p>
<h2 id="heading-grashof-condition">Grashof Condition</h2>
<p>Grashof’s Law states that for a four-bar linkage system, if the sum of length of shortest and longest of a planar quadrilateral linkage is less than or equal to the sum of the remaining two links , then the shortest link can rotate freely with respect to neighbouring link.</p>
<p>Let denote the smallest link of four bar linkage with S and the longest link by L and the other two links by P and Q.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647708655845/_Utk_bIFy.png" alt="image.png" /></p>
<p>The necessary condition to satisfy Grashof’s Law is :</p>
<blockquote>
<p>S + L ≤ P + Q</p>
</blockquote>
<h2 id="heading-barkers-classification">Barker's Classification</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647703708201/V3QTFbwLt.png" alt="image.png" /></p>
<h2 id="heading-try-yourself">Try Yourself</h2>
<div class="hn-embed-widget" id="mobility-grashof-barker"></div>]]></content:encoded></item><item><title><![CDATA[Mobility of Mechanism]]></title><description><![CDATA[Mobility
Degrees of freedom for planar linkages joined with common joints can be calculated through Gruebler’s equation.
Gruebler’s equation is given by the formula:

M = 3(L-1) - 2J1 - J2

where:

M is degree of freedom or Mobility
L is number of li...]]></description><link>https://blog.huzaifairfan.com/mobility</link><guid isPermaLink="true">https://blog.huzaifairfan.com/mobility</guid><dc:creator><![CDATA[Huzaifa Irfan]]></dc:creator><pubDate>Mon, 14 Mar 2022 06:48:22 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1647244016374/2Zmk-tkyE.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-mobility">Mobility</h2>
<p>Degrees of freedom for planar linkages joined with common joints can be calculated through Gruebler’s equation.</p>
<p>Gruebler’s equation is given by the formula:</p>
<blockquote>
<p>M = 3(L-1) - 2J<sub>1</sub> - J<sub>2</sub></p>
</blockquote>
<p>where:</p>
<ul>
<li>M is degree of freedom or Mobility</li>
<li>L is number of links</li>
<li>J<sub>1</sub> is number of full joints</li>
<li>J<sub>2</sub> is number of half joints</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1647244176862/dSsKALnhE.png" alt="image.png" /></p>
<h2 id="heading-try-yourself">Try Yourself</h2>
<div class="hn-embed-widget" id="mobility"></div>]]></content:encoded></item></channel></rss>