Skip to main content

Posts

Showing posts with the label Automation

Featured Post

Why I Wrote The Sheet Mechanic (And Why Calculations Aren’t Enough)

For engineers who already know the math—but still lose projects. For the last few years, I’ve been sharing technical guides here on Mechanical Design Handbook —how to size a motor, how to calculate fits, and (as you recently read) how to choose between timing belts and ball screws. But after 25 years in industrial automation, I realized something uncomfortable: Projects rarely fail because the math was wrong. They fail because: The client changed the scope three times in one week. A critical vendor lied about a shipping date (and no one verified it). The installation technician couldn’t fit a wrench into the gap we designed. University taught us the physics. It didn’t teach us the reality. That gap is why I wrote my new book, The Sheet Mechanic . This is not a textbook. It is a field manual for the messy, political, and chaotic space between the CAD model and the factory floor. It captures the systems I’ve used to survive industrial projec...
NEW RELEASE: Stop trying to be a Hero. Start being a Mechanic. Get "The Sheet Mechanic" on Amazon »
Disclosure: As an Amazon Associate, I earn from qualifying purchases.

Excel VBA Kinematic Simulation: Overlapping Motion in High-Speed Machines

The Engineering Challenge: In 2005, I was tasked with upgrading a mechanical transfer turret used to handle highly fragile glass tubes between a conveyor and another process. Production demanded a 25% throughput increase—jumping from 1,200 UPH (Units Per Hour) to 1,500 UPH. Simply speeding up the main drive motor was impossible; the resulting inertial forces and acceleration spikes would have violently shattered the glass tubes before they ever reached the sealing station. The Solution: When you need to increase machine throughput without increasing acceleration forces, the answer is almost always overlapping motion . However, overlapping mechanisms in tight spaces introduces a severe risk of catastrophic mechanical collisions. To validate this 25% speed increase safely, I didn't use expensive 3D motion analysis software. Instead, I used Microsoft Excel and VBA to build a custom 2D kinematic simulator. Here is how that mathematical model was built, and how that exact m...

Normally Open vs Normally Closed: Safety & Failsafes

The Failure Scenario: You wire your 3D printer's limit switch as Normally Open (NO) . One day, a mouse chews through the wire. You tell the printer to "Home." Because the wire is cut, the controller thinks the switch is open (safe). The machine crashes the nozzle into the bed and grinds the motors until you pull the plug. This is why Normally Closed (NC) is the industrial standard for safety. If the wire breaks, the machine stops immediately. Choosing between NO and NC isn't just a preference—it determines whether your machine fails safely or catastrophically. This guide explains the logic. Table of Contents 1. What is the Difference? (State Logic) 2. The Failsafe Rule (Why NC Wins) 3. Common Mistakes in Practice 4. When to Use NO vs NC Advertisement 1. What is the Difference? (State Logic) The terms refer to the state of the switch contacts when nothing is touching them . N...

NPN vs PNP Sensors: Wiring Logic & PLC Compatibility

The Failure Scenario: You replace a broken sensor on your machine. The light on the new sensor turns on, but the machine controller never sees the signal. You likely bought a PNP sensor for an NPN input. This is the single most common wiring mistake in automation. If you get the Sinking (NPN) vs. Sourcing (PNP) logic wrong, your system simply won't work—or worse, you might short-circuit your controller board. This guide explains how to match the sensor to your hardware. Table of Contents 1. What is the Difference? (Sinking vs Sourcing) 2. How They Work (Wiring Logic) 3. Common Mistakes in Practice 4. When to Use NPN vs PNP Advertisement 1. What is the Difference? (Sinking vs Sourcing) The terms NPN and PNP refer to the internal transistor type used to switch the signal. NPN (Sinking): The sensor connects the signal wire to Ground (0V) when triggered. It "sinks" current from the c...

Mechanical Switch vs Inductive Sensor: Homing Repeatability

Your stepper motors are precise, but they are blind. Without a Home Position , your machine has no idea where it is. To fix this, you need a limit switch. The choice is usually between a cheap Mechanical Microswitch (Clicky) and an industrial Inductive Proximity Sensor (Silent). Beginners often think the "Advanced" sensor is better, but for many machines, the simple switch is actually more repeatable. If you choose the wrong sensor, your first layer will fail every time the room temperature changes. This guide explains why. Table of Contents 1. Mechanical Switches: Simple but Bouncy 2. Inductive Sensors: The Metal Detector 3. The Hidden Killer: Temperature Drift 4. Selection Summary Advertisement 1. Mechanical Switches: Simple but Bouncy A mechanical endstop is just a spring-loaded button. When the machine hits it, the circuit closes. Pros: Immune to heat, humidity, and material ty...

NEMA 17 vs NEMA 23: Torque, Speed, and When to Upgrade

When building a CNC router or upgrading a 3D printer, the first question is usually: "Is NEMA 17 enough, or do I need NEMA 23?" Most beginners look at the Holding Torque and stop there. This is a mistake. A NEMA 23 motor isn't just "stronger"—it is physically different in ways that affect your speed, your driver choice, and your machine's ability to avoid missed steps. If you choose a NEMA 17 for a heavy gantry, it is far more likely to overheat or lose steps under cutting load. If you choose NEMA 23 for a fast 3D printer, it might actually run slower than the smaller motor. This guide explains the engineering limits of each frame size. Table of Contents 1. Physical Difference (The Frame Size) 2. Torque & Speed (The Inductance Trap) 3. Driver Compatibility 4. Selection Summary Advertisement 1. Physical Difference (The Frame Size) "NEMA" is just a standard for ...

Stepper vs Servo Motor: Torque, Lost Steps & Control Explained

In automation design, the choice between a Stepper Motor and a Servo Motor is often decided by budget. But looking at the price tag alone is a mistake that leads to machine failure. Steppers are excellent for holding loads stationary (high holding torque). Servos are kings of high-speed motion. If you choose a stepper for a high-speed application, it will lose torque and "miss steps." If you choose a servo for a simple low-speed application, you have wasted $500. This guide explains the physics behind the choice. Table of Contents 1. Open Loop vs. Closed Loop (The Risk) 2. The Torque Curve: Speed Kills Steppers 3. Inertia Mismatch 4. Selection Summary Advertisement 1. Open Loop vs. Closed Loop (The Risk) The biggest difference is not the motor itself, but how it is controlled. Figure 1: Steppers run "blind" (Open Loop). Servos use an encoder to verify position (Closed Loop). ...

Servo vs. Stepper Motors: The Engineer's Guide

Figure 1: Visual comparison . Steppers (Left) are dense and simple. Servos (Right) are longer and include a visible feedback encoder housing on the rear. The Million Dollar Question: "Which Motor Do I Need?" If you are designing a CNC machine, a packaging robot, or a conveyor system, you face the same dilemma every time: Stepper or Servo? Make the wrong choice, and you face two disasters: The Stepper Trap: Your machine "loses steps" (positional error) without knowing it, scrapping parts. The Servo Trap: You spend $5,000 on a system that could have been done for $500, blowing your budget. This guide bridges the gap between mechanical requirements and electrical reality. Advertisement 1. The Stepper Motor: The "Digital Ratchet" Think of a Stepper Motor like a very strong, magnetic ratchet. It divides a full rotation into equal steps (typically 200 steps per revolution, or 1.8°). Pros...

Pneumatic Cylinder Sizing: Bore, Force & Air Consumption

Figure 1: The "Pull" force is always weaker than the "Push" force because the rod takes up space. If you walk through any factory, you will hear the hiss of wasted compressed air. This is usually the sound of oversized pneumatic cylinders dumping energy. Many engineers size cylinders by "eyeballing it"—picking a 50mm bore because it "looks strong enough." This leads to sluggish cycle times and massive energy bills. This guide covers the physics of Force vs. Pressure , the critical difference between Extend and Retract force , and the often-ignored cost of Air Consumption . Advertisement 1. The Physics: F = P × A Pneumatics is simple: Pressure (PSI or Bar) acts on a Surface Area (Square Inches or mm²) to create Force. Force = Pressure × Area Unit Conversion Cheat Sheet: Pressure: 1 Bar = 0.1 MPa ≈ 14.5 PSI Force: 1 Newton (N) ≈ 0.225 lbs_force Area: 1 mm² ≈ 0.00155 in² ...

Gauss Elimination: Dynamic N x N Scaling (Part 5)

Figure 1: Visualizing dynamic matrix scaling for large engineering systems. Scaling Up: Handling N x N Systems In Part 4 , we looked at the basic user interface. But engineering problems aren't fixed at 3x3. A truss analysis might need 10 equations; a thermal grid might need 100. A professional Excel tool must be Dynamic . It should automatically resize the input table based on the user's needs, clearing old data and preparing fresh cells for input. Search for Excel Power Programming Books Advertisement 1. User Input for Dimensions The process starts with a simple input request. In our design, clicking "Main Menu" > "New Equations" triggers a VBA InputBox or UserForm asking for the number of variables (N). Figure 2: The user selects "New Equations" from the main menu. For this example, let's input 10 to simulate a larger structural problem. ...