Selecting Shaft and Bearing Fits for Reliable Performance

Choosing the right fit between a shaft and a bearing is critical for system reliability. The fit determines whether the inner ring rotates with the shaft or slips, affecting load distribution and wear. Manufacturers specify recommended fits based on bearing type and application conditions, typically using ISO tolerance grades like j6, k6, or m6 for the shaft.

For a rotating shaft, the inner ring must have an interference fit to prevent fretting and rotation relative to the shaft. Common choices are k6 for normal loads and m6 for heavier loads. For a stationary housing, a slight clearance fit (e.g., H7) allows for thermal expansion and easier assembly. Always consult the bearing catalog for specific recommendations.

Load magnitude and direction also influence fit selection. Under heavy radial loads, tighter interference is needed to prevent ring creep. Additionally, consider surface finish—rougher surfaces reduce effective interference. Roundness and taper of both shaft and housing must be within specified limits to ensure uniform contact.

Practical tip: Before assembly, measure the shaft diameter and housing bore at several points. Use a micrometer and bore gauge, and compare readings to the tolerance limits. If the fit is too loose, the bearing may spin on the shaft; too tight can cause excessive preload and premature failure. When in doubt, start with the manufacturer’s standard recommendation.

#DFM# #EngineeringDrawings#

Mechanical Design
Accurate Hole Diameter Verification with Pin Gauges

Pin gauges, also known as plug gauges, are simple yet precise tools for verifying hole diameters. They consist of a set of hardened steel pins with diameters incrementally increasing by 0.001 inches or 0.01 mm. The principle is straightforward: the 'go' pin should pass through the hole, while the 'no-go' pin should not. This quick test ensures the hole is within tolerance without needing a more complex measuring instrument.

To use pin gauges effectively, always clean the hole and the pin to remove debris. Insert the go pin straight and gently; it should slide through with minimal resistance. The no-go pin should not enter the hole. If it does, the hole is oversized. For accurate results, hold the pin perpendicular to the hole surface and avoid forcing it. Temperature can affect readings, so allow parts to stabilize to shop temperature if possible.

Pin gauges are ideal for high-volume inspection because they provide an immediate pass/fail result. Unlike telescoping gauges or bore micrometers, they do not require interpretation of scale readings. This makes them a favorite for quality control on production lines. Just remember to handle pins with care to prevent nicks or wear, which would compromise accuracy.

In summary, pin gauges offer a fast, reliable method for checking hole diameters. By using the go/no-go system, engineers can verify tolerances without complex calculations. Always ensure pins are within calibration and store them in a protective case to maintain their precision.

#HandTools# #CMM#

Workshop Tools & Metrology
A Good RF Circuit Can Still Perform Poorly with a Bad Antenna Layout

When developing wireless products, engineers often focus on selecting the right communication module whether it's Wi-Fi, Bluetooth, LoRa, Zigbee, or GNSS. However, the performance of the entire system depends on more than just the RF chipset.

A poorly placed antenna can significantly reduce communication range, decrease signal strength, and make wireless connections unreliable, even if the software and hardware are working correctly. In many cases, the problem isn't the module itself but the surrounding PCB layout and mechanical design.

Understanding a few basic antenna placement principles can greatly improve wireless performance without changing the RF module.

image.png

Why Placement Matters

Unlike ordinary digital traces, an antenna intentionally radiates electromagnetic energy. Nearby metal objects, batteries, displays, and large ground planes can alter their radiation pattern and reduce efficiency.

Many RF module manufacturers recommend placing the antenna at the edge of the PCB while keeping the surrounding area free from copper pours and tall components. Following these recommendations helps the antenna operate closer to its intended performance.

image.png

Common Applications

Good antenna layout practices apply to many wireless systems, including ESP32 development boards, Bluetooth Low Energy devices, LoRa sensor nodes, Zigbee controllers, GPS receivers, and cellular IoT modules.

Although different frequencies require different antenna designs, the general principle remains the same: provide the antenna with enough free space to radiate efficiently.

Recommended RF Modules

Several popular wireless modules already include integrated PCB antennas.

Module Wireless Standard Typical Applications
ESP32-WROOM-32 Wi-Fi + Bluetooth IoT devices
ESP32-C3 Wi-Fi + BLE Low-power embedded systems
SX1278 LoRa Long-range telemetry
u-blox NEO-6M GPS Position tracking

Always follow the layout recommendations provided in each module's hardware design guide rather than copying another PCB design.

Wireless performance depends on much more than the RF module itself. Proper antenna placement, adequate keep-out spacing, and avoiding nearby obstructions are simple design practices that can noticeably improve communication range and signal reliability.

#RFAndWireless# #PCBDesign# #ESP32# #LoRa# #Bluetooth# #AntennaDesign#

RF & Wireless
Reed Switch vs Hall Effect Sensor: Which One Fits Your Project?

When designing a system that detects the presence or movement of a magnet, two components are commonly considered: the reed switch and the Hall effect sensor. At first glance, they appear to perform the same task both can detect a magnetic field. However, their operating principles, performance, and typical applications are quite different.

Choosing the wrong sensor may lead to reduced reliability, slower response, or unnecessary circuit complexity. Understanding the strengths and limitations of each device makes it much easier to select the right solution for your project.

image.png

How They Work

A reed switch contains two thin metal contacts sealed inside a glass tube. When a magnetic field approaches, the contacts attract each other and close the circuit. Once the magnet moves away, the contacts separate again.

A Hall effect sensor works differently. Instead of moving contacts, it uses a semiconductor element that detects changes in magnetic flux and converts them into an electrical signal. Since there are no moving parts, Hall sensors generally offer faster operation and longer service life.

image.png

Which One Should You Choose?

A reed switch is often the better choice when simplicity, low cost, and zero standby power consumption are the highest priorities. It is commonly used in door sensors, window alarms, and simple position detection systems.

A Hall effect sensor is better suited for applications requiring high switching frequency, long operating life, or continuous position sensing. It is widely used in brushless DC motors, automotive wheel speed sensors, joystick modules, and industrial automation.

Rather than asking which sensor is better, the more useful question is which one better matches the requirements of your application.

image.png

Quick Comparison

Feature Reed Switch Hall Effect Sensor
Operating Principle Mechanical Contact Solid-State
Power Consumption None Requires Supply Voltage
Switching Speed Moderate Very Fast
Mechanical Wear Yes No
Output Contact Digital or Analog

Recommended Devices

Some commonly used devices include:

Device Type Typical Applications
MKA-14103 Reed Switch Door sensors, magnetic switches
ORD2210V Reed Switch General magnetic sensing
A3144 Digital Hall Sensor Speed sensing, BLDC motors
SS49E Linear Hall Sensor Position and magnetic field measurement

Always consider the required sensing distance, switching speed, environmental conditions, and expected operating lifetime before selecting a magnetic sensor.

Although reed switches and Hall effect sensors can both detect magnetic fields, they are designed for different situations. Reed switches offer a simple and power-free solution, while Hall effect sensors provide faster, more reliable operation for modern electronic systems. Selecting the right sensor depends on the performance your application requires—not simply on whether it can detect a magnet.

#SensorsAndActuators# #ReedSwitch# #HallEffectSensor# #EmbeddedSystems# #Electronics# #MagneticSensor#

Sensors & Actuators
A Simple RC Filter Can Clean Up More Than You Think

Not every signal produced by a sensor or electronic circuit is perfectly clean. Electrical noise from switching power supplies, motors, relays, and nearby digital circuits can introduce unwanted fluctuations that affect measurement accuracy. In some cases, the signal changes so rapidly that a microcontroller struggles to distinguish useful information from high-frequency noise.

One of the simplest ways to reduce unwanted noise is by using an RC filter. Consisting of only a resistor and a capacitor, this circuit can significantly improve signal quality without requiring complex hardware or software.

Although an RC filter is one of the first circuits taught in electronics, understanding where to place it—and when to use it—can make a noticeable difference in real-world designs.

image.png

How an RC Filter Works

An RC low-pass filter consists of a resistor connected in series with the signal path and a capacitor connected from the signal line to ground.

At low frequencies, the capacitor has very high impedance, allowing the desired signal to pass with little attenuation. As the frequency increases, the capacitor's impedance decreases, diverting unwanted high-frequency noise to ground before it reaches the next stage of the circuit.

By selecting appropriate resistor and capacitor values, engineers can control the filter's cutoff frequency to match the application's requirements.

image.png

Common Applications

RC filters appear in many electronic systems because they are inexpensive, easy to design, and highly effective.

Typical applications include filtering sensor outputs before an ADC, smoothing PWM signals to create an analog voltage, reducing switch noise, filtering audio signals, and suppressing noise on communication lines where appropriate.

Although RC filters improve signal quality, choosing an excessively low cutoff frequency may slow the circuit's response. Finding the right balance between filtering and response time is an important part of the design process.

image.png

Recommended Components

The performance of an RC filter depends on selecting resistor and capacitor values that match the desired cutoff frequency.

Some commonly used components include:

Component Typical Value Common Applications
Resistor 1 kΩ General analog filtering
Resistor 10 kΩ Sensor and ADC inputs
Ceramic Capacitor 100 nF General-purpose noise filtering
Ceramic Capacitor 1 µF Lower cutoff frequency applications

Always calculate the required cutoff frequency before selecting component values rather than relying on standard values alone.

An RC filter is one of the simplest circuits in electronics, yet it plays an important role in improving signal quality. By understanding how resistor and capacitor values influence the cutoff frequency, designers can build measurement systems that are more stable, more accurate, and less susceptible to electrical noise.

#AnalogAndSignal# #RCFilter# #LowPassFilter# #SignalConditioning# #Electronics# #EmbeddedSystems#

Analog & Signal
One-Button USB-C PD Voltage Selector with CH224K and CH32V003

Original Instructables article: https://www.instructables.com/One-Button-Based-5-20V-USB-C-PD-Voltage-Selector/

I have worked with the CH224K USB PD sink controller before, a tiny IC that handles the entire PD negotiation for you. My previous build used fixed resistors to set the voltage. This time I wanted something more practical: a single-button selector that cycles through 5V, 9V, 12V, 15V, and 20V with LED indicators for each. The MCU I paired it with is the CH32V003F4P6 — a 32-bit RISC-V chip from WCH that costs about $0.10.

How It Works

The CH224K handles USB PD negotiation over the CC lines in the USB-C connector. Three configuration pins (CFG1, CFG2, CFG3) tell it which voltage to request from the charger. Drive these with a microcontroller and you can change voltage on the fly. The lookup table:

• 5V: CFG1=1, CFG2=X, CFG3=X
• 9V: CFG1=0, CFG2=0, CFG3=0
• 12V: CFG1=0, CFG2=0, CFG3=1
• 15V: CFG1=0, CFG2=1, CFG3=1
• 20V: CFG1=0, CFG2=1, CFG3=0

CH224K key features: supports PD 2.0 and 3.0, selectable 5–20V output, built-in CC pull-down resistors, Power Good (PG) output, SOP-10 package.

MCU — CH32V003F4P6

The CH32V003F4P6 is a QingKe 32-bit RISC-V MCU at ~$0.10, chosen deliberately so the controller does not cost more than the function it provides. It runs at 48MHz with 16KB flash, 2KB SRAM, and 18 GPIO pins. For this project I use 9 pins: 3 for the CH224K CFG lines, 5 for indicator LEDs, and 1 for the push button.

An LM317 linear regulator converts the variable PD rail (5–20V) to a stable 3.3V for the MCU supply. Critical note: set the LM317 potentiometer to 3.3V before soldering the MCU, powering it at an incorrect voltage will destroy the chip.

8766863365421711360

Schematic — CH224K CFG lines, LM317 supply, LEDs

Firmware

The firmware is minimal C written in WCH's MounRiver Studio. Three lookup arrays map mode index (0–4) to CFG pin states and the active LED pin. On each button press, the code reads the GPIO, applies a 20ms debounce delay, increments the mode index (wrapping at 4), then calls applyMode(). That function clears all LEDs, drives the three CFG pins from the lookup tables, and lights the correct LED. Boot defaults to 5V — the safest starting voltage since every PD charger supports it.

8766863538071982080

Compact 2-layer PCB from JLCPCB — USB-C left, LEDs and button right

Testing

I brought up the board with a USB meter in series for overcurrent protection. It worked first try. After confirming idle current, I switched to the charger directly and measured all five voltages with a multimeter, each one correct on button press.

8766863596380925952

Electronic Tips & Projects