Chapter 2 · Book pp. 25–40
Basic Electronic Components
แนะนำอุปกรณ์อิเล็กทรอนิกส์พื้นฐานในโปรแกรม Tinkercad
Before building bigger circuits you need to know the basic parts in Tinkercad: what each one does, how it is drawn, and how to wire it the right way round. This chapter tours them one by one, with tips for using each in the simulator.
⚠️ Simulation is not the real world
A simulator does its best, but it is never perfect. When you build a circuit for real, some results may differ from Tinkercad — always think about this before you take a design off the screen.
2.1 Resistor ตัวต้านทาน
- A resistor limits the current flowing in a circuit.
- Its unit is the ohm (Ω). 1 Ω is the resistance that lets 1 A flow when there is 1 V across it.
- The usual resistor is a small cylinder with colour bands: a carbon or metal film on a ceramic core, with a leg at each end. Tiny boards use surface-mount resistors that have no legs.
- In Tinkercad you can set any value, from picohms (pΩ) up to gigaohms (GΩ).
2.2 Variable resistor ตัวต้านทานปรับค่าได้
- A variable resistor has a knob to turn or a slider to move. The usual name is a potentiometer (“pot”).
- Uses: volume controls, adjusting a voltage, the brightness or contrast of a display.
- There are single-turn and multi-turn types. Both have 3 legs; the middle leg (the wiper) is the one whose resistance changes.
2.3 Light-emitting diode (LED) ไดโอดเปล่งแสง
- An LED is a semiconductor that gives out light when a DC voltage is applied the right way round. The colour depends on the semiconductor material.
- Round LEDs come in many sizes, up to about 12 mm across, in clear or coloured plastic. Put several LEDs together in a pattern and you can show numbers: a seven-segment display.
- Tinkercad has 6 colours: red, yellow, orange, blue, green and white. The rotate button turns a part 30° per click.
2.4 Non-polarized capacitor ตัวเก็บประจุแบบไม่มีขั้ว
- A capacitor (or condenser) stores electric charge.
- Inside are two metal plates separated by an insulator called the dielectric. The type of capacitor is named after the dielectric: ceramic, mylar, polyester, polystyrene and so on.
- In Tinkercad the capacitance goes from picofarads (pF) to gigafarads (GF), but real non-polarized capacitors only reach a few microfarads (about 1–6.8 µF). If you plan to build the circuit for real, keep to pF, nF and µF.
2.5 Light-dependent resistor (LDR) ตัวต้านทานแปรค่าตามแสง
- An LDR changes its resistance with the amount of light falling on it. Most are made of cadmium sulfide (CdS) or cadmium selenide (CdSe) on a ceramic base.
- In the dark it is about 2 MΩ. In light the resistance drops, but not below about 100 Ω.
- It responds best to light of about 600 nm, inside the range our eyes see (400–700 nm). So it reacts to sunlight, light bulbs and fluorescent lamps, but not to invisible infrared.
2.6 Transistor ทรานซิสเตอร์
- A transistor is a semiconductor made of P-type and N-type material joined in 3 layers, so it has 3 legs: base (B), collector (C) and emitter (E).
- How it works: feed a small current into the base, and the resistance between C and E drops, so a larger current can flow through the transistor.
| Type | Structure | Middle layer (base) |
|---|---|---|
| NPN | P-type material with N-type on both sides | P |
| PNP | N-type material with P-type on both sides | N |
💡 Tip
Pin orders differ between transistor models. In Tinkercad, hover over each leg to see whether it is the base, collector or emitter before you wire it.
2.7 Pushbutton switch สวิตช์กดติดปล่อยดับ
- A switch makes or breaks a circuit, deciding whether current flows.
- A pushbutton (push-on, release-off) is normally open: the circuit is broken. Press it and the circuit is complete; let go and it opens again.
2.8 Slide switch สวิตช์เลื่อน
- A slide switch has a sliding lever and 3 legs.
- Use all three legs to choose between two paths (a changeover switch), or just the middle leg and one outer leg as a simple on/off switch.
2.9 1.5 V battery แบตเตอรี่ 1.5V
- A battery is the basic DC supply for electronic circuits. A single-use battery is called a primary cell and gives 1.5 V per cell.
- Ordinary zinc-carbon cells come in sizes AAA, AA, C and D, all 1.5 V. The PP3 has 6 cells inside, so 6 × 1.5 V = 9 V. They supply only a small current but are cheap: good for remote controls and wall clocks.
- Alkaline batteries hold 5–10 times more energy and still give 1.5 V per cell, so they suit gadgets that need 300 mA or more, such as MP3 players and digital cameras.
- Tinkercad’s 1.5 V battery comes in a holder for 1 to 4 cells, with wires ready to connect, and an optional built-in on/off switch.
2.10 Coin / button battery แบตเตอรี่แบบกระดุม
- A lithium battery made with lithium and manganese dioxide. It loses very little charge in storage and is small.
- Voltages include 1.5, 3, 3.6, 6 and 9 V; 3 V is the most common. Its solid electrolyte gives it a high internal resistance, so it supplies only a small current — fine for watches, calculators, handheld games and small remotes.
- The code tells you the size: a CR2032 gives 3 V and is 3.2 mm thick and 20 mm across.
2.11 9 V battery แบตเตอรี่ 9V
- Tinkercad also has the standard PP3 9 V battery, with a clip and wires.
- It first appears lying on its side, which makes wiring awkward. Click rotate until it stands upright with its terminals at the top: the wiring is then neater and easier.
2.12 Piezo speaker ลำโพงเปียโซ
- A speaker turns electrical energy into sound. In most speakers a paper or plastic cone (diaphragm) is fixed to a coil of wire near a permanent magnet: a changing current makes the coil push and pull, and the cone vibrates the air.
- A piezo speaker works best between about 1 kHz and 3 kHz. Its sound depends on the size of the piezo disc and its case.
- It needs a signal at an audio frequency — a steady DC voltage alone will not make a tune.
2.13 DC motor มอเตอร์ไฟตรง
- A DC motor turns electrical energy into movement: power it and its shaft spins. Small motors running on +1.5 to +12 V are used in robots and moving projects.
- A plain DC motor spins very fast (1,000 rpm or more) but with very little torque (turning force), so a gearbox is added: lower speed, more torque.
- Swap the supply wires and the motor turns the other way.
2.14 Vibration motor มอเตอร์สั่น
A special DC motor that vibrates instead of driving a shaft — the buzz in a mobile phone.
2.15 Servo motor เซอร์โวมอเตอร์
- A servo motor is an actuator that moves to an exact position — for example the steering of a radio-controlled car, or the rudder of a model boat or plane. Those jobs need plenty of torque, so servos are geared.
- Standard servos turn through 0–90° or 0–180°; some are modified to turn through a full 360°.
- A servo has 3 wires: signal (S), supply (+V) and ground (G).
- Tinkercad’s micro servo has two modes: Positional (holds an angle from 0° to 180°) and Continuous (spins through 360°).
Tinkercad has many more parts. The ones you need are introduced in the chapters that use them.
Parts at a glance
| Part | What it does | Polarity? | Watch out for |
|---|---|---|---|
| Resistor | Limits current | No | Choose the right unit (Ω, kΩ, MΩ) |
| Potentiometer | Adjustable resistance | No | Use the middle leg |
| LED | Gives light | Yes: anode +, cathode − | Always add a series resistor |
| Capacitor (non-polarized) | Stores charge | No | Real ones only go up to a few µF |
| LDR | Resistance falls in light | No | ≈2 MΩ dark, a few hundred Ω bright |
| Transistor (NPN/PNP) | Small base current controls a big C–E current | Yes: B, C, E | Check the pin order |
| Pushbutton | On only while pressed | — | Wire diagonally |
| Slide switch | On/off or changeover | — | Use the middle leg |
| Batteries | DC supply: 1.5 V cells, 3 V coin, 9 V PP3 | Yes | Coin cells give little current in real life |
| Piezo speaker | Sound | Yes | Needs an audio-frequency signal |
| DC / gear motor | Rotation | Direction depends on it | Reverse the wires to reverse it |
| Vibration motor | Vibration | Yes | No more than 4.5 V |
| Servo | Moves to an angle (or spins) | 3 wires: S, +V, G | 6 V maximum supply |
🛠️ Activity · Test the parts in Tinkercad
Each of these repeats a demonstration from the chapter’s figures.
- LDR (Fig 2-6): connect an LDR to a multimeter set to resistance. Start the simulation, click the LDR and move the light slider. Record the reading at far left, middle and far right.
- Potentiometer (Fig 2-2): measure across the middle leg and one outer leg while you turn the knob, then across the two outer legs. Which reading changes?
- Pushbutton (Fig 2-9): build battery → pushbutton → resistor → LED. Wire the button diagonally, then try the same side. What happens each time?
- DC motor (Fig 2-16): connect a DC motor to 2 AA cells and note the rpm, then swap the wires, then try a 9 V battery.
- Vibration motor (Fig 2-19): run it from 3 AA cells, then from a 9 V battery. Explain what you see.
Check yourself
Chapter 2 of the book is a parts reference without questions, so these are my own, based on its pages.