Tutorials Archives - Engineers Garage https://www.engineersgarage.com/tutorials/ Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News Wed, 11 Jun 2025 16:21:38 +0000 en-US hourly 1 https://www.engineersgarage.com/wp-content/uploads/2019/08/cropped-eg-favicon-32x32.png Tutorials Archives - Engineers Garage https://www.engineersgarage.com/tutorials/ 32 32 Verilog Tutorial 15: How to design a clocked SR latch in Verilog https://www.engineersgarage.com/verilog-tutorial-15-how-to-design-a-clocked-sr-latch-in-verilog/ https://www.engineersgarage.com/verilog-tutorial-15-how-to-design-a-clocked-sr-latch-in-verilog/#respond Wed, 11 Jun 2025 03:50:15 +0000 https://www.engineersgarage.com/?p=83141 Note: it’s recommended to follow this VHDL tutorial series in order, starting with the first tutorial. Follow the full series here. In the previous Verilog Tutorial – 14, we learned how to design circuits for a 1×8 demultiplexer and an 8×1 multiplexer in Verilog. In this tutorial, we’ll: Write a Verilog program to build a clocked SR latch…

The post Verilog Tutorial 15: How to design a clocked SR latch in Verilog appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/verilog-tutorial-15-how-to-design-a-clocked-sr-latch-in-verilog/feed/ 0
Verilog Tutorial 14: How to design a 1×8 demultiplexer and an 8×1 multiplexer in Verilog https://www.engineersgarage.com/verilog-tutorial-14-how-to-design-a-1x8-demultiplexer-and-an-8x1-multiplexer-in-verilog/ https://www.engineersgarage.com/verilog-tutorial-14-how-to-design-a-1x8-demultiplexer-and-an-8x1-multiplexer-in-verilog/#respond Mon, 09 Jun 2025 03:50:16 +0000 https://www.engineersgarage.com/?p=83126 Note: it’s recommended to follow this VHDL tutorial series in order, starting with the first tutorial. Follow the full series here. In the previous Verilog Tutorial – 13, we learned how to design a 3×8 decoder and an 8×3 encoder in VHDL. In this tutorial, we’ll: Write a Verilog program to build circuits for a 1×8 demultiplexer and an…

The post Verilog Tutorial 14: How to design a 1×8 demultiplexer and an 8×1 multiplexer in Verilog appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/verilog-tutorial-14-how-to-design-a-1x8-demultiplexer-and-an-8x1-multiplexer-in-verilog/feed/ 0
Verilog Tutorial 13: How to design a 3×8 decoder and an 8×3 encoder in VHDL https://www.engineersgarage.com/verilog-tutorial-13-how-to-design-a-3x8-decoder-and-an-8x3-encoder-in-vhdl/ https://www.engineersgarage.com/verilog-tutorial-13-how-to-design-a-3x8-decoder-and-an-8x3-encoder-in-vhdl/#respond Fri, 06 Jun 2025 03:50:04 +0000 https://www.engineersgarage.com/?p=83117 Note: it’s recommended to follow this VHDL tutorial series in order, starting with the first tutorial. Follow the full series here. In the previous Verilog Tutorial – 12, we learned how to design half and full-subtractor circuits in Verilog. In this tutorial, we’ll: Write a Verilog program for building circuits for a 3×8 decoder and an 8×3 encoder…

The post Verilog Tutorial 13: How to design a 3×8 decoder and an 8×3 encoder in VHDL appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/verilog-tutorial-13-how-to-design-a-3x8-decoder-and-an-8x3-encoder-in-vhdl/feed/ 0
Verilog Tutorial 12: How to design 8-bit parity generator and checker circuits in Verilog https://www.engineersgarage.com/verilog-tutorial-12-how-to-design-8-bit-parity-generator-and-checker-circuits-in-verilog/ https://www.engineersgarage.com/verilog-tutorial-12-how-to-design-8-bit-parity-generator-and-checker-circuits-in-verilog/#respond Tue, 03 Jun 2025 03:50:12 +0000 https://www.engineersgarage.com/?p=83094 Note: it’s recommended to follow this VHDL tutorial series in order, starting with the first tutorial. Follow the full series here. In the previous Verilog Tutorial – 11, we learned how to design half and full-subtractor circuits in Verilog. In this tutorial, we’ll: Write a Verilog program to build an 8-bit parity generator and checker circuits Verify the…

The post Verilog Tutorial 12: How to design 8-bit parity generator and checker circuits in Verilog appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/verilog-tutorial-12-how-to-design-8-bit-parity-generator-and-checker-circuits-in-verilog/feed/ 0
Introduction to batteries and their types https://www.engineersgarage.com/introduction-batteries-their-types/ https://www.engineersgarage.com/introduction-batteries-their-types/#respond Sat, 31 May 2025 18:44:21 +0000 https://www.engineersgarage.com/?p=64201 What is a Battery? A battery is an electrochemical device that can store energy in the form of chemical energy. It translates to electric energy when the battery is connected in a circuit due to the flow of electrons because of the specific placement of chemicals. It was invented by Alessandro Volta, whereas Gaston Plante…

The post Introduction to batteries and their types appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/introduction-batteries-their-types/feed/ 0
What are the different battery types for specific applications? https://www.engineersgarage.com/what-are-the-different-battery-types-for-specific-applications/ https://www.engineersgarage.com/what-are-the-different-battery-types-for-specific-applications/#respond Sat, 31 May 2025 18:43:14 +0000 https://www.engineersgarage.com/?p=64376 How to choose right battery for a application? In this article, we will learn how to choose a battery according to the specifications and requirements of your application. Some applications need more power and some need to be cheap with less power. There are various factors and parameters that to consider when choosing the best…

The post What are the different battery types for specific applications? appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/what-are-the-different-battery-types-for-specific-applications/feed/ 0
How rechargeable batteries, charging, and discharging cycles work https://www.engineersgarage.com/how-rechargeable-batteries-charging-and-discharging-cycles-work/ https://www.engineersgarage.com/how-rechargeable-batteries-charging-and-discharging-cycles-work/#respond Sat, 31 May 2025 18:41:15 +0000 https://www.engineersgarage.com/?p=64324 How rechargeable batteries, charging, and discharging cycles work The battery stores electrical energy in form of chemical energy and the chemical energy again able to convert into electrical energy. The conversion of chemical energy to electrical energy is called discharging. The chemical reaction during discharge makes electrons flow through the external load connected at the…

The post How rechargeable batteries, charging, and discharging cycles work appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/how-rechargeable-batteries-charging-and-discharging-cycles-work/feed/ 0
Battery configurations (series and parallel) and their protections https://www.engineersgarage.com/battery-configurations-series-and-parallel-and-their-protections/ https://www.engineersgarage.com/battery-configurations-series-and-parallel-and-their-protections/#respond Sat, 31 May 2025 18:40:28 +0000 https://www.engineersgarage.com/?p=64495 Configuration in Batteries and their protection A single cell is not sufficient for some devices. To achieve the desired voltage, the cells are connected in series to add the voltage of cells. To achieve the desired capacity, the cells are connected in parallel to get high capacity by adding ampere-hour (Ah). This combination of cells…

The post Battery configurations (series and parallel) and their protections appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/battery-configurations-series-and-parallel-and-their-protections/feed/ 0
What to consider when evaluating battery performance https://www.engineersgarage.com/what-to-consider-when-evaluating-battery-performance/ https://www.engineersgarage.com/what-to-consider-when-evaluating-battery-performance/#respond Sat, 31 May 2025 18:39:35 +0000 https://www.engineersgarage.com/?p=65807 Several important metrics and considerations are important when evaluating battery performance: Cell, module, and pack level: It is important to consider whether the data refers to an individual cell or a complete battery pack when comparing energy and power densities. Cells will always have the highest energy and power for a given size or weight.…

The post What to consider when evaluating battery performance appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/what-to-consider-when-evaluating-battery-performance/feed/ 0
Understanding battery management systems https://www.engineersgarage.com/understanding-battery-management-systems/ https://www.engineersgarage.com/understanding-battery-management-systems/#respond Sat, 31 May 2025 18:38:02 +0000 https://www.engineersgarage.com/?p=64418 A battery-management system (BMS) is an electronic system or circuit that monitors the charging, discharging, temperature, and other factors influencing the state of a battery or battery pack, with an overall goal of accurately indicating the remaining time available for use. It’s used to monitor and maintain the health and capacity of a battery. Today’s…

The post Understanding battery management systems appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/understanding-battery-management-systems/feed/ 0
Basics of Audio Amplifier – 1/9 https://www.engineersgarage.com/basics-of-audio-amplifier-1-9/ https://www.engineersgarage.com/basics-of-audio-amplifier-1-9/#respond Tue, 20 May 2025 11:46:30 +0000 http://engineersgarag-main/basics-of-audio-amplifier-1-9/ Audio is one of the most common media. Here, It refers to the representation of sound which can be perceived by humans. Audio and Video are the essential component of any electronic media. The electronics can be used to receive audio signals (via microphone), record audio in some storage, transmit audio (through wired or wireless communication channels) and reproduce audio signals (via speakers).  The audio can be represented and transmitted as either analog signals or digital signals. In this series, analog audio signals are the concern. The audio signals have a frequency range of 20 Hz to 20,000 Hz.  

The post Basics of Audio Amplifier – 1/9 appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/basics-of-audio-amplifier-1-9/feed/ 0
Designing 250 Milli Watt Audio Power Amplifier – 2/9 https://www.engineersgarage.com/designing-250-milli-watt-audio-power-amplifier-2-9/ https://www.engineersgarage.com/designing-250-milli-watt-audio-power-amplifier-2-9/#respond Tue, 20 May 2025 11:45:35 +0000 http://engineersgarag-main/designing-250-milli-watt-audio-power-amplifier-2-9/ In the previous tutorial, basics of audio amplifiers were discussed. It has been already mentioned that on the basis of application, there are two types of audio amplifiers - 1) Pre-Amplifier2) Power Amplifier The pre-amplifiers are used to level up the audio signals from a microphone or audio source to standard voltage levels while the power amplifiers are generally used at the output stage of the audio systems to boost audio signals before they are reproduced by the speakers. In this tutorial, a power amplifier with 250 Milli-Watt output power will be designed.  

The post Designing 250 Milli Watt Audio Power Amplifier – 2/9 appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/designing-250-milli-watt-audio-power-amplifier-2-9/feed/ 0
Designing 1 Watt Audio Power Amplifier – 3/9 https://www.engineersgarage.com/designing-1-watt-audio-power-amplifier-3-9/ https://www.engineersgarage.com/designing-1-watt-audio-power-amplifier-3-9/#respond Tue, 20 May 2025 11:43:30 +0000 http://engineersgarag-main/designing-1-watt-audio-power-amplifier-3-9/ In the previous tutorial, a 250 Milli Watt Audio Power Amplifier was designed using LM-386 power amplifier IC. On the basis of application, the audio amplifiers can be categorized into two classes - 1) Pre-Amplifier2) Power Amplifier The pre-amplifiers are used to level up the audio signals from a microphone or audio source to standard voltage levels while the power amplifiers are generally used at the output stage of the audio systems to boost audio signals before they are reproduced by the speakers. In this tutorial, a power amplifier with 1 Watt output power will be designed. The audio amplifier designed in this project will operate in range from 20 Hz to 20 KHz which is the same as of the audible range of frequencies by humans. The amplifier circuit will be designed to have a variable voltage gain in range from 26 dB to 46 dB.

The post Designing 1 Watt Audio Power Amplifier – 3/9 appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/designing-1-watt-audio-power-amplifier-3-9/feed/ 0
Designing a Bass Boost Amplifier – 4/9 https://www.engineersgarage.com/designing-a-bass-boost-amplifier-4-9/ https://www.engineersgarage.com/designing-a-bass-boost-amplifier-4-9/#respond Tue, 20 May 2025 11:42:52 +0000 http://engineersgarag-main/designing-a-bass-boost-amplifier-4-9/ In the previous tutorial, 1 Watt Audio Power Amplifier was designed. On the basis of application, the audio amplifiers can be categorized into two classes- 1) Pre-Amplifier2) Power Amplifier The pre-amplifiers are used to level up the audio signals from a microphone or audio source to standard voltage levels while the power amplifiers are generally used at the output stage of the audio systems to boost audio signals before they are reproduced by the speakers. In this tutorial, a Bass Boost amplifier with 1 Watt output power will be designed. The audio amplifier designed in this project will operate in range from 20 Hz to 20 KHz which is the same as of the audible range of frequencies by humans. The amplifier circuit will be designed to have a variable voltage gain in range from 26 dB to 46 dB. 

The post Designing a Bass Boost Amplifier – 4/9 appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/designing-a-bass-boost-amplifier-4-9/feed/ 0
Designing a 6 Watt Car Audio Amplifier – 5/9 https://www.engineersgarage.com/designing-a-6-watt-car-audio-amplifier-5-9/ https://www.engineersgarage.com/designing-a-6-watt-car-audio-amplifier-5-9/#respond Tue, 20 May 2025 11:39:21 +0000 http://engineersgarag-main/designing-a-6-watt-car-audio-amplifier-5-9/ In the previous tutorial, a Bass Boost Power Amplifier was designed. Now it's time to start designing power amplifiers suitable for specific applications. In this tutorial, a car audio amplifier will be designed. The cars have been coming with inbuilt audio systems from years. An audio system of a car is one of the important features that shines as unique selling point (USP) for any car in the market. The audio systems have become a vital accessory for any car. Even many times consumers replace the default audio systems came in their car with new one for better driving experience.  

The post Designing a 6 Watt Car Audio Amplifier – 5/9 appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/designing-a-6-watt-car-audio-amplifier-5-9/feed/ 0
Design a low power amplifier for headphones- 6/9 https://www.engineersgarage.com/designing-a-low-power-amplifier-for-headphones-using-741-opam-ic-6-9/ https://www.engineersgarage.com/designing-a-low-power-amplifier-for-headphones-using-741-opam-ic-6-9/#respond Tue, 20 May 2025 11:38:49 +0000 http://engineersgarag-main/designing-a-low-power-amplifier-for-headphones-using-741-opam-ic-6-9/ Continuing with the designing of application specific power amplifiers, in this tutorial a low power amplifier will be designed for regular mobile headphones. In the previous tutorial, a car audio amplifier using TDA2003 IC was designed. The mobile headphones are a type of miniature speakers designed especially for use with smart phones. These headphones do not have louder sound output. However, their sound quality can be improved by using an amplifier circuit with them.  For headphones, a low power amplifier need to be designed.   

The post Design a low power amplifier for headphones- 6/9 appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/designing-a-low-power-amplifier-for-headphones-using-741-opam-ic-6-9/feed/ 0
Controller Chip Selection for Developing USB Enabled Device (Part 6/6) https://www.engineersgarage.com/controller-chip-selection-for-developing-usb-enabled-device-part-6-6/ https://www.engineersgarage.com/controller-chip-selection-for-developing-usb-enabled-device-part-6-6/#respond Tue, 20 May 2025 10:29:38 +0000 http://engineersgarag-main/controller-chip-selection-for-developing-usb-enabled-device-part-6-6/ In this series, every possible detail about the USB system including its architecture, protocols, requests and descriptors as well as signaling and encoding has been already discussed. Wrapping up the series, selection of the controller chip for the development of a USB enabled device is discussed here.

The post Controller Chip Selection for Developing USB Enabled Device (Part 6/6) appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/controller-chip-selection-for-developing-usb-enabled-device-part-6-6/feed/ 0
Signal and Encoding of USB System (Part 5/6) https://www.engineersgarage.com/signal-and-encoding-of-usb-system-part-5-6/ https://www.engineersgarage.com/signal-and-encoding-of-usb-system-part-5-6/#respond Tue, 20 May 2025 10:28:37 +0000 http://engineersgarag-main/signal-and-encoding-of-usb-system-part-5-6/ In this series, USB requests and descriptors have been already discussed. With the knowledge of USB requests, descriptors, transfer types and transactions it is now easy to understand how data is communicated over USB interface.  Another aspect of the USB communication is line states and encoding, which is generally ignored by the system designers as a USB device can be designed without knowing the Signaling and Encoding schemes. The signaling and encoding schemes are implemented at the lower levels (usually on the controller IC) and usually gets abstracted during system designing. However, understanding the terms related to bus states and encoding would help in getting comprehensive view of the USB System.

The post Signal and Encoding of USB System (Part 5/6) appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/signal-and-encoding-of-usb-system-part-5-6/feed/ 0
USB Requests and Stages of Control Transfer (Part 4/6) https://www.engineersgarage.com/usb-requests-and-stages-of-control-transfer-part-4-6/ https://www.engineersgarage.com/usb-requests-and-stages-of-control-transfer-part-4-6/#respond Tue, 20 May 2025 10:27:29 +0000 http://engineersgarag-main/usb-requests-and-stages-of-control-transfer-part-4-6/ In the previous article of this series, USB Descriptors were discussed. When a USB peripheral is connected to a host device, the host sends queries in the form of requests. The peripheral responds by sending Descriptors. The Descriptors contain the information required for identifying and configuring the peripheral device, implementing the interfaces and setting endpoints. The device descriptor is the first descriptor sent to the host and it helps in configuring the peripheral with respect to the host. The subsequent descriptors implement the functioning, the peripheral is meant for. The Control Transfer is the only transfer type which is supported even when the device is yet not configured. That is the reason, it is used for sending requests and obtaining the descriptors. The default endpoint is endpoint 0 which is bidirectional and used for control transfers.

The post USB Requests and Stages of Control Transfer (Part 4/6) appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/usb-requests-and-stages-of-control-transfer-part-4-6/feed/ 0
USB Descriptors and their Types (Part 3/6) https://www.engineersgarage.com/usb-descriptors-and-their-types-part-3-6/ https://www.engineersgarage.com/usb-descriptors-and-their-types-part-3-6/#respond Tue, 20 May 2025 10:26:50 +0000 http://engineersgarag-main/usb-descriptors-and-their-types-part-3-6/ Now that we have discussed the basic details of USB including its features, architecture, and protocol, the next topic in the series is USB Descriptors. In context to USB interface, Descriptors are formatted blocks of information, through which, the host device learns about the peripheral. It helps in identifying and configuring the peripheral device.A Descriptor contains information like type of the device, Vendor ID, Compliant USB Version, number of configurations device supports, number of endpoints, etc. The USB peripheral must respond with descriptors when requested by the host. During enumeration, the host uses control transfer to request the device for descriptors.

The post USB Descriptors and their Types (Part 3/6) appeared first on Engineers Garage.

]]>
https://www.engineersgarage.com/usb-descriptors-and-their-types-part-3-6/feed/ 0