The most commonly used voltages for AVR microcontrollers are 5V and 3.3V. This circuit uses a switch to switch between the two voltages and indicates them with a two-color diode (green light for 5V and red light for 3.3V).
Diode D1 prevents users from plugging in the wrong polarity of the power supply. D2 allows users to reverse the voltage into this circuit without damaging the 1117-ADJ.
The characteristic of 1117-ADJ is that there will be a 50uA current output at pin 1 and a 1.25V voltage at pins 1-2. Using this characteristic, the output voltage can be calculated:
When the SW switch is turned to the left, the current on R6 is 1.25/0.33 = 3.78ma. The current on R8 is 1117-ADJ 1 pin current plus the current on R6, that is, 0.05+3.78=3.83ma. It can be calculated that the voltage on R8 is 3.84V. So VCC=1.25+3.83=5.08V. The error is within 2%.
When the SW switch is turned to the right, the current on R6 is 1.25/0.62 = 2.02ma. The current on R8 is 1117-ADJ 1 pin current plus the current on R6, that is, 0.05+2.02=2.07ma. It can be calculated that the voltage on R8 is 2.07V. So VCC=1.25+2.07=3.32V. The error is within 1%.
Using 1% precision resistors, the overall output voltage error can be controlled within 3%.
Important note: In actual application, depending on the brand of 1117-ADJ used, the input voltage can be as low as 7V or even lower. (You can also use a low voltage drop diode instead of 1N4007).
Previous article:Design and Analysis of AVR Basic Hardware Circuit
Next article:Design of AVR crystal oscillator circuit
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- [RISC-V MCU CH32V103 Review] - 0: Three unexpected things when meeting for the first time
- ONENET platform DTLS encryption mentioned the boot machine and access machine. What are the boot machine and access machine? What is the difference between them?
- 【phyBOARD-i.MX 8M Plus Development Board】Part 2: Powering on the Development Board and Evaluating the Development Environment
- 22 Ways to Prevent EMI When Designing Power Supplies
- 【NXP Rapid IoT Review】Hello Touch
- Communication between Yitong Chuanglian MODBUS to PROFIBUS gateway and Honeywell DCS system
- Let's take a look
- 【TI Wireless】Micro Dual-Mode Wireless Receiver
- PWM and PFM
- Let’s talk about whether Huawei can survive in the end.