Jump to content
Electronics-Lab.com Community

sam.moshiri

Members
  • Posts

    49
  • Joined

  • Last visited

  • Days Won

    2

sam.moshiri last won the day on April 17 2021

sam.moshiri had the most liked content!

2 Followers

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

sam.moshiri's Achievements

  1. That is a linear supply, but what I posted here is switching and very small, you can embed it in whatever enclosure and control the voltage using the potentiometer
  2. A DC-to-DC converter is one of the most commonly used circuits in electronics, especially in power supply applications. There are three major types of DC-to-DC converters (non-isolated): Buck, Boost, and Buck-Boost. Sometimes a buck converter is also called a step-down converter and a boost converter is also called a step-up converter. In this article/video, I introduce an adjustable 5A DC-to-DC converter circuit that uses an advanced chip, made by Texas Instruments, which is TPS5450. It’s a high-frequency and efficient buck converter chip that provides tight voltage regulation. I have followed several PCB design rules to ensure low noise, low EMI, and high stability of the output voltage. To design the schematic and PCB, I used Altium Designer 23 and shared the project with my friends using Altium-365. The fast component search engine (Octopart) allowed me to quickly consider components’ information and also generate the BOM. To get high-quality fabricated boards, I sent the Gerber files to PCBWay and tested the circuit for output stability and noise, using a DC load, a multimeter, and an oscilloscope. Soon later, I will also perform the step-response test and demonstrate the results. Specifications Input Voltage: 5.5V to 36V Output Voltage: 1.22Vmin to 31Vmax (variable) Output Current (continuous): 5A Output Current (peak, short time): 6A Maximum Output Drop: 22mV (5A load) Output Noise: 14mVp-p (no load), 50mVp-p (5A load), 20MHz-BW References Full Article, Downloading PCB, Direct Order: https://www.pcbway.com/project/shareproject/5A_35V_Adjustable_Switching_Power_Supply_760ba488.html [1]: TPS5450: https://octopart.com/tps5450ddar-texas+instruments-7105511?r=sp [2]: SS56: https://octopart.com/ss56bf-hf-comchip-107339894?r=sp [3]: 3590-S2: https://octopart.com/3590s-2-502l-bourns-112621?r=sp
  3. Are you tired of dealing with the damaging effects of inrush currents on your industrial devices? Look no further than an AC inrush current limiter (soft starter). Inrush current, also known as surge current, is the large amount of current that flows into a load at start-up. This can cause damage to equipment, reduce its lifespan, and lead to costly downtime. But with an AC inrush current limiter, you can eliminate these problems. Simply, a soft starter works by limiting the initial current flow, ensuring a smooth and efficient start-up, while protecting your equipment from damage. So I decided to design this AC soft starter that is equipped with a fail-safe mechanism. During start-up, the inrush current passes through a power resistor, and after a delay (adjustable between 1ms to 1s), a 30A power Relay shorts the resistor and applies the full power to the load. If this Relay fails for whatever reason, the power resistor won’t melt everything; the logic circuit activates the fail-safe Relay that turns OFF the load to prevent any damage. 3 LEDs indicate the Supply, Normal, and Fault conditions. I selected the cheap ATTiny13 MCU as a controller. To design the schematic and PCB, I used Altium Designer 23. The fast component search engine (Octopart) allowed me to quickly consider components’ information and also generate the BOM. To get high-quality fabricated boards, I sent the Gerber files to PCBWay. I used the Arduino IDE to write the MCU code, so it is pretty easy to follow and understand. Let’s get started 🙂 [Main] Full Documentation, Schematic, PCB, Direct Order [1]: ATTiny13 MCU: https://octopart.com/attiny13a-ssur-microchip-77761976?r=sp [2]: 10D561K MOV: https://octopart.com/mov-10d561k-bourns-19184788?r=sp [3]: HLK-PM12: https://datasheet.lcsc.com/szlcsc/1909111105_HI-LINK-HLK-PM24_C399250.pdf [4]: 78L05 SOT-89: https://octopart.com/ua78l05acpk-texas+instruments-525167?r=sp [5]: Si2302 Mosfet: https://octopart.com/si2302cds-t1-ge3-vishay-43172315?r=sp [6]: M7 Diode: https://octopart.com/m7-diotec-30502012?r=sp
  4. Nowadays home automation is a trending topic among electronic enthusiasts and even the mass population. People are busy with their life challenges, so an electronic device should take care of the home instead! The majority of such devices need internet or Wi-Fi for connectivity or they don’t offer a user-friendly GUI, but I decided to design a standalone wireless monitoring/controlling unit that can be adjusted using a graphical and touch-controlled LCD display. The device consists of a panelboard and a mainboard that communicate using 315MHz (or 433MHz) ASK transceivers. The panel side is equipped with a high-quality 4.3” capacitive-touch Nextion Display. The user can monitor the live temperature values and define the action threshold (to activate/deactivate the heater or cooler), humidity (to activate/deactivate the humidifier or dehumidifier), and ambient light (to turn ON/OFF the lights). The mainboard is equipped with 4 Relays to activate/deactivate the aforementioned loads. To design the schematic and PCB, I used Altium Designer 23. The fast component search engine (octopart) allowed me to quickly consider components’ information and also generate the BOM. To get high-quality fabricated boards, I sent the Gerber files to PCBWay. I used the Arduino IDE to write the MCU code, so it is pretty easy to follow and understand. Designing a GUI using the Nextion tools was a pleasant experience that I will certainly follow for similar projects in the future. So let’s get started 🙂 Specifications Connectivity: Wireless ASK, 315MHz (or 433MHz) Parameters: Temperature, Humidity, Ambient Light Wireless Coverage: 100 to 200m (with Antennas) Display: 4.3” Graphical, Capacitive-Touch Input Voltage: 7.5 to 9V-DC (power adaptor connector) References article: https://www.pcbway.com/blog/technology/Wireless_Home_Automation_Control_and_Monitoring_Using_a_Nextion_HMI_Display_24d9be1d.html [1]: L7805: https://octopart.com/l7805cp-stmicroelectronics-526753?r=sp [2]: SMBJ5CA: https://octopart.com/rnd+smbj5ca-rnd+components-103950670?r=sp [3]: 78L05: https://octopart.com/ua78l05cpk-texas+instruments-525289?r=sp [4]: ATMega328: https://octopart.com/atmega328pb-anr-microchip-77760227?r=sp [5]: Si2302: https://octopart.com/si2302cds-t1-e3-vishay-44452855?r=sp [6]: LM1-5D: https://octopart.com/lm1-5d-rayex-53719411?r=sp [7]: Altium Designer: https://www.altium.com/yt/myvanitar [8]: Nextion Display: https://bit.ly/3dY30gw
  5. Flyback is the most common circuit topology to build galvanically isolated AC to DC or DC to DC converters. Flyback circuit is cheap and relatively easy to manufacture, therefore nowadays the majority of home or industrial appliances are powered using AC to DC Flyback converters. In general, a Flyback converter is suitable for low-power applications, mostly below 100W. In this article/video, I designed a cheap AC-to-DC flyback converter using a DK124 IC that can deliver up to 18W continuously. I calculated the transformer to handle 12V at the output which can be easily modified to reach other output voltages as well. The DK124 chip does not need any auxiliary winding or even an external startup resistor. The 220V Mains input has been protected using a MOV, an NTC, and a Fuse. The PCB board is single-layer and all components are through-hole. To design the schematic and PCB, I used Altium Designer 22. The fast component search engine (octopart) allowed me to quickly consider components’ information and also generate the BOM. To get high-quality fabricated boards, I sent the Gerber files to PCBWay. To test the power supply, I used Siglent an SDL1020X-E DC Load, an SDM3045X Multimeter, and an SDS1104X-E/SDS2102X Plus oscilloscope. Specifications Input Voltage Range: 85 to 265V-AC Output Power: 18W Continuous Output Voltage: 12V-DC Switching Frequency: 65KHz Reference: https://www.pcbway.com/blog/technology/220V_AC_to_12V_DC_18W_Switching_Power_Supply_81665a6c.html [1]: DK124: https://grupoautcomp.com.br/wp-content/uploads/2016/11/Specification-IC-DK124.pdf [2]: 10D561: https://octopart.com/mov-10d561k-bourns-19184788?r=sp [3]: PC817: https://octopart.com/pc817x1j000f-sharp-39642331?r=sp [4]: TL431: https://octopart.com/tl431aclpr-texas+instruments-521800?r=sp
  6. The Full-Bridge (H-Bridge) is the most popular driver circuit to control brushed DC motors. The main advantage of a full bridge driver is the ability to change the rotation direction of the motor, without manually reversing the supply wires. I’ve already published the Half-bridge and H-bridge driver circuits before; however, I was receiving many requests and comments for a standalone H-Bridge driver to control the DC motors, without using any external board or a controller. Therefore, I introduced a cheap, compact, and standalone H-Bridge DC motor driver that can be embedded in a variety of mechatronic devices. A cheap ATTiny13 microcontroller controls everything and I used the Arduino IDE to write the microcontroller code. All components, except for the connectors, are SMD. The motor can be controlled in three modes: Forward, Stop, and Reverse. The user can adjust the rotation speed of the motor separately in the forward or reverse direction, using two panel-mounting potentiometers. The low ON-Resistance of the Mosfets allows you to use this circuit in high currents. To design the schematic and PCB, I used Altium Designer 22. The fast component search engine (octopart) allowed me to quickly collect the components’ data and generate the BOM as well. To get high-quality fabricated boards, I sent the Gerber files to PCBWay. To test the driver board, I disassembled an electric toy car and used its powerful 775 DC motor (plus the gearbox). It’s a cool experience, just build one and have fun! Specifications Input Voltage (Motor): 8-40VDC Supply Voltage (Controller): 12VDC PWM Frequency: 25KHz Motor Control: Forward-Stop-Reverse Motor Speed: [0 to 100%] Forward, [0 to 100%] Reverse References Article: https://www.pcbway.com/blog/technology/A_Standalone_Full_Bridge_DC_Motor_Driver_2c7c2086.html [1]: ATTiny13 MCU: https://octopart.com/attiny13a-ssur-microchip-77761976?r=sp [2]: 78L05 SOT89: https://octopart.com/ka78l05aimtf-onsemi-84329328?r=sp [3]: IRF3205 D2PACK: https://octopart.com/irf3205strlpbf-infineon-65873335?r=sp [4]: IR2104: https://octopart.com/ir2104spbf-infineon-65872813?r=sp [5]: MicroCore Arduino Package: https://github.com/MCUdude/MicroCore [6]: Complied HEX file: https://drive.google.com/file/d/1_FEbxj3XtWoZCNCxfpgcvCwcf9j8cqj-/view?usp=sharing
  7. Raspberry Pi Pico is a cute piece of hardware. It is equipped with a powerful dual-core RP2040 microcontroller that offers 2M (up to 16M) Flash and 264K SRAM memories. Such specifications make it suitable for a variety of hobby and industrial applications. In this article/video, I used a Pico board, a digital SHTC3 sensor, and a 2.4” colorful TFT display to build a graphical temperature and humidity measurement/control unit that can be used to monitor the home, workplace, indoor garden, devices … etc. The board was also equipped with two Relays that allow the user to set the cooling/heating limits and adjust the parameters in the GUI. The trickiest part of this project was the Pico code. I used the Pico C/C++ SDK library and invested a significant amount of time in designing the GUI and debugging the code. I should confess it was not an easy task. To design the schematic and PCB, I used Altium designer 22 and installed the missing component libraries using Altium’s manufacturer part search. By using the Octopart website, I was able to quickly gather the necessary component information and generate the BOM. Finally, to get high-quality fabricated boards, I sent the Gerber files to PCBWay. It's a cool piece of hardware for anyone, so let’s get started References Article: https://www.pcbway.com/blog/technology/Temperature_Humidity_Control_Unit_Using_a_Raspberry_Pi_Pico_66fdee4a.html [1]: 78M05: https://octopart.com/l78m05acdt-stmicroelectronics-2280839?r=sp [2]: TLV1117-33C: https://octopart.com/tlv1117-33cdcyr-texas+instruments-669251?r=sp [3]: Raspberry Pi Pico: https://octopart.com/sc0915-raspberry+pi-116090189?r=sp [4]: LM1-5D: https://octopart.com/lm1-5d-rayex-53719411?r=sp [5]: 2N7002: https://octopart.com/2n7002-t1-e3-vishay-55433894?r=sp
  8. Dealing with the 220V-AC mains voltage and measuring the AC loads' true power, voltage, and current parameters are always considered a big challenge for electronic designers, both in circuit design and calculations. The situation gets more complex when we deal with the inductive loads because inductive loads alter the sine-wave shape of the AC signal (resistive loads don’t). In this article/video, I introduced a circuit that can measure the AC voltage, RMS current, active power, apparent power, power factor, and energy consumption (KWh) of the loads. I used an Arduino-Nano board as a processor to make this more educational-friendly and attractive even for beginners. The device independently measures the aforementioned parameters and displays the results on a 4*20 LCD. The measurement error rate is around 0.5% or lower. To design the schematic and PCB, I used Altium designer 22 and installed the missing component libraries using Altium’s manufacturer part search. The Octopart website allowed me to quickly gather information about the components and make a BOM for the project. To get high-quality fabricated boards, I sent the Gerber files to PCBWay and used the Siglent SDM3045X benchtop multimeter to calibrate the board. It's a cool device to be used in everyday electronics, so let’s get started 🙂 References Ref: https://www.pcbway.com/blog/technology/High_Precision_Digital_AC_Energy_Meter_Circuit_Voltage_Current_Power_KWh_3a6bf090.html [1]: Arduino-Nano: https://octopart.com/a000005-arduino-20172777?r=sp [2]: HLW8032 English datasheet: https://github.com/MyVanitar/HLW8032/blob/main/DS_HLW8032_EN_Rev1.5.pdf [3]: TS2937CW50 (LM2937): https://octopart.com/ts2937cw50+rpg-taiwan+semiconductor-58281876?r=sp [4]: HLW8032 Arduino Library: https://github.com/MyVanitar/HLW8032
  9. A DC-to-DC converter is one of the most commonly used circuit topologies in electronics, especially in power supply applications. There are three major types of DC-to-DC converters (non-isolated): Buck, Boost, and Buck-Boost. Sometimes a buck converter is also called a step-down converter and a boost converter is also called a step-up converter. In this article/video, I introduce an adjustable buck converter circuit that uses an advanced converter chip, made by Texas Instruments, which is TPS5430. It’s a high-frequency and 95% efficient chip. In the PCB layout design of such converters, several PCB design rules should be followed, otherwise, the circuit might generate a significant amount of radiated emission and suffer output instability. To design the schematic and PCB, I used Altium Designer 22 and used the manufacturer part search feature to directly import the components into the PCB project. Then, generated the BOM list using the free OctoPart services. To get high-quality fabricated boards, I sent the Gerbers to PCBWay and tested the circuit for output stability and noise, using a DC load, A multimeter, and an oscilloscope. Soon later, I will also perform the step-response test and demonstrate the results. Stay connected! Specifications Input Voltage: 5.5V to 36V Output Voltage: 1.22Vmin (variable) Output Current (continuous): 3A Output Current (peak): 4A Maximum output voltage drop: 10mV (3A load) Output Noise: 12mVp-p (no load), 43mVp-p (3A load), 20MHz-BW References Ref: https://www.pcbway.com/blog/technology/36V_3A_Adjustable_Efficient_DC_to_DC_Step_Down_Converter_aca08813.html [1]: TPS5430: https://octopart.com/tps5430mddarep-texas+instruments-12192395?r=sp [2]: B360B-13-F (or SS34, SMB package): https://octopart.com/b360b-13-f-diodes+inc.-325834?r=sp
  10. Proper thermal dissipation is an essential rule for nowadays electronics. The best operating temperature for the electronic components is 25 degrees (standard room temperature). Thermal dissipation in some commercial devices is not done properly which affects the lifetime and performance of the devices. So, embedding a compact automatic cooling Fan controller board would be useful. Also, it can be used to protect your own designed circuits and their power components, such as regulators, Mosfets, power transistors … etc. Previously, I had introduced a circuit to control the cooling fans, however, my intention was not to use any microcontroller and keep it as simple as possible. So, the device was a simple ON/OFF switch for the FAN, depending on the defined temperature threshold. This time, I decided to design a complete and more professional circuit to control the majority of the standard FANs (25KHz PWM) using an LM35 temperature sensor and an ATTiny13 microcontroller. I used SMD components and the PCB board is compact. It can control one or several standard 3-wires or 4-wires FANs, connected in parallel, such as CPU Fans. Moreover, the target device/component can be protected against over-temperature using a Relay. The user is also notified by visual/acoustic warnings (a flashing LED and a Buzzer). To design the schematic and PCB, I used Altium Designer 22 and the SamacSys component libraries (Altium plugin). To get high-quality fabricated PCB boards, you can send the Gerbers to PCBWay and purchase original components using the componentsearchengine.com. I initially tested the circuit on a breadboard. I used the Siglent SDM3045X multimeter to accurately examine the voltages and the Siglent SDS1104X-E oscilloscope to examine the shape, duty cycle, and frequency of the PWM pulse. References Ref: https://www.eeweb.com/pwm-cooling-fan-controller-and-over-temperature-protection-using-lm35-and-attiny13/ [1]: ATTiny13 datasheet: https://componentsearchengine.com/Datasheets/1/ATtiny13-20SSU.pdf [2]: 78L05 datasheet: https://www.st.com/resource/en/datasheet/l78l.pdf [3]: 2N7002 datasheet: https://datasheet.datasheetarchive.com/originals/distributors/Datasheets-26/DSA-502170.pdf [4]: 2N7002 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/part-view/2N7002/Nexperia [5]: L78L05 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/part-view/L78L05ABD13TR/STMicroelectronics [6]: ATTiny13 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/part-view/ATTINY13-20SSU/Microchip [7]: Electronic designing CAD software plugins: https://www.samacsys.com/library-loader-help [8]: Altium Designer plugin: https://www.samacsys.com/altium-designer-library-instructions [9]: MicroCore board manager: https://github.com/MCUdude/MicroCore#analog-pins [10]: Siglent SDS1104X-E oscilloscope: https://siglentna.com/product/sds1104x-e-100-mhz/
  11. Proper thermal dissipation is an essential rule for nowadays electronics. The best operating temperature for the electronic components is 25 degrees (standard room temperature). Thermal dissipation in some commercial devices is not done properly which affects the lifetime and performance of the devices. So, embedding a compact automatic cooling Fan controller board would be useful. Also, it can be used to protect your own designed circuits and their power components, such as regulators, Mosfets, power transistors … etc. Previously, I had introduced a circuit to control the cooling fans, however, my intention was not to use any microcontroller and keep it as simple as possible. So, the device was a simple ON/OFF switch for the FAN, depending on the defined temperature threshold. This time, I decided to design a complete and more professional circuit to control the majority of the standard FANs (25KHz PWM) using an LM35 temperature sensor and an ATTiny13 microcontroller. I used SMD components and the PCB board is compact. It can control one or several standard 3-wires or 4-wires FANs, connected in parallel, such as CPU Fans. Moreover, the target device/component can be protected against over-temperature using a Relay. The user is also notified by visual/acoustic warnings (a flashing LED and a Buzzer). To design the schematic and PCB, I used Altium Designer 22 and the SamacSys component libraries (Altium plugin). To get high-quality fabricated PCB boards, you can send the Gerbers to PCBWay and purchase original components using the componentsearchengine.com. I initially tested the circuit on a breadboard. I used the Siglent SDM3045X multimeter to accurately examine the voltages and the Siglent SDS1104X-E oscilloscope to examine the shape, duty cycle, and frequency of the PWM pulse. References Ref: https://www.eeweb.com/pwm-cooling-fan-controller-and-over-temperature-protection-using-lm35-and-attiny13/ [1]: ATTiny13 datasheet: https://componentsearchengine.com/Datasheets/1/ATtiny13-20SSU.pdf [2]: 78L05 datasheet: https://www.st.com/resource/en/datasheet/l78l.pdf [3]: 2N7002 datasheet: https://datasheet.datasheetarchive.com/originals/distributors/Datasheets-26/DSA-502170.pdf [4]: 2N7002 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/part-view/2N7002/Nexperia [5]: L78L05 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/part-view/L78L05ABD13TR/STMicroelectronics [6]: ATTiny13 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/part-view/ATTINY13-20SSU/Microchip [7]: Electronic designing CAD software plugins: https://www.samacsys.com/library-loader-help [8]: Altium Designer plugin: https://www.samacsys.com/altium-designer-library-instructions [9]: MicroCore board manager: https://github.com/MCUdude/MicroCore#analog-pins [10]: Siglent SDS1104X-E oscilloscope: https://siglentna.com/product/sds1104x-e-100-mhz/
×
  • Create New...