Skip to main content

Posts

Showing posts with the label Arduino

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...

Stop trying to be a hero. Start being a mechanic.

Get the book →

The Sheet Mechanic on Amazon. Affiliate link, I earn from qualifying purchases.

LJ12A3 Sensor Wiring: Safely Connecting 12V/24V to 5V Logic

The Failure Scenario: You bought an LJ12A3 sensor because it's cheap and industrial. You hook it up to your 12V or 24V power supply. Then, you connect the signal wire directly to your 3D printer mainboard (which runs on 5V or 3.3V). Result: You just fried your microcontroller. The sensor sent 12V straight into a pin designed for 5V. Inductive sensors typically require 6V–36V to operate, but most controllers (Arduino, ESP32, STM32) can only handle 3.3V or 5V signals . You need a "Logic Level Shifter." This guide shows you the three safest ways to fix this. Table of Contents 1. The Voltage Mismatch Problem 2. Method A: The Voltage Divider (Resistors) 3. Method B: The Diode Trick (BAT85) 4. Method C: The Optocoupler (Industrial) Advertisement 1. The Voltage Mismatch Problem Most industrial sensors (like the LJ12A3 ) are designed for 24V PLC systems. While they *might* turn on at 5V, they ...

How to Build a Robot: A Beginner's Roadmap (LEGO to AI)

Robots are no longer just sci-fi fantasies; they are an integral part of our daily lives, from the Roomba cleaning our floors to complex arms assembling our cars. While the core concept remains the same—machines created to simplify life or perform dangerous tasks—the technology to build them has advanced massively. Figure 1: Building a robot is now accessible to anyone with a soldering iron and curiosity. Many of us feel unqualified to make a robot , assuming it requires a PhD in engineering. However, thanks to the democratization of technology, building a basic prototype is now accessible to anyone. Advertisement Level 1: The Entry Point (LEGO & Modular Kits) For years, LEGO Mindstorms NXT was the gold standard. While NXT is now a classic, the torch has been passed to the LEGO Education SPIKE Prime and Robot Inventor series. These kits are vital because they teach the logic of robotics without the frustration of soldering. ...