The Kynix Blog
Stay Ahead with Expert Electronics Insights,
Industry Trends, and Innovative Tips
- Electronic Components
- News Room
- General electronic semiconductor
- Components Guide
- Sort by
- Robots
- Transmitters
- Capacitors
- IC Chips
- PCBs
- Connectors
- Amplifiers
- Memory
- LED
- Diodes
- Transistors
- Battery
- Oscillators
- Resistors
- Transceiver
- RFID
- FPGA
- Mosfets
- Sensor
- Motors, Solenoids, Driver Boards/Modules
- Relays
- Optoelectronics
- Power
- Transformer
- Fuse
- Thyristor
- potentiometer
- Development Boards
- RF/IF
- Semiconductor Information
- PCB
- transistor
Introduction As a power semiconductor device, IGBT(insulated-gate bipolar transistor) is widely used in the fields of rail transit, smart grid, industrial energy saving, electric vehicles and new energy equipment. It has the characteristics of energy saving, convenient installation and easy maintenance, and stable heat dissipation. It is the core device for energy conversion and transmission. A brief overview, IGBT can be said to be a combination of MOSFET(metal–oxide–semiconductor field-effect transistor) and BJT(bipolar junction transistor). That is, it combines the gate voltage control transistor (high input impedance) of the MOSFET, and uses the dual carriers of the BJT to achieve the purpose of large current (voltage-controlled bipolar device). So what is the internal structure of such a combination? This article will explain in detail with examples. What is IGBT and Its Applications Catalog Introduction Ⅰ IGBT Module Explained Ⅱ IGBT Internal Structure Ⅲ IGBT Internal Current Flow Ⅳ How to Disassemble IGBT Module? Ⅴ FAQ Ⅰ IGBT Module Explained The model of the IGBT module to be disassembled as an example is: FF1400R17IP4. The appearance and equivalent circuit of the module are shown in Figure 1. The length, width and height of this module are: 25cmx8.9cmx3.8cm. The module contains two IGBTs, which are what we often call half-bridge modules. The rated voltage and current of each IGBT are 1.7kV and 1.4kA. Figure 1. FF1400R17IP4 Part 8, 9, 10, 11, and 12 are power terminals and need to be connected to a power circuit.1, 2, 3, 4, and 5 are auxiliary control terminals, which need to be connected to the gate drive circuit.6 and 7 are NTC thermistors, used for temperature detection or over-temperature protection.After having a general understanding of its structure, what can we do with such a black module with this structure? Take an example around us: new electric vehicles, everyone should be familiar with it. Three such black modules can be used as a three-phase motor driver. If it is equipped with a battery, it can drive an electric bus. Of course, this module is also used in many other applications. Figure 2. IGBT in Electric Bus Ⅱ IGBT Internal Structure After having a preliminary understanding of the external structure and application of the IGBT module, let us enter the subject of this article to see what the inside of this high-tech black module looks like. Figure 3 is the internal picture of the IGBT module with the black casing removed. It should be noted that the most common copper and aluminum are inside the IGBT module. Figure 3. IGBT Internal Structure Figure 4 is a cross-sectional view of the IGBT module. If the black casing and external connection terminals are removed, the IGBT module mainly contains 3 components, the heat dissipation substrate, the DBC substrate and the silicon chip (including the IGBT chip and the Diode chip), and the rest is mainly solder layers and interconnecting wires are used to connect IGBT chips, Diode chips, power terminals, control terminals and DBC(Direct Bond Copper). Below we will briefly introduce each part. Figure 4. IGBT Section View ① Heat Sink SubstrateThe bottom of the IGBT module is the heat dissipation substrate, the main purpose is to quickly transfer the heat generated by the IGBT switching process. Since copper has better thermal conductivity, the substrate is usually made of copper, and the thickness of it is 3-8mm. Of course, there are also substrates made of other materials, such as aluminum silicon carbide (AlSiC), both of which have their own advantages and disadvantages. ② DBCDBC (Direct Bond Copper) is a ceramic surface metallization technology, which contains 3 layers. Have a ceramic insulating layer in the middle and a copper clad layer above and below respectively, as shown in Figure 5(a). Simply put, it is to cover both sides of an insulating material with a copper layer, and then etch a pattern that can carry current on the front side, and the back side must be directly soldered to the heat sink substrate. Figure 5. BDC Base vs PCB The main function of DBC needs to ensure the electrical insulation capacity between the silicon chip and the heat dissipation substrate and good thermal conductivity, while also providing a certain current transmission capacity. The DBC substrate is similar to a 2-layer PCB circuit board. The insulating material in the middle of the PCB is generally FR4, while the commonly used ceramic insulating materials for DBC are aluminum oxide (Al2O3) and aluminum nitride (AlN).For the IGBT module analyzed in this article, there are 6 DBCs inside, and each has 4 IGBT chips and 2 Diode chips. Among them, 2 IGBT chips and 1 Diode chip are used as the upper tube, and the rest are used as the lower tube. As shown in Figure 6. Figure 6. DBC Diagram and Equivalent Circuit ③ IGBT ChipThe IGBT chip model used inside the module is: IGCT136T170. The manual can be downloaded from Infineon official website. Figure 7 shows the top view and basic parameters of the IGBT chip. The gate and emitter of the IGBT are above the chip (front side), and the collector is below (back side). The thickness of the chip is 200um. After the IGBT powers on, the current flows from bottom to top, so the IGBT of this structure can also be called a vertical device. Chip Type VCE ICn1) Die Size IGC136T170S8RH2 1700A 117.5A 17.72×7.7mm2 Figure 7. IGBT Chip Diagram If you make a vertical cut on the 200um chip, you can get the internal structure shown in Figure 8, which is a combination of P-type or N-type semiconductors with different doping. Figure 8 shows the well-known equivalent circuit of an IGBT, which is usually understood as a MOS-controlled PNP transistor. When start to learn about power electronics, you may feel that this picture is a bit strange. Why not draw the collector on the top and the emitter on the bottom? Until you understand that the IGBT current flows from bottom to top, it is not difficult to explain. Figure 8. IGBT Chip Structure and Equivalent Circuit Let’s have a general understanding of the electrical parameters of this IGBT chip. This chip can pass a DC current of 117.5A at 100°C. It can be seen from Figure 4 that a single IGBT device inside the module contains a total of 12 IGBT chips, so the total current is: 117.5*12=1412A, which is basically the same as the 1400A rated current in the IGBT module manual.In order to ensure the current sharing effect between IGBT chips, a 11.5Ω resistor has been integrated inside the gate of each chip. At the same time, considering the current sharing between the DBCs, the two chips on each DBC share a gate resistor externally, as shown in Figure 10. When measuring it with a multimeter, and the resistance is about 4.13Ω. You can calculate it in conjunction with Figure 9 to see if it is consistent with the 1.6Ω in the IGBT module manual. Of course, you can refer to the official manual for more detailed parameters of the IGBT chip. Figure 9. IGBT Equivalent Circuit ④ Diode ChipFigure 10 is a top view of the Diode chip, with the anode on the front and the cathode on the back. The current direction of the diode is from top to bottom, which is exactly the opposite of the current direction of the IGBT. The rated current of the diode chip is 235A, and each IGBT is composed of 6 diodes in parallel, and the total current can reach 1410A, which is basically the same as the 1400A in the module manual. The thickness of diode chip is the same as IGBT, it is also 200um. For more detailed parameters of the diode chip, please refer to the official manual. Chip Type VR IFn1) Die Size SIDC130D170H 1700A 235A 16.3×8mm2 Figure 10. Diode Diagram Such a thin semiconductor material can have kV voltage and hundreds of amperes of current on and off, it’s amazing. This is why the price of high-power semiconductor devices is so very expensive.The upper copper layer interconnection of IGBT chip, Diode chip and DBC is generally realized by bonding wires. Commonly used bonding wires are aluminum wire and copper wire. Among them, the aluminum wire bonding process is mature and the cost is low, but the electrical and thermodynamic properties of the aluminum wire bonding are poor, and the expansion coefficient mismatch is large, which affects the service life of the IGBT. The copper wire bonding process has the advantages of excellent electrical and thermodynamic properties, high reliability, and is suitable for modules with high power density and efficient heat dissipation. Ⅲ IGBT Internal Current Flow After having a basic understanding of the internal structure of the IGBT module, let us go back and interconnect all the above components to see how the current flows inside the IGBT module. Here we take the upper tube IGBT in one of the DBCs as an example to illustrate the current flow. Red represents the current direction of the upper tube IGBT (S1 and S2), and blue represents the current direction of the diode D1. Figure 11(b) is a left cross-sectional view and a schematic diagram of the current direction of the module of Figure . Figure 11(a). IGBT Current Flow Figure 11(b). IGBT Current Ⅳ How to Disassemble IGBT Module? Some friends may be curious about how to disassemble this module, but it is actually very simple. You only need to prepare two screwdrivers and a small hammer. Figure 12. IGBT Disassemble Step 1: Unscrew the 4 screws at the bottom of the IGBT module.Step 2: Use a flat-blade screwdriver to pry open all the terminals on the front of the IGBT module. This step is very important. It is necessary to ensure that all the terminals after being pried are vertical to the module substrate.Step 3: You need to fix the IGBT in one place, or use a flat-blade screwdriver to align any position of the connection between the plastic casing of the IGBT module and the substrate, hit the screwdriver with a hammer, and pry the casing from the substrate with the screwdriver. After prying open one position, place something on it, and then pry another position, repeat that, after slowly prying open, just pry open with your hands directly. Ⅴ FAQ 1. What is IGBT module?An IGBT is a is power semiconductor die and is the short form of insulated-gate bipolar transistor. ... An IGBT power module functions as an electronic switching device. By alternate switching direct current (DC) can be transformed to alternating current (AC) and vice versa. 2. How does IGBT module work?The IGBT combines the simple gate-drive characteristics of power MOSFETs with the high-current and low-saturation-voltage capability of bipolar transistors. The IGBT combines an isolated-gate FET for the control input and a bipolar power transistor as a switch in a single device. 3. What is the purpose of IGBT?The IGBT combines, in a single device, a control input with a MOS structure and a bipolar power transistor that acts as an output switch. IGBTs are suitable for high-voltage, high-current applications. They are designed to drive high-power applications with a low-power input. 4. How many layers are there in IGBT?Working of IGBTIGBT is constructed with 4 layers of semiconductor sandwiched together. The layer closer to the collector is the p+ substrate layer above that is the n- layer, another p layer is kept closer to the emitter and inside the p layer, we have the n+ layers. 5. Which are the terminals of IGBT?The three terminals of IGBT are Gate, Collector and Emitter. 6. How many terminals Mosfet has?four terminalsThe MOSFET has four terminals: drain, source, gate, and body or substrate. 7. What is the function of injecting layer in IGBT?The p+ substrate is also called injector layer because it injects holes into n- layer. The n- layer is called drift region. The next p layer is called the body of IGBT. The n- layer in between the p+ & p region serves to accommodate the depletion layer of pn- junction i.e. J2. 8. Can I replace IGBT with MOSFET?Due to the higher usable current density of IGBTs, it can usually handle two to three times more current than a typical MOSFET it replaces. This means that a single IGBT device can replace multiple MOSFETs in parallel operation or any of the super-large single power MOSFETs that are available today. 9. What are the three terminals of an IGBT and how does it function?The IGBT (insulated gate bipolar transistor) is a three-terminal electronic component, and these terminals are termed as emitter (E), collector(C) and gate(G). Two of its terminals namely collector and emitter are associated with a conductance path and the remaining terminal 'G' is associated with its control. 10. What is an IGBT describe its construction?IGBT – Working, Types, Structure, Operation & Applications. ... The IGBT (Insulated Gate Bipolar Transistor) takes the best parts of both BJT and MOSFET into a single transistor. It takes the input characteristics (high input impedance) of MOSFET (Insulated Gate) and the output characteristics of BJT (Bipolar nature). 11. How does IGBT convert DC to AC?The IGBT act as a switch (when a signal is applied to the gate, they turn on and then turn off when the signal is removed). By closing Q1 and Q4, a positive d.c. supply is applied to the load. Q2 and Q3 will result in a negative d.c. supply across the load. 12. What is the advantage of IGBT?The main advantages of IGBT over a Power MOSFET and a BJT are: It has a very low on-state voltage drop due to conductivity modulation and has superior on-state current density. So smaller chip size is possible and the cost can be reduced. 13. What is drift layer in IGBT?The drift region (electric field or movement of charge) of the IGBT works as a base of the PNP transistor . The current gain of the transistor depends upon the width and doping level of the transistor. 14. What is the structure of IGBT?The structure of IGBT is very much similar to that of PMOSFET, except one layer known as injection layer which is p+ unlike n+ substrate in PMOSFET. This injection layer is the key to the superior characteristics of IGBT. Other layers are called the drift and the body region. The two junctions are labeled J1 and J2. 15. What are the advantages of IGBTs?Advantages of IGBT:Simple drive circuitLow on-resistanceHigh voltage capacityFast switching speedEasy of driveLow switching lossLow on stage power dissipationLow gate drive requirement 16. Why IGBT is very popular nowadays?With its lower on-state resistance and conduction losses as well as its ability to switch high voltages at high frequencies without damage makes the Insulated Gate Bipolar Transistor ideal for driving inductive loads such as coil windings, electromagnets and DC motors. 17. Why diode is used in IGBT?We know that MOSFET or IGBT is a unidirectional device, they only conduct current in forward bias and block the current in reverse bias. ... For this reason, an external diode is connected across the MOSFET or IGBT or SCR to provide a path for reverse current.
kynix On 2022-01-05
ⅠIntroductionAs electronic technology advances, there is a greater need for high-speed PCB design. Because they can work at high speeds with integrated circuits for most electronic devices, even simple ones. Some factors and parameters have to be considered when designing a high-speed PCB. Furthermore, you will discover that the fundamental PCB design rules and methods you have mastered are exactly what you need to learn. Needless to say, it will be extremely useful to PCB designers working on high-speed PCB designs.CatalogⅠIntroductionⅡ What is High-speed PCB Design?Ⅲ High-speed PCB Related VideoⅣ When Is a Printed Circuit Board Design Considered High Speed?Ⅴ High-speed PCB Design SkillsⅥ High speed PCB Design ConsiderationsⅦ Setup for High-Speed DesignⅧ Floorplanning a High Speed PCBⅨ How to Tell If Your Project is High SpeedⅩFAQ Ⅱ What is High-speed PCB Design?High-speed PCB design is any design in which the physical characteristics of your PCB. such as layout, packaging, interconnection, layer stack up, and so on, begin to impact the integrity of your signals. Furthermore, when you begin designing the boards and encounter issues such as delays, crosstalk, reflections, or emissions, you will enter the world of high-speed PCB design, Because of the attention paid to these issues, high-speed design is truly unique. You may be accustomed to designing a simple PCB where you focus primarily on component placement and routing. However, it is more important to consider some factors when using a high-speed design, such as how close they are to signals, what width they will be, where you will place the traces, and what types of components they will be connected to. Furthermore, when the factors are considered, it will achieve a high level for your PCB design process.Figure1:What is High-speed PCB Design? Ⅲ High-speed PCB Related Video High-Speed PCB Design Tips - Phil's Lab #25 High-speed PCB Video Description: Quick overview of some general high-speed PCB design tips. Everything from stack-ups, controlled impedance traces, vias, and much more! Ⅳ When Is a Printed Circuit Board Design Considered High Speed?Certain characteristics can help you identify a high-speed PCB design, As a result, the design is fast if:It uses HDMI , Ethernet, SATA , PCI Express, USB, Thunderbolt, or other high-speed interfaces for fast data transfer; the circuit consists of several sub-circuits connected via high-speed interfaces (LVDS, DSI, CSI, SDIO, DDR3 , etc.); the time of signal propagation over the track is at least 13 of the time of signal rise; the digital signal frequency is 50MHz or higher;Because the printed circuit board is so small, locating the components becomes a real challenge (especially when you come across a high-speed interface layout ). Ⅴ High-speed PCB Design SkillsBe familiar with design software that provides advanced options.High-speed designs necessitate a plethora of complex features in your CAD software. Furthermore, there may not be many programs for hobbyists, and it rarely has advanced options based on Web suites. As a result, you must gain a better understanding of a powerful.High-speed routing When it comes to high-speed traces. a designer needs to understand the essential routing rules, such as not cutting ground planes and keeping trails short. As a result, keep digital lines a certain distance apart from crosstalk and shield any interference-creating elements from compromising signal integrity.Routing traces with impedance controlImpedance matching is required for some types of signals with impedances ranging from 40 to 120 ohms. Antennae and a large number of differential pairs are examples of characteristic impedance matched hints.It is critical for designers to understand how to calculate trace width and layer stack for required impedance values. If the impedance values are incorrect, it can have a serious impact on the signal, resulting in data corruption. When creating a PCB layout or a high-speed PCB layout. keep single-ended impedance Zo and differential impedance Zdiff in mind. Figure2: Parameters for Zdiff calculation Length matching traces High-speed memory buses and interface buses have numerous lines. Because the lines can operate at high frequencies, it is critical that the signals travel from the transmitting terminal to the receiving terminal at the same time. Furthermore, it must have a feature known as length matching. As a result, most common standards define tolerance values that must match length.Figure3: High-speed PCB Design SkillsMinimizing loop areaHigh-frequency signals can cause EMI and EMC issues, so high-speed PCB designers should be aware of these tips. As a result, they must follow basic rules such as having continuous ground planes, reducing loop areas by optimizing current return paths for traces. and incorporating numerous stitching vias. Ⅵ High speed PCB Design ConsiderationsThe importance of the PCB layout cannot be overstated.PCB Design ConsiderationsSchematic considerationsTrace length tuningPCB materials and stack-up demands for high speedHigh-speed placement strategiesDifferential pair and trace length routing Crosstalk, impedance control, and parallelism considerationsUnderstanding stripline and microstripRouting topologies and best routing practicesSimulators Ⅶ Setup for High-Speed DesignBefore the layout can begin, there are several design and database details that have to be addressed.SchematicWhile there is a lot to set up before you can start the layout of a high-speed design, most people don't give the schematic much thought. Designers need to check the parts, simulate the circuitry, and finish the design. Is the schematic, however, ready to be used for layout? If the designer cannot easily understand the intent of the circuitry, an unorganized schematic can make the PCB layout difficult. High-speed signal paths, for example, must be laid out sequentially so that the designer can replicate component placement in the layout, It's also a good idea to highlight parts of the design that you really understand.These include:Critical placement locations, as well as which side of the board certain parts may be required onKeep out zones should be established around critical components.High-speed routing data, such as topologies, measured lengths, and matched lengths.Information about a differential pair and controlled impedance. PCB LibrariesAs with any PCB layout. the component footprints used for high-speed design must be checked and verified, but some additional library work may be required. Some footprints used in high-frequency or RF designs, for example, may require modifications to reduce pad sizes for signal integrity, In addition, to accommodate high-density design requirements, some footprints may be reduced to their smallest size. However, component footprints should always adhere to industry and manufacturer specifications to the greatest extent possible to meet design for manufacturability (DFM) requirements. Many design tools, including Cadence's Allegro PCB Editor, include online library browsing capabilities for importing vendor-specific footprint models. Materials and ComponentsBefore you begin the layout. you must choose the materials that will be used to construct your high-speed circuit board. Harsh operating environments may necessitate a more robust board structure, and the physical properties of the materials will be required for calculated controlled impedance routing :Consult with your manufacturer to determine whether your board will require high-speed materials.For high-speed and high-frequency applications, enhanced epoxy or PTFE materials may be a better choice.The dielectric constants of FR-4 may be insufficient to hold the impedance values required, or the design may suffer from greater signal loss than is acceptable.The manufacturer will also need to review and confirm the PCB components. With today's supply chain issues, you'll want to make sure you have enough parts before committing to a design. Board Layer StackupSpecific board layer stack-ups are required for high-speed designs to aid in EMI shielding and signal integrity, The primary concern is to include a complete and continuous ground plane on an internal layer. Many boards will also have multiple ground plane layers spread across the board stack up to accommodate multiple layers of transmission line routing in microstrip or stripline configurations. The board layer stack-up must be created in the PCB CAD database or imported from another source. This is where the ability of PCB design systems to communicate directly with the vendor for stack-up information exchange, as demonstrated in the video above, can be extremely useful. Design RulesPCB design systems typically include a comprehensive set of design rules and constraints that can be applied to the design. Component and net classes will already be used in standard circuit board designs to specify spacing rules, trace widths, vias, and other constraints. With a high-speed design, a completely new set of rules should be established, including:Differential pairsSignal pathsRouting topologiesMeasured and matched trace lengthsTrace tuning parameters These rules can be set up for each design, or in many cases, imported from another layout to ease the designer’s workload. System ParametersThe parameters are the last but not least of the setups. Display parameters such as colors and fill patterns, grids, routing preferences, and a slew of others are among them. Designers can improve their tool efficiency by managing these parameters, Let's start laying out the board now that we've completed the high-speed design.Figure5: A PCB CAD system’s parameter setup menu for design colors Ⅷ Floorplanning a High Speed PCBIn a high-speed PCB layout , there are no specific rules or standards for where components should be placed. In general, the largest central processor IC should be placed near the center of the board because it will typically need to interface with all other components on the board in some way. Smaller integrated circuits (ICs) that connect directly to the central processor can be placed around the central IC to keep routing between components short and direct. Peripherals can then be added to the board to provide the necessary functionality.When the main controller IC is near the center of the board, and other high-speed peripherals are placed around it, the high-speed layout works best. This is one of the reasons why motherboards have a large processor in the center of the board. The Altium Designer MiniPC project has its PCIe, DDR4, USB 3.0, and Ethernet peripherals arranged around the central FPGA SoC to facilitate routing.Figure6: high-speed PCB layoutOnce your components are in place, you can use your design tools to begin routing your design. This is a critical aspect of high-speed board design because incorrect routing can compromise signal integrity. However, if the preceding steps were followed correctly, signal integrity is much easier to achieve. Set your impedance profile in your PCB design rules so that all routers in the design have the proper width, clearance, and spacing to maintain controlled impedance during routing. Ⅸ How to Tell If Your Project is High SpeedThere are a couple of schools of thought on this. The unfortunate reality is that there is no specific definition of what constitutes a high-speed PCB. It all comes down to a case-by-case assessment. As previously stated, if you're experiencing signal integrity issues on your PCB layout. it's a good indication that you're working on a high-speed project.There's also the device-specific approach to consider. You'll be working on a high-speed project if you're designing a motherboard, cell phone board, or DSL router board. If you need to incorporate specific technologies into your layouts, such as HDMI, PCI Express, USB, or SATA, be aware that you will be dealing with high-speed design constraints.Figure7: Do you believe your design has a lot of traces? Take a look at this high-speed layout The final point to consider is whether you're working on a design with lumped or distributed circuits. What's the distinction? Designs with physical systems that are all small enough that they interact uniformly are referred to as lumped systems and are not fast. However, if your systems all operate independently within the confines of a larger whole, you have a distributed system and some high-speed design issues to deal with.Here is what you should remember:When the trace length becomes a significant fraction of the wavelength of the fastest signal, high-speed design considerations need to be considered.ⅩFAQ1. What is considered high speed design?High speed design specifically refers to systems that use high speed digital signals to pass data between components. The dividing line between a high speed digital design and a simple circuit board with slower digital protocols is blurry.2. What is high speed design Altium?High-Speed Design in Altium Designer. High-speed printed circuit board design is a process of balancing the circuit design requirements, device technologies, and fabrication materials and methodologies, to deliver a PCB that can transfer signals between the components, with integrity.3. What are high speed interfaces?High-Speed Serial Interface (HSSI) is a short-distance (50') communications interface that is used to interconnect routing and switching devices on slower local-area networks (LANs) with the higher-speed lines of a wide area network (WAN).4. What is high frequency PCB?High Frequency PCB is a type of PCB which is widely used in applications involving special signal transmission between objects. It is available in frequency range of 500MHz to 2GHz and is an ideal choice for mobile, microwave, radio frequency and high speed design applications.5. What is high speed signal in PCB?What is a high-speed signal in a PCB? Signals with frequencies ranging from 50 MHz to as high as 3 GHz are considered high-speed signals such as clock signals. Ideally, a clock signal is a square wave, but it is practically impossible to change its 'LOW' level to 'HIGH' level (and vice versa) instantly.
kynix On 2021-12-31
Introduction Do you use Raspberry Pi? or What are doing with it? Is it a microcontroller (MCU for microcontroller unit) or microcomputer? or SoC (system-on-chip)? As a beginner, is it better to buy a microcontroller or a Raspberry Pi? Look at the following content. Raspberry Pi Explained Catalog Introduction Ⅰ Basic Definition Ⅱ Raspberry Pi vs MCU Ⅲ What Can We Do with Raspberry Pi? Ⅳ Where do I start to Learn Raspberry Pi? Ⅴ FAQ Ⅰ Basic Definition Raspberry Pi is actually a tiny embedded computer. It uses ARM microcontroller chip, and linux operating system or windows. It can regard as a small desktop computer when connects with a monitor, keyboard, and network (network port or wifi). With the release of Windows 10 IoT, Raspberry Pi can also run Windows.The single-chip microcomputer refers to the central processing unit core with some peripheral interface circuits on it, which is also called the microcontroller unit (MCU), or SoC. 8051 chips, avr chips, arm chips, etc. are all called single-chip microcontrollers, while Intel’s 80x86 series are central processing unit (CPU) and cannot be called MCU.It uses very large-scale integrated circuit technology to integrate the central processing unit CPU with data processing capabilities, RAM, ROM, multiple I/O ports and interrupt systems, timers/counters and other functions (may also include display driving circuits, pulse width modulation circuits, analog multiplexers, A/D converters and other circuits) are integrated on a silicon chip to form a small and complete microcomputer system. It is widely used in the field of industrial control. Figure 1. Raspberry Pi Setting Ⅱ Raspberry Pi vs MCU Next, let's take a look at the difference between the Raspberry Pi and the MCU and introduce in detail what can we do with the Raspberry Pi?The single-chip microcomputer is an microcontroller, and the Raspberry Pi is a single-board computer with arm-architecture processor. Early MCUs were peripherals for ROM and IO with slow speed, and it could not run time-sharing operating systems such as Linux or Windows. But the Raspberry Pi can run an operating system like Linux, or deploy servers or cloud computing. That is, the Raspberry Pi can perform many operations that cannot be done by a single-chip microcomputer.The size of the single-chip microcomputer is relatively small, and the internal chip is used as a computer system. Its structure is simple, but the function is perfect, it is very convenient to use, and it can be modularized. The most important thing is that although the development cycle of the single-chip microcomputer is relatively short, it is basically based on a specific task and the code must be re-programmed every time, which is very troublesome.The Raspberry Pi is actually a computer motherboard. It can be programmed, compiled, and run directly locally. If you want to add or delete functions to the original program, or switch from the current task to a different new task, you do not need to burn programs like a single-chip microcomputer according to different tasks or updates. Use Raspberry Pi to control peripherals by operating GPIO basically through various libraries, and if you connect it to the Internet, you can operate it remotely. Figure 2. Raspberry Pi GPIO In general, each has its own advantages. The MCU is cheap and suitable for general consumer products. After all, the Raspberry Pi is a card-type computer with an embedded operating system running on it. That is, a low-power general-purpose computer. For electronic geeks, the back-end data processing and GUI for complex control systems are still very good for satisfying embedded learning. Ⅲ What Can We Do with Raspberry Pi? After reading the above, since Raspberry Pi has the features of a computer, this means you’re able to do most things a desktop computer can do such as document editing, playing HD video, playing games, coding and much more.Obviously it won’t have as much power as a desktop PC but since it is a lot cheaper they make for great little computers you can play around with.Here lists some items you can do:1) Wireless HotspotUsing the Internet cable and USB wireless network card, after configuration, it can be used as a wireless hotspot.2) Mechanical ProsthesesMIT Media Lab researchers use it as a controller for mechanical prostheses.3) Easy Homemade NotebookConnect the Raspberry Pi to the LCD panel, add the mouse, keyboard and power supply, and find a beautiful case and put it on, finally it becomes a simple homemade notebook.4) WiFi CarAn IBM engineer installed it on a model car, and then used WiFi signals to control the car’s actions.5) Send Dynamics RemotelyWeather enthusiasts tied it to a detection balloon and used it to send a tweet in the stratosphere.6) Control Door SwitchThere are also people who use the Raspberry Pi to control the garage door and combine it with Siri to remotely control the garage switch.7) Surveillance ShootingA camera is connected as a small shooting device, which is small in size and easy to hide.8) Back Up EmailsOne of the most important functions of my Raspberry Pi is to back up emails. Use a software called getmail to check every mail using POP or IMAP protocol, and check the mail of each account regularly. Then save the email to an mbox file, which can be copied to another computer at any time for long-term email archiving.9) Build a RSS ReaderMiniflux, a self-hosted web-based RSS client that can be installed on the Raspberry Pi. Like many people, when Google announced that it would close Google Reader on July 1st, I also started to migrate personal data. I used rss2email for a while and let it send every item of RSS to my mailbox. But in fact, I don't like this method very much, so I spent some time looking for alternatives to Google Reader and tried rss2email and found miniflux finally. Installing miniflux on the Raspberry Pi is very simple, you only need to install PHP and a web server software in advance, such as nginx or Apache.10) Build a WebsiteOne obvious use of Raspberry Pi is as a backend server for websites. Because it has enough capacity to handle static websites, some web frameworks are not a problem. I built a Flask framework on it, and I even heard that some people built a Wordpress directly on the Raspberry Pi.11) Home Network StorageOnly consumes very low power, Raspberry Pi can become a perfect NAS (Network Attached Storage). Before I connected a 500GB laptop hard drive to the Raspberry Pi and installed an operating system on it. I can store many files on it that need to be transferred between different computers. Then connect via SFTP, you can access it on any machine at home (even if you are not at home, it will not be a problem as long as the routing settings are correct). You can also install Samba on your Pi so that both Mac and PC can access it more easily.12) Site MonitoringUse Raspberry Pi is to detect websites that are important to me. I wrote a Python script and ran it regularly to make sure that these websites responded with a 200 status code (which means everything is normal). If the script determines that there is a problem with the website or cannot be accessed, it will email me the overall situation of the incident. The Python module I use is Requests, and the email module is smtplib.13) Event ReminderUse Raspberry Pi to email me important events that I need to remember. I used Google Calendar before, but I only use it for simple events. So I replaced it with a Raspberry Pi, and a Python script for timed tasks is enough. I set the date, time, and message to remember. These parameters will be passed to my Python script, and on that day it will send the message to my mailbox to remind me of the day’s events.14) Family AlbumMy Raspberry Pi also supports a private website that contains all my family photos. I set up verification information so only people I want them to see can enter the site. This is much more reliable than your Facebook photo album, because your account on Facebook may be deleted, and the photos will be seen by strangers by chance. Here is a method, just use PHP to get the photos in a folder on the Raspberry Pi.15) JukeboxI mentioned above that I use Pi as a network storage, so all my music is also on it. I connected a stereo speaker to my Pi and used mpg123 to play music on the command line of the Raspberry Pi. Although there are many other mp3 players and graphical interfaces, I still choose mpg123 because it is easy to install and use. Figure 3. Raspberry Pi Projects Ⅳ Where do I start to Learn Raspberry Pi? If you are really interested in it and want to get started. How, and what do you need? 1) A Raspberry Pi. So, obviously you’ll need he actual board. If you don’t have it, you cant really do what you want. So find a website or store and buy one. Depending on the type and model you get, they can range from as low as 10$ to 50$. Pretty affordable.2) A monitor. So, you don’t actually need a monitor. But it is going to be so much easier. You can actually buy displays the Pi company has made specifically made for the Pi. These however are a little more expensive.You could also use your TV as a monitor, providing both the TV and the Pi can be hooked up via HDMI. VGA to HDMI would work too. Many different solutions can be used when it comes to the cable you use for a monitor, or all around screen. Adapters come in all shapes, sizes and forms. 3) A power source. You’ll need to power the Pi to use it. Most of the time, you will get a little charger to use with the Pi. Using this specific charger will probably be the best, as it will always pull enough power from the wall into your Pi.4) A mouse, and keyboard. You will need a mouse and keyboard. This is pretty much mandatory. Well, only for the actual screen portion of the Pi. Models 3 B+ and up have built in Bluetooth, so you can have cordless mouse and keyboard if you would like. That’s pretty cool.5) Depending on the model, you will need an Ethernet cable to have internet. Models 3 B+ and up have a built in WiFi chip. So you can have a wireless internet connection if you so please.6) A microSD card with the image you want to use. When you buy the Pi, you will need to have an SD card. The newer models use microSD cards. Putting the SD card into the Pi without anything on it wont do anything though, you'll need an image. Images for the Pi can be found along the internet for downloads. The standard image used for the Pi right now is NOOBS Debian.7) Time, patience and dedication. These are very important when working with the Pi. Why? Because the Pi is powerful, yet it can be confusing at times, especially for a “noob”. Ⅴ FAQ 1. What is Raspberry Pi mainly used for?The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. 2. What are some good Raspberry Pi projects?Best Raspberry Pi Projects for BeginnersMusic Streaming.Security System.Weather Station.Arcade Machine.NAS.Digital Photo Frame.Retro Handheld Console.Robot. 3. Can a Raspberry Pi run Windows?The Raspberry Pi 4 can handle Microsoft Edge, the calculator app, and more, all via the power of Windows 11. It can even run Minecraft, albeit in an undesirable state. 4. Can Raspberry Pi go on Internet?If you want to connect your Raspberry Pi to the internet, you can plug an Ethernet cable into it (if you have a Raspberry Pi Zero, you'll need a USB-to-Ethernet adapter as well). If your model is a Raspberry Pi 4, Raspberry Pi 3, or Raspberry Pi Zero W, you can also connect to a wireless network. 5. How do I setup a Raspberry Pi network?Configuring the Raspberry Pi Ethernet Port With a Static IP.Step 1: Review Current Network Settings.Step 2: Backup the Current Network Configuration.Step 3: Modify the Network Settings. To edit the network setting you must edit the dhcpcd.Step 4: Restart the Raspberry Pi.Step 5: Test the New Network Setup. 6. How is Raspberry Pi different from microcontroller?The main difference between them is: Arduino is microcontroller board, while Raspberry Pi is a microprocessor based mini computer (SBC). The Microcontroller on the Arduino board contains the CPU, RAM and ROM. 7. Is Raspberry Pi zero a microcontroller?A Raspberry Pi is not a microcontroller, it is a single board computer. Neither. The chip itself is an SOC or system on chip, so it has almost all the parts of a computer on a single die. 8. Is the Raspberry Pi a system on a chip?Raspberry Pi SBCs feature a Broadcom system on a chip (SoC) with an integrated ARM-compatible central processing unit (CPU) and on-chip graphics processing unit (GPU), while Raspberry Pi Pico has a RP2040 system on chip with an integrated ARM-compatible central processing unit (CPU). 9. Can you use a microcontroller with a Raspberry Pi?Meet the Raspberry Pi Pico, a tiny little microcontroller that lets you build hardware projects with some code running on the microcontroller. Unlike computers, microcontrollers don't run traditional operating systems. 10. Is Raspberry Pi 3b a microcontroller?The Raspberry Pi is a single board computer with Microprocessor whereas Arduino is considered as Microcontroller unit. The Raspberry Pi can run an OS (Linux Distribution) and also consumes more power. Since Arduino is microcontroller device it has no operating system and can only run a single program or sketch. 11. What is Raspberry Pi used for in IoT?How can IoT Applications use Raspberry Pi? With an in-built quadcore processor, Raspberry Pi can serve as the “Internet Gateway” for IoT devices. Powered by a cloud network, Pi acts as a web server for uploading and transiting sensor data on IoT platforms. 12. What is the difference between microprocessor and microcontroller?KEY DIFFERENCESMicroprocessor consists of only a Central Processing Unit, whereas Micro Controller contains a CPU, Memory, I/O all integrated into one chip. ... Microprocessor uses an external bus to interface to RAM, ROM, and other peripherals, on the other hand, Microcontroller uses an internal controlling bus. 13. What kind of computer is Raspberry Pi?The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. 14. Can I use a Raspberry Pi as my main computer?Aside from the hard drive crash, the Raspberry Pi was a perfectly serviceable desktop for web browsing, writing articles, and even some light image editing. ... 4 GB of ram is just enough for a desktop. My 13 Chromium tabs, including a Youtube video, are using just over half of the 4 GB of available memory. 15. Which OS is better for Raspberry Pi?Raspbian. Raspbian is a Debian-based engineered especially for the Raspberry Pi and it is the perfect general-purpose OS for Raspberry users.
kynix On 2021-12-30
Introduction In most robots, electricity is used for command, control, and at least one stage of actuation. Electronics are used to transport all of this electricity. Robot baby is a new high-tech bionic robot created by American researchers. There is a huge selection of pre-manufactured, standard commodity components available. Discrete components such as resistors, capacitors, and transistors; small-scale integrated circuits such as op-amps, timing chips, and motor controllers; and large-scale integrated circuits such as memory chips, digital RF receivers, and full-fledged microprocessors with billions of transistors on a chip are examples of these. Even entire computer systems are sometimes viewed as modular components. As a result, many different types of robots, including robot babies, were invented. Catalog Introduction I What is the Robot Baby? II The Robot Baby Related Video III Common Sensors Used in Robots IV Composition Structure V The Differences between General Robot and Robot Baby 5.1 General Robot 5.2 Robot Baby VI The Convenience of Baby Simulator VII The Development Goals of Robot Baby Ⅷ The Influence of Robot Baby Ⅸ FAQ I What is the Robot Baby? Robot baby is a new high-tech bionic robot created by American researchers. It is named "Diego SAN" after a one-year-old baby. It was created by Hanson robotics professionals for the Machine Perception Laboratory at the University of California, San Diego 's Institute for Neural Computing. The robot baby includes a high-resolution camera that can detect people's facial emotions. It, like a genuine infant, can make a range of facial expressions, such as smiles, mugs, and frowns. He even bites his lower lip like a child and tears well up in his eyes. Just by looking at the faces, it's difficult to distinguish the difference between this synthetic child and the actual thing. For example, joy, sadness, terror, and perplexity. It will not vomit food or wet clothes like a real baby, but the robot baby is clever enough to exhibit true infant facial expressions. II The Robot Baby Related Video Video: Engaged Couples Raise Robot Babies Robot Baby Description: Reality Works for providing the RealCare Baby Simulators and support. You will know how to take care of the real baby by the robot baby. III Common Sensors Used in Robots Robotic sensors are used to estimate the status and environment of a robot. Sensors enable robots to comprehend and quantify the geometric and physical qualities of objects in their surroundings, such as location, orientation, velocity, acceleration, distance, size, force, moment, temperature, brightness, weight, and so on. 1 Light Sensor detect light and generate a difference in voltage. 2 Temperature Sensor Detect the surrounding temperature change. 3 proximity Sensor Create a technique for the robot to avoid collisions 4 Navigation and Positioning Sensors Approximate the position of a robot. 5 Sound Sensor A microphone that detects and returns the equivalent voltage of sound. 6 Tactile Sensor A device specifying an object’s contact. 7 Acceleration Sensor A gadget used to measure acceleration and tilt Figure1 Common Sensors Used in Robots IV Composition Structure Human beings are composed of five key components at the most fundamental level: A bodily structure;A muscle system for moving the body structure; and a sensory system for receiving information about the body and its surroundings.A source of power to stimulate the muscles and sensors;A brain system that interprets sensory data and instructs the muscles on what to perform. Furthermore, while humans have intangible qualities such as intelligence and morality, the list above pretty much covers it on a physical level. The configuration of the robot infant is odder. V The Differences between General Robot and Robot Baby 5.1 General Robot The great majority of robots do share some characteristics. To begin with, almost all robots have a moving body. Some contain merely powered wheels, while others include dozens of movable parts composed of metal or plastic. Individual segments, like bones in your body, are joined together by joints. Figure 2 Fujitsu's HOAP-1 robot PHOTO COURTESY FUJITSU AND K&D TECHNOLOGY, INC. Robots use actuators to spin wheels and pivot jointed components. As actuators, some robots employ electric motors and solenoids, while others use a hydraulic system or a pneumatic system (a system driven by compressed gases). Robots can use any of these actuator types. All of the actuators are connected to an electrical circuit. The circuit provides direct power to electrical motors and solenoids, as well as activating the hydraulic system through the use of electrical valves. The course of the pressured fluid through the machine is determined by the valves. To move a hydraulic leg, for example, the controller of the robot would open the valve connecting the fluid pump to a piston cylinder attached to that leg. The compressed fluid would cause the piston to extend, causing the leg to swivel forward. To move their segments in two directions, robots often use pistons that can push in both directions. Figure 3 NASA's Urbie climbing stairs PHOTO COURTESY NASA JPL Everything connected to the circuit is controlled by the robot's computer. To move the robot, the computer activates all of the necessary motors and valves. Most robots can be reprogrammed, which means that you can change the robot's behavior by simply writing a new program to its computer. A typical design incorporates slotted wheels that are attached to the joints of the robot. A light beam is transmitted through the slots by an LED on one side of the wheel to a light sensor on the other side. When the robot moves a specific joint, the slotted wheel rotates. The light beam is disrupted as the wheel turns. The light sensor detects the flashing light pattern and transmits it to the computer. Based on this pattern, the computer can determine how far the joint has swiveled. The same basic mechanism is employed in computer mice. 5.2 Robot Baby Unlike ordinary robots, robot babies are enhanced in a variety of ways. They not only have the same appearance as real babies, but they can also select the skin tone of other countries. Facial expressions play a vital role in how babies connect with the outside world, assisting them in developing relationships with others. The robot infant is an improvement above previous versions of the technology, which completely reassembles its jaw. figure 4 “Diego San”- a baby robot confused (left),happy (middle) and crying (right) Hanson Diego-san was created in 2013 by the robotics businesses Hanson Robotics and Kokoro for UCSD. Experts are now using Diego to find out how babies get their mothers to smile at them so regularly. When the Hungarian-American mathematician John von Neumann proposed the concept of an autonomous robot capable of recreating itself using raw materials. Today, Neumann's vision is becoming a reality, with one notable exception: the self-replicating robot is not made of aluminum, plastics, spur gears, or sprockets. The parent robot and its offspring, a new lineage of organisms known as Xenobots, are totally biological. "It was fascinating to find that we could [create] this Von Neumann machine, but utilizing cells instead of robot parts," says co-author Sam Kriegm of Harvard and co-author of the Xenobots research published today in PNAS. Scientists construct the first 'living' devices that can reproduce. A Computer scientist at the Wyss Institute for Biologically Inspired Engineering "People have philosophized about this for a long time," says Joshua Bongard, senior author and computer scientist at the University of Vermont. "However, you may now conduct experiments to develop biological machines or machines that create biology, which in turn creates machines." It's acceptable to be perplexed. Xenobots are referred to as "machines" despite the fact that they lack any mechanical components. Science may be evolving faster than our paradigm for discussing and even imagining this new category of machine life. "I think it challenges us to recognize that there may not be a clear dividing line between machine and organism," Bongard adds. VI. The Convenience of Baby Simulator RealCare Baby® 3 (formerly known as Baby Think It Over® or BTIO®) is the most advanced baby simulator on the market. What does RealCare Baby mean to the educators who use this learning aid in their classrooms? We asked teachers from across the country what RealCare Baby means to them. Watch this video to hear what they told us, and why they value RealCare Baby as a training tool and learning aid for life and career skills. What RealCare Baby Means to Educators The baby simulator successfully depicts how time-consuming and hard parenthood can be. These lifelike, newborn-size manikins are ideal for usage with teenagers since they have a number of program settings that imitate an infant's fluctuating requirements and require fast response. The unexpected nature of the programmed activities demonstrates that a baby's demands do not follow a defined schedule, but are easily monitored by the facilitator. Any prenatal education program will benefit from the baby simulator. Wriggling, squirming, Moro reflex-induced jump... Look no further than this automaton for proof that artificial intelligence is thriving. Cries, coos, and burp;Abuse of records, panic, and tampering;The regular control box comes with one pair of user keys and one set of teacher keys, as well as user response sheets, a teacher correction template, a diaper, a 9V battery, and instructions. VII The Development Goals of Robot Baby Artificial intelligence that replicates robot baby behavior could assist a baby in learning from everything it encounters, just like a child does. Facial expressions are a crucial aspect of baby communication because they help babies form bonds with those around them. It is critical to educate robots on empathy by teaching them to understand human behavior and have facial emotions. Dr. Hansen's goal is to build robots that are more intelligent and sympathetic toward humans, and he believes that such emotional expression is far more important than building combat robots. The ultimate goal is for machines to feel and, more significantly, to sympathize. Ⅷ The Influence of Robot Baby Educators all over the world utilize this one-of-a-kind learning tool to teach early childhood, parenting, baby health, and sex education. This smart baby provides meaning and accountability by tracking and reporting on caregiver behavior via wireless programming. Care events, mishandled acts, time in a vehicle seat, and outfit changes are all tracked behaviors. Robot baby includes four sets of curriculum and activities to help instructors create relevant and career-focused learning experiences. The development of the robot baby is critical for scientists studying the human nervous system and doing neural computing. Although researchers acknowledge that many people will be concerned about robot babies that can build more of themselves, they feel that understanding the technology will lead to numerous benefits in the long run. Ⅸ FAQ 1.How much does a robot Baby cost? The robots, which start at $749, are used in two-thirds of American school districts, according to the manufacturer, Realityworks. One of the benefits of the robots is meant to be the reduction of teen pregnancy, but there is little evidence that they work. 2.How does a real care Baby work? Easy operation: Baby is totally wireless. Users wear an electronic ID on a wristband that ensures RealCare® Baby 3 detects their presence. Rechareable, 6 hours charge will give 7 days operation. Realistic care: Baby requires feeding, burping, rocking and nappy changing. 3.Why do people use fake babies? Some consumers of reborn dolls use them to cope with their grief over a lost child (a memory reborn), or as a portrait doll of a grown child. Others collect reborns as they would regular dolls. These dolls are sometimes played with as if they are an infant. 4.What class gives you a fake baby? RealCare Baby® 3 (formerly known as Baby Think It Over® or BTIO®) is the world's most advanced infant simulator. Educators around the world use this unique learning aid to teach early childhood, parenting, infant health lessons, and sex education. 5.How much does an infant simulator cost? A proper response involved turning a key in its back and holding it for a while. Today, the RealCare Baby 3 infant simulator is a fantastically sophisticated, computer-programmed doll that costs up to $1,000 to replace if you lose it 6.What are the codes for baby simulator? Baby Simulator Codes (Available) PET - Redeem for reward (NEW)Coinsbaby - Redeem for 500 Coins.YAY - Redeem for 2,000 Happiness.Gems - Redeem for 250 Gems.Xmas - Redeem code for 200 Snowflakes.Snow - Redeem code for 50 Snowflakes.Snowing - Redeem code for 150 Snowflakes.Gem20 - Redeem code for 20 Gems. 7. Are the real care baby wristbands waterproof? The bracelets are also tamperproof, ensuring the designated student is completing the simulation.
Lydia On 2021-12-30
Ⅰ Introduction What exactly is a microprocessor? As our lives are becoming increasingly tech-centric and thus tech-dependent, we have to examine this critical component closely. After all, microprocessors are built into computers, laptops, and smartphones, as well as smart home devices, gaming consoles, and self-driving cars. Microprocessors are what allow these devices to function. In this blog, we will discuss microprocessor basics and their applications across industries. Catalog Ⅰ Introduction Ⅱ What is a Microprocessor? Ⅲ Microprocessor Related Video: Ⅳ Features of Microprocessor Ⅴ Evolution of Microprocessors Ⅵ Microprocessor Types Ⅶ Characteristics of CISC and RISC Ⅷ Differences Between CISC and RISC Ⅸ Applications of Microprocessor 9.1 Practical Diagram Examples Ⅹ Microprocessor vs. Integrated Circuit--What’s the Difference? Ⅺ FAQ Ⅱ What is a Microprocessor? A microprocessor is a Central Processing Unit (CPU) built on a single Integrated Circuit (IC) in a computer. A microcomputer is a digital computer with one microprocessor that serves as the CPU. It is a programmable, multipurpose, clock-driven, register-based electronic device that reads binary instructions from memory, accepts binary data as input, processes data according to those instructions, and outputs the results. The microprocessor is composed of millions of tiny components that work together, such as transistors, registers, and diodes. Figure1:Block Diagram of a Microcomputer A microprocessor contains three parts: an ALU , a control unit, and a register array. The ALU performs arithmetic and logical operations on data from an input device or memory. The control unit manages the computer's instructions and data flow. Furthermore, a register array is composed of registers denoted by letters such as B, C, D, E, H, L, and accumulator. Ⅲ Microprocessor Related Video: How to easily use HMC5883L Compass Sensor Microprocessor Video Description: In this video, we will understand the difference between microprocessor and microcontroller. Visually both microprocessor and microcontroller almost look identical but they are different in many aspects. They are different in terms of the application in which they are used, processing power, memory, cost and power consumption. So, in this video, you will understand the difference between microprocessor and microcontroller in all these aspects. Ⅳ Features of Microprocessor Ⅴ Evolution of Microprocessors We can classify microprocessors based on generation or size: First Generation (4 - bit Microprocessors ) Intel Corporation introduced the first generation of microprocessors in 1971-1972. Because it was a 4-bit processor, it was dubbed the Intel 4004 . It was a single-chip processor. It was capable of performing basic arithmetic and logical operations such as addition, subtraction, Boolean OR, and Boolean AND. I had a control unit that could fetch an instruction from storage memory, decode it, and then generate control pulses to execute it. Second Generation (8 - bit Microprocessor) Intel introduced the second generation of microprocessors in 1973. It was the first eight-bit microprocessor capable of performing arithmetic and logic operations on 8-bit words. It was known as the Intel 8008 , and an improved version was known as the Intel 8088 . Third Generation (16 - bit Microprocessor) The third generation microprocessors, introduced in 1978, were Intel's 8086, Zilog Z800, and 80286, which were 16-bit processors with minicomputer-like performance. Fourth Generation (32 - bit Microprocessors ) The 32-bit microprocessor was introduced by several companies, but the most popular is the Intel 80386. Fifth Generation (64 - bit Microprocessors) From 1995 to the present, we have been in the fifth generation. Following 80856, Intel released a new processor, the Pentium processor, followed by the Pentium Pro CPU. which enables multiple CPU s in a single system to achieve multiprocessing. Celeron, Dual, Quad, and Octa-Core processors are also improved, 64-bit processors. Ⅵ Microprocessor Types Microprocessors are classified into three types: CISC (Complex Instruction Set Computer) The instructions are in a complex format, as the name implies. This means that a single instruction can contain several low-level instructions. Loading data from memory, storing data in memory, performing basic operations, and so on. Furthermore, a single instruction can have multiple addressing modes. Furthermore, because there are many operations in a single instruction, they use a small number of registers. Intel 386, Intel 486 , Pentium, Pentium Pro, Pentium II, and other CISC processors are examples. RISC (Reduced Instruction Set Computer) As the name implies, the instructions in this are quite simple, and thus they execute quickly. Furthermore, the instructions are completed in a single clock cycle and only use a few addressing modes. Furthermore, it employs multiple registers, resulting in less interaction with memory. Examples include the IBM RS6000, DEC Alpha 21064, DEC Alpha 21164, and others. EPIC (Explicitly Parallel Instruction Computing) It enables parallel computation of instructions through the use of compilers. Furthermore, the complex instructions operate at lower clock frequencies. It also encodes the instructions in 128-bit bundles. Each bundle contains three instructions encoded in 41 bits each, as well as a five-bit template. This 5-bit template specifies the type of instructions and which instructions can be executed concurrently. Ⅶ Characteristics of CISC and RISC Characteristics of CISC are as follows: Because the instructions are complex, so is the decoding of instructions.The size of instructions is larger than the size of a single word.It is possible for an instruction to take more than one clock cycle to execute.Because most operations are performed in memory, the number of registers is reduced.Address modes are also complicated.There are more data types. Characteristics of RISC are as follows: Because the instruction is simple, so is the decoding of instructions.The size of the instructions is less than one word.It takes one clock cycle to execute an instruction.The number of registers has increased.The address modes are also straightforward.There are fewer data types.It has the potential to be used for pipelining. Ⅷ Differences Between CISC and RISC RISCCISCIt focuses on the software.It focuses on the hardware.Uses the hardwired control unit.It uses a hardwired as well as a microprogrammed control unit.Uses transistors for more registers.Transistors are used for storing the complex instructions.The instructions have a fixed size.The size of instructions vary.It performs only register to register arithmetic operations.Besides the register to register operations, it can also perform register to memory or memory to register operations.Fewer registers are used.It requires more number of registers.As the instructions are individual the code is large.Multiple operations are present in single instruction hence, the code is small.Executes in one clock cycle.Takes more than one clock cycle for execution.Instructions have a size of one word.The size of instructions is greater than the one-word size.Examples are IBM RS6000, DEC Alpha 21064, DEC Alpha 21164, etc.Examples of CISC are Intel 386, Intel 486, Pentium, Pentium Pro, Pentium II, etc. Ⅸ Applications of Microprocessor Household DevicesIndustrial Applications of MicroprocessorsTransportation IndustryComputers and ElectronicsIn MedicalsInstrumentationEntertainmentEmbedded Systems at HomeOffice Automation and PublicationCommunication 9.1 Practical Diagram Examples As stated by the term microprocessor typically refers to a microcomputer's central processing unit (CPU), which contains the arithmetic logic unit (ALU) and control units. Typically, it is implemented on a single LSI chip. This separates the operation's "brains" from the rest of the computer's units. An example of microprocessor architecture The arithmetic logic unit (ALU) and the control unit for a microcomputer are housed in the microprocessor. It is linked to memory and I/O via buses, which transport data between the units. Figure2: microprocessor architecture Microcomputer Example A microprocessor unit (MPU), a clock, and interfaces to memory and external input/output devices are typical components of a microcomputer. The units are linked by buses that transfer data between them. Figure3: Microcomputer Buses: The exchange of information Information is transferred between microcomputer units via buses, which are groups of conductors. Each bit of information to be passed will have one conductor, e.g., 16 lines for a 16-bit address bus. Address, control, and data buses will be present. Figure4: microcomputer units via buses Ⅹ Microprocessor vs. Integrated Circuit--What’s the Difference? Integrated Circuit An integrated circuit is a semiconductor chip component that contains thousands to billions of transistors. It's difficult to imagine how this is possible, but it's not done by shrinking scores of typical 3-legged NPN transistors. An integrated circuit is instead constructed by assembling the basic structure of MOS transistors on a small piece of the silicon wafer. The MOS transistors are connected in such a way that they perform the same function as a larger setup. Microprocessor An integrated circuit is a microprocessor, but not all integrated circuits are microprocessors. The microprocessor, like Professor X, is an intelligent piece of integrated circuits. It serves as the brain of circuits that require computing power. The first microprocessors had thousands of transistors on a silicon wafer, but the number has now reached billions. The AMD Epyc Rome chip, which was released in 2019, contains over 39 billion transistors. A microprocessor, unlike other integrated circuits, serves as a computing brain. It can execute logical and arithmetic instructions that have been programmed into it. A microprocessor is made up of three parts: an arithmetic and logic unit (ALU), a control unit. and a register array. Microprocessor vs. Integrated Circuit in Electronics Design Figure5: Mind the speed when working with a microprocessor. In electronics design, you're likely to work with integrated circuits. Working with a microprocessor can be a herculean task on occasion. It's a mistake to think that designing with a microprocessor is the same as designing with traditional integrated circuits. If you skip a couple of best practices in PCB design, you can still create a successful design if you're working with common ICs like differential transceivers or logic gates. In terms of power supply and speed, these passive ICs are typically quite robust. However, if you make the same mistakes in a design with a microprocessor, you will almost certainly encounter a slew of problems in the prototype. Microprocessors are notoriously power-hungry devices that typically operate at hundreds of Hertz or Gigahertz. It should go without saying that a microprocessor is extremely sensitive to the voltage applied to it. Ripples or a sudden drop in voltage can have a significant impact on the microprocessor's stability. Because the microprocessor communicates with memory via high-speed data buses, EMI is also a concern. High-speed data exchange can be a source of EMI, affecting nearby sensitive components. When designing with a microprocessor, you can't afford to make even the smallest mistake, so using the right PCB design and analysis software is essential. Cadence OrCAD supports high-speed signal simulation to identify problems early in the design process, as well as a plethora of other tools to help you get the job done right the first time. Ⅺ FAQ 1. What is microprocessor in simple terms? A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. 2. Are microprocessors used today? One or more microprocessors are used today in everything from the smallest embedded systems and handheld devices to the largest mainframes and supercomputers. 3. Are microprocessors in phones? Smartphones and other mobile devices have multiple microprocessors and microcontrollers. The main processor is a microprocessor with a bus to communicate with memory on separate chips (although often included in the same IC package) and buses to communicate with the rest of the equipment. 4. Do phones have RAM? Android phones have jumped from 4GB to 8GB RAM as standard, and we're now seeing phones with 12GB and 16GB of RAM — but Apple's iPhone has always gotten by with less. 5. How do microprocessors execute instructions? The instructions which are to be executed by microprocessor are first stored in the memory of the processor and then executed. But the processor does not execute the instructions directly. It reads the instruction byte by byte and then executes it. 6. What is microprocessor chips? Microprocessor chips (MPU) are silicon devices that serve as the central processing unit (CPU) in computers. They contain thousands of electronic components and use a collection of machine instructions to perform mathematical operations and move data from one memory location to another.
kynix On 2021-12-29
IntroductionThe Raspberry Pi is a small and powerful computer that you can use to learn programming through fun, practical projects. It is designed for encouraging people in computing and creating easier access to computing education. Pi is a microcomputer and its size is like a credit card. Its system is based on Linux and has all functions such as video and audio. With the release of Windows 10 IoT, we will also be able to use the Raspberry Pi on Windows.Raspberry Pi - All You Need To KnowCatalogIntroductionⅠ Who Invented the Raspberry Pi?Ⅱ Different Pi Versions2.1 Early Stage2.2 Pi Model B vs Pi Model B+2.3 Pi 22.4 Pi 2 Model B vs Pi Model B2.5 Pi 3 Model B2.6 Pi 4 Model B vs Pi 3 Model B+2.7 Pi 4 Model B Rev1.2 (8GB RAM Version)Ⅲ What can I do with Raspberry Pi?Ⅳ Raspberry Pi Programming Language4.1 Python4.2 C Language4.3 Java/BlueJ4.4 PERL4.5 ScratchⅤ Guide for Beginners: Use Raspberry Pi to Control LED Lights5.1 Model Selection5.2 Accessories5.3 Electronic Components5.4 System Installation5.5 SSH Login In5.6 Install Node5.7 Light LED5.8 LED Control Script5.9 HTTP ServerⅥ FAQⅠ Who Invented the Raspberry Pi?The Raspberry Pi was developed by the Raspberry Pi Foundation, an British charity. In March 2012, Eben Upton of the University of Cambridge officially launched the world’s smallest desktop computer, also known as a card computer, which has all the basic functions of a computer. This is Raspberry Pi. The purpose of this foundation is to promote the education of computer science and related subjects in schools and make computers interesting. The foundation expects that this computer will continue to be developed and applied to more fields in the world.The early concept of Raspberry Pi in 2006 was based on ATmega644 microcontroller. It is an ARM-based microcomputer motherboard, with SD/MicroSD card as the memory hard disk. There are 1/2/4 USB ports and a 10/100 Ethernet port around the card motherboard (type A does not have a network port), which can be connected keyboard, mouse and network cable, as well as a TV output interface for video analog signals and an HDMI high-definition video output interface. All the above components are integrated on a motherboard that is only slightly larger than a credit card. It has all the basic functions of a PC and only needs to be connected to the TV. And the keyboard can perform many functions such as spreadsheets, word processing, games, high-definition video and so on.The Raspberry Pi is produced through three companies with production licenses Element 14/Premier Farnell, RS Components and Egoman. The Raspberry Pi Foundation provides ARM-based distributions of Debian and Arch Linux for the public to download. It is also planned to provide support for Python as the main programming language, support for programming languages such as Java, BBC BASIC (via RISC OS image or "Brandy Basic" clone of Linux), C and Perl. Ⅱ Different Pi Versions2.1 Early StageIn the early days of the Raspberry Pi, there were two types, model A and model B. The main differences between them.Model A: 1 USB, no wired network interface, power 2.5W, 500mA, 256MB RAM.Model B: 2 USB, support wired network, power 3.5W, 700mA, 512MB RAM. In addition, the Raspberry Pi B model provides a computer board, power supply, keyboard, case or connection, but no RAM.In July and November 2014, the Raspberry Pi launched two models, B+ and A+, respectively. The main difference: Model A has no network interface, so the four USB ports are reduced to one. In addition, compared to Model B, Model A has reduced RAM capacity and has a smaller size. Model A can be said to be a cheap version of Model B, but the new model Model A also supports the same MicroSD card reader as Model B, 40-pin GPI port, Broadcom BCM2385 ARM11 processor, 256MB of memory and HDMI output port.In terms of configuration, model B+ uses the same BCM2835 chip and has 512MB RAM as model B. But compared with the previous generation, the B+ version has lower power consumption and more interfaces. Model B+ has increased the general-purpose input and output pins to 40, and the USB interface has also increased from 2 to 4. In addition, the power consumption of model B+ has been reduced by about 0.5W to 1W. The old SD card slot has been replaced with a more beautiful push-in microSD card slot, and the audio part uses a low-noise power supply. From the appearance point of view, the USB interface has been moved to the side of the motherboard, the composite video has been moved to the position of the 3.5mm audio port, and four independent mounting holes have been added.2.2 Pi Model B vs Pi Model B+In July 2014, the Pi Model B+ was released, still using the BCM2835 processor and the same system software as the previous generation. The RAM is still 512MB. But improvements have been made in the following key points:Figure 1. Raspberry Pi Model B1) More GPIO pins, a total of 40 pins. (The old version is 26 pins)2) 4 USB ports, and the hot swap and overcurrent protection have been improved.3) Use Micro SD slot not the SD.4) Lower power consumption, reducing power consumption by 0.5 to 1W.5) Audio optimization, the audio circuit uses a dedicated low-noise power supply.6) A more concise appearance, the B+ aligns the USB interface with the edge of the circuit board, removes the AV interface, and makes 4 fixing holes on the motherboard.2.3 Pi 2Figure 2. Raspberry Pi 2It is compared to previous generations.1) CPU single thread speed is increased by 1.5 times (up by 1.5x).2) Sunspider running score increased 4 times (4x faster).3) Multi-core video decoding rate based on NEON is increased by 20 times (20x faster).4) The overall multi-threaded CPU score of SysBench is 6 times (6x) that of the old version.2.4 Pi 2 Model B vs Pi Model BFigure 3. Raspberry Pi 2 Model B1) Equipped with a 900MHz quad-core ARM Cortex-A7 CPU, the performance is expected to be 6 times that of the previous B+ version.2) 1GB LPDDR2 SDRAM, twice the previous B+ version.3) Fully compatible with the Pi 1 generation.Since the CPU has been upgraded to the ARM Cortex-A7 series, the Raspberry Pi 2 will support the full range of ARM GNU/Linux distributions, including Ubuntu and even Windows 10.2.5 Pi 3 Model BFigure 4. Pi 3 Model BIn February 2016, the Raspberry Pi 3 Model B was released.1) Equipped with ARM Cortex-A53 1.2GHz 64-bit quad-core ARMv8 CPU.2) Add 802.11b/g/n wireless network card.3) Add low-power Bluetooth 4.1 adapter.4) The maximum drive current is increased to 2.5A.2.6 Pi 4 Model B vs Pi 3 Model B+Figure 5. Pi 4 Model B1) Equipped with Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz.2) VideoCore VI GPU, supports H.265 (4Kp60 decode), H.264 (1080p60 decode, 1080p30 encode), OpenGL ES 3.0 graphics.3) 1GB/2GB/4GB LPDDR4 memory.4) Full throughput Gigabit Ethernet (PCI-E channel).5) Support Bluetooth 5.0, BLE.6) Two USB 3.0 and two USB 2.0 ports.7) Dual micro HDMI output, support 4K resolution.8) The microSD storage system adds double data rate support.9) The previous version of the microUSB power supply interface has been changed to a USB Type-C interface in Pi 4 Model B.10) Increase driving current to 3A.2.7 Pi 4 Model B Rev1.2 (8GB RAM Version)On May 28, 2020, the Raspberry Pi Foundation announced the launch of the new Raspberry Pi 4B SKU, which is the 8GB RAM version. In order to make full use of it, Raspberry Pi also developed a dedicated 64-bit operating system based on Debian. In other respects, compared with the previous version, the power supply problem has been improved.Figure 6. Pi 4 Model B Rev1.2TMHW's test on the Pi 4B 8GB version shows that in terms of web performance, 7zip compression, and APP opening speed, 8GB does not even increase but decrease compared to 4GB. In addition, in a 32-bit system, the available RAM is 7.8GB, and a 64-bit system is reduced to 7.6GB. Ⅲ What can I do with Raspberry Pi?Just like any other desktop or portable computer running a Linux system, there are many things you can do with the Raspberry Pi. Of course, it is inevitable that there is a little difference. Ordinary computer motherboards rely on hard drives to store data, but for Raspberry Pi, SD cards are used as "hard drives", and you can also connect an external USB hard drive. Use Raspberry Pi to edit documents, browse the web, play games, etc. That is to say, it has a wide range of uses. So it is also a good choice to make it an excellent multimedia center. For example, the Pi can be used to play video, and it can even be powered through the USB interface of the TV.Figure 7. Raspberry Pi 4Ⅳ Raspberry Pi Programming Language4.1 PythonThe Pi in Raspberry Pi stands for Python. It has become one of the most famous programming languages used for coding. After all, it has been in continuous use for the past 20 years. Python has an easy-to-read syntax, which is very suitable for novices in the field. Now, it is widely used in modern applications, windows and online applications.4.2 C LanguageC is one of the most widely used computing languages in the world. It is widely used to create operating systems and even simple programming languages. As we all know, Raspberry Pi runs on Linux system, in fact, it is also written with C. Therefore, it is easily compatible with all Linux and Unix systems including Pi.4.3 Java/BlueJWhen it was first released, Java was hailed as the first language that allowed programmers to write code for any platform or operating system. Regardless of whether the platform is a windows machine or a Unix machine. You can run the program without rewriting the code. Once the code is compiled, it can be run anywhere. Java runs on the Raspberry Pi, but cannot be developed on it. By 2013, BlueJ was released. Once installed, it can be programmed in Java on the Raspberry Pi.4.4 PERLPERL is a high-level programming language. It can be conveniently used on the Raspberry Pi when building an automated process or analyzing and debugging its output. Perl has a better library and ecosystem. It is the default setting of Raspberry Pi. Through a simple meta-analysis of the quality of existing libraries, PERL can be updated to a better version, because the default library may be incomplete or of low quality.4.5 ScratchScratch is the second programming language that suitable for Raspberry Pi. Because this coding language is included with the Raspberry Pi kit. It is a visual programming tool. With it, you can create animations and games. The latest version allows programmers to control Raspberry Pi's GPIO (General Purpose Input and Output) pins. Ⅴ Guide for Beginners: Use Raspberry Pi to Control LED Lights5.1 Model SelectionRaspberry Pi is a tiny computer integrated on a circuit board. Currently, there are two latest (1) Raspberry Pi 3 Model B(2) Raspberry Pi zero (zero w)Although the latter is cheap, it lacks a lot of interfaces (for example, only one USB port), the CPU and memory are relatively low-capacity, and the accessories are also few. Therefore, it is recommended to buy the third-generation B-type. But zero w can also meet most of the needs.5.2 AccessoriesThe Raspberry Pi itself is just a host. If you want to run it, there must be accessories.(1) Power SupplyA mobile phone charger with a Micro USB interface can be used as a power source, but the output must be 5V voltage and at least 2A current. It’s okay to use a power bank as a power source.Figure 8. Micro USB(2) Micro SD CardThe Raspberry Pi does not have a hard drive, and the Micro SD card is the hard drive. The minimum capacity is 8G, and 16G and 32G cards are recommended.Figure 9. Micro SD(3) DisplayThe Raspberry Pi has HDMI output, and the display must have it. If there is an HDMI to VGA adapter cable, then the VGA monitor will also work. Here I use a 7-inch LCD monitor.Figure 10. LCDHowever, the monitor is only needed when installing the system, and SSH can be used to log in later.(4) Wireless Keyboard and MousePi has built-in Bluetooth, so USB or Bluetooth wireless keyboard and mouse can be used.Figure 11. Wireless Keyboard and MouseJust like the monitor, if the Pi has been installed with the system and only used as a server, the wireless keyboard and mouse are not required.5.3 Electronic ComponentsIn addition to accessories, the following experiment also requires some electronic components.(1) Breadboard (one piece)(2) Electrical Cable (several)Note that the connection cable must be female to male.Figure 12. Electrical Cable (Female)Figure 13. Electrical Cable (Male)In addition, it is best to prepare some cables with male to male.(3) LED Diodes (several)(4) 270Ω Resistors (several)5.4 System InstallationIf the merchant has already installed the system, you can skip this step, otherwise you need to install the operating system.The official operating system is Raspbian, which is a customized version of the Debian system.The official also provides an installer NOOBS. It is recommended to install Raspbian through it, which is relatively simple.Download NOOBS:1) Format the Micro SD card into FAT format (operation guide).2) Unzip NOOBS.zip to the root directory of the Micro SD card.3) Insert the Micro SD into the slot at the bottom of the Raspberry Pi, turn on the power, and start the system.4) Under normal circumstances, follow the prompts on the screen and press Enter all the way to install the system.5.5 SSH Login InAfter installing the system, the Pi can access the Internet (Wifi or network cable). At this time, you need to check its LAN IP address, you can use the following command. $ sudo ifconfigThen, change the system settings and turn on SSH login (default is forbidden).Then, login the Raspberry Pi from another computer SSH. The following command is executed on another computer in the LAN. $ ssh pi@192.168.1.5In the above code, 192.168.1.5 is the address of my Raspberry Pi, so you need to replace it with yours. The default user of the Raspberry Pi is pi, and the initial password is raspberry. Under normal circumstances, you can log in to it. Then, you can perform various server operations, such as changing the password. $ passwdThe following experiments need to add users to the gpio user group. $ sudo adduser pi gpioThe above code means adding user pi to the gpio user group.5.6 Install NodeIn order to run Node scripts, Raspberry Pi must install Node. You can refer to this. $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - $ sudo apt install nodejsUnder normal circumstances, Node 8.x has been installed successfully. $ node -v v8.1.05.7 Light LEDPi provides a set of external IO interfaces, called GPIO (general-purpose input/output).Figure 15. GPIO PinsThe definition of its 40 pins is shown in the figure below.Figure 16. Raspberry Pi 40 PinsNote that the first pin (3.3V) in the upper left corner is a square, and the other pins are round. Turn the Raspberry Pi over, and you can see that one corner of the GPIO is square. In this way, you can confirm which pin eye is 3.3V.Through GPIO, the Pi can be connected with other electronic components. Next, according to Jonathan Perkin's article, connect LED diodes.Figure 17. Raspberry Pi BackA breadboard is needed here. In essence, a breadboard is just a few wires with many holes that can be connected to the wires.Figure 18. Connect with BreadboardThe + pole and the-pole are two vertical wires, the row marked with the numbers 1, 5, and 10 is a horizontal wire. The wires are not connected to each other, and the left and right halves of the breadboard are also not connected to each other.Then, connect the Raspberry Pi, breadboard, LED lights, and resistors according to the diagram below.Figure 19. Parts ConnectionIn the above figure, the red wire represents the positive electrode of the current, which is connected from the first pin (3.3V) of the GPIO to the breadboard. The black wire represents the negative electrode of the current, which is connected from the 6th pin (ground) of the third row of the breadboard. It does not matter which hole they connect to the breadboard, but it must be ensured that a complete circuit can be formed (the direction of the arrow in the figure above). Note that LED diodes also have positive and negative poles, with the long pin indicating the positive pole and the short pin indicating the negative pole. The resistor has no positive and negative poles.After the connection is complete, turn on the power and the LED should light up.5.8 LED Control ScriptNext, we use the Node script to control the LED.First, unplug the positive wire from pin 1 (3.3V) and plug it into pin 11 of row 6 (GPIO 17 in the figure above). The current of this pin can be controlled by the script.Then, create a new experiment directory on the Pi, and install the Node module rpio that controls GPIO. $ mkdir led-demo && cd led-demo $ npm init -y $ npm install -S rpioNext, create a new script led-on.js. // led-on.jsvar rpio = require('rpio'); // Turn on pin 11 (GPIO17) as output rpio.open(11, rpio.OUTPUT); // Specify the output current of pin 11 (HIGH) rpio.write(11, rpio.HIGH);Run this script and you can see the LED bulbs light up. $ node led-on.jsCreate a new led-off.js script, just change one line (see here for the complete code). // led-off.js //... // Designate Pin 11 to stop output current (LOW) rpio.write(11, rpio.LOW);Run this script and the LED bulb should be off. $ node led-off.jsWith these two scripts, it is easy to make the LED blink. Create a new led-blink.js script. // led-blink.js var rpio = require('rpio'); rpio.open(11, rpio.OUTPUT); function blink() { rpio.write(11, rpio.HIGH); setTimeout(function ledoff() { rpio.write(11, rpio.LOW); }, 50); } setInterval(blink, 100);The above script makes the LED blink 10 times per second. $ node led-blink.js5.9 HTTP ServerMany things can be done by controlling the LED, such as setting up an HTTP server. Whenever someone visits, the LED will blink.First, install a server module in the directory just now. $ npm install -S serverThen, create a new script server.js. // server.js var server = require('server'); var { get } = server.router; // ... server({ port: 8080 }, [ get('/' , ctx => { console.log('a request is coming...'); blink(); }), ]); console.log('server starts on 8080 port');Run this script. $ node server.jsThen, open a command line terminal, access port 8080, and the LED will flash. $ curl http://localhost:8080After reading the tutorial, you can try it yourself. For example, if you write a test case script, the LED will stay light as long as the test fails, or you can assemble an 8-bit adder. Ⅵ FAQ1. What is Raspberry Pi and how does it work?The Raspberry Pi is a tiny computer about the size of a deck of cards. It uses what's called a system on a chip, which integrates the CPU and GPU in a single integrated circuit, with the RAM, USB ports, and other components soldered onto the board for an all-in-one package.2. What is the Raspberry Pi used for?The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python.3. Can Raspberry Pi replace PC?Of course, the Raspberry Pi can't replace most professional desktops, but in general, it can run almost all programming languages and frameworks, from Python to Fortran.4. What do I need to use a Raspberry Pi?What you will need:A Raspberry Pi computer with an SD card or micro SD card.A monitor with a cable (and, if needed, an HDMI adaptor)A USB keyboard and mouse.A power supply.Headphones or speakers (optional)An ethernet cable (optional)5. Which Raspberry Pi is best for beginners?Best Raspberry Pi Starter KitsCanaKit Raspberry Pi 3 B+ Starter Kit 32GB EVO+ Edition Premium Black Case.Vilros Raspberry Pi 3 B+ Complete Starter Kit with Clear Case and 16GB SD Card.Smraza Raspberry Pi 3 B+ Starter Kit, Compatible Pi 3 Model B Case, 16GB SD Card, 2.5 A Power Supply.6. What projects can you do with Raspberry Pi?Best Raspberry Pi Projects for 2021Google Enabled Magic Mirror.Solar-Powered Pi.Game Console.Remote-Controlled 3D Printer.Language Translator.Satellite Tracking Globe.PC Hardware Stats Monitor.Security Camera.7. Which is cheaper Arduino or Raspberry Pi?The two most popular among them are: Arduino and Raspberry Pi. Arduino is based on the ATmega family and has a relatively simple design and software structure. Raspberry Pi, basically is a single-board computer.8. Which programming language is used for Raspberry Pi?Python. One of the most widely used programming languages on the Raspberry Pi is none other than Python. Python has an easy, beginner-friendly syntax (arrangement of words, phrases, in sentences) and a wide adoption rate among the community, giving access to libraries, frameworks, and tools to help users get started.9. Can a Raspberry Pi run Windows?The Raspberry Pi 4 can handle Microsoft Edge, the calculator app, and more, all via the power of Windows 11. It can even run Minecraft, albeit in an undesirable state.10. Can you watch Netflix on Raspberry Pi?Although there are some Android images for the Raspberry Pi, Linux distributions (distros) for the Pi are more stable. And with newfound Widevine DRM support, the Raspberry Pi can comfortably stream Netflix, Hulu, Disney+, HBO Max, and Spotify.11. Can you hack with Raspberry Pi?The Raspberry Pi also runs Raspbian, the official OS of the Raspberry Pi. This Debian-based OS can also be used to learn basic Linux and hacking tools, although it requires much more customization before it's suitable for this.12. Which is better for beginners Arduino or Raspberry Pi?The Arduino board is much simpler to use in comparison to Raspberry Pi. The Arduino board can easily be interfaced with analog sensors and other electronic components using only a few lines of code. ... The coding in Arduino is also easier than Raspberry Pi, the latter requiring knowledge of Linux and its commands.13. How do I put codes into my Raspberry Pi?Open IDLE by selecting the Raspberry Pi logo in the top-left, and click Programming > Python 3 (IDLE). You should be presented with the Python interactive interpreter. To write a program, go to File > New File. Enter in your code.14. Can I run Android on Raspberry Pi?First Look: You Can Now Run Android 12 on Your Raspberry Pi 4 Computer. Even if your smartphone doesn't run Android 12 yet, you can now use Google's latest mobile operating system on a Raspberry Pi 4, 400 or CM4 computer.15. What is the advantage of Raspberry Pi over Arduino?Raspberry Pi is 40 times faster than Arduino, with PI, you can send mails, listen music, play videos, run internet etc. Also as we have stated earlier that it has memory, processor, USB ports, Ethernet port etc. and it doesn't require external hardwares for most of the functions.16. How do I use Raspberry Pi with IOT?Connecting the Raspberry Pi to the Outside World - GPIO PinsTo connect the GPIO to external sensors, you can: Connect the sensors directly to the GPIO pins using jumper wires. Connect the GPIO pins to a ribbon cable, which in turn connects it to a breadboard.17. Which is more powerful Raspberry Pi or Arduino?Given those differences you might think a Raspberry Pi is so much more powerful and capable than Arduino, so you should use that. ... Raspberry Pi has 8. Individual I/O pins in Arduino can drive 40mA while Raspberry Pi GPIO pins can each drive a maximum of 16mA18. How many devices can connect to Raspberry Pi?There is a limit of 30 simultaneously connected devices on Pi 4 - the hardware supports 32 device address slots but one address is kept free for unconfigured devices and one address is reserved by the internal USB2. 0 hub for the USB2. 0 ports.19. How many pins are there on Raspberry Pi board?40 pinsOf the 40 pins, 26 are GPIO pins and the others are power or ground pins (plus two ID EEPROM pins, which you should not play with unless you know your stuff!).20. How much RAM does the Raspberry Pi has?The Raspberry Pi 2 has 1 GB of RAM. The Raspberry Pi 3 has 1 GB of RAM in the B and B+ models, and 512 MB of RAM in the A+ model. The Raspberry Pi Zero and Zero W have 512 MB of RAM. The Raspberry Pi 4 is available with 2, 4 or 8 GB of RAM.21. Why is Raspberry Pi 4 so expensive?Due to supply shortages, the Raspberry Pi Foundation can no longer afford to produce them at that price, and so have had to increase the price to $45. ... To help mitigate this price increase, the company is reintroducing the 1GB version of the RPi 4, which was retired in February 2020.22. How do you do Pi in Google Sheets?Creating the PI Symbol with the CHAR FunctionThe amazing CHAR function, which converts numbers into characters per the Unicode table, can output the symbol for pi in your Google Sheet.
kynix On 2021-12-27
Join our mailing list!
Be the first to know about new products, special offers, and more.
Feature Posts
How Resistors Work: From Basic Principles to Advanced Applications2025-07-30
DC Switching Regulators: Principles, Selection, and Applications2025-05-30
FPGA vs CPLD: In-depth Analysis of Architecture, Performance and Application2025-05-07
MOSFET Technology: Essential Guide to Working Principles & Applications2025-05-04
SMD Resistor: Types, Applications, and Selection Guide2025-04-30