Building Mechatronic Systems From Scratch
The book Mechatronics For The Evil Genius 25 Build It Yourself Projects by Scott D. Johnsson covers microcontroller-based automation, motor control, sensors, and robotics. It is aimed at hobbyists who want to move beyond basic LED blinking and build systems that sense, decide, and act. I built the servo scanner, the magnetic lift, and the digital thermometer from that book. Here is what actually happens when you follow the instructions.
Getting Started With Mechatronics For The Evil Genius 25 Build It Yourself Projects
You need a few things before opening the first project. A multimeter that measures continuity. A soldering iron with a fine tip. A decent breadboard. And a microcontroller board. The book uses a PIC16F887 on a demo board, which is older but still functional. You can substitute with an Arduino or a modern clone if you prefer. The book assumes you know basic electronics. What it does not assume is that you know how to handle real world mess. That gap is where most people stall out.
Project One: The Servo Scanner
This project builds a rotating sensor platform using a servo motor and a photocell. The idea is simple. The servo scans back and forth. The light sensor reads values. The microcontroller processes them and displays something. First step is wiring the servo. Three wires. Power, ground, signal. Do not skip checking the voltage. Some servos want 5V. Others take 6V. Hook it up wrong and you will burn something out in about thirty seconds. The photocell goes into a voltage divider circuit. Two resistors. One is the photocell. The other is a fixed resistor. The midpoint connects to an analog input pin. That is it. Nothing fancy.
Get the Full Details

I ran into a problem where the servo jittered constantly. The code was fine. The breadboard connections were fine. The issue was power. The servo and the microcontroller were sharing a USB power source. When the servo moved, the voltage dipped. The microcontroller reset or behaved erratically. I solved it by powering the servo from a separate 5V supply and joining the grounds. That grounding point matters. Always connect grounds together. Separate grounds that are not joined will cause the circuit to behave unpredictably.
Project Two: The Magnetic Lift
This one uses an electromagnetic coil, a relay, and a sensor to create a lift mechanism. The concept is similar to how industrial solenoids work. You send current through a coil. It creates a magnetic field. A ferrous object moves toward the coil. You turn it off. The object drops. The book provides the schematic. The relay coils draw more current than a microcontroller pin can handle. That is why you need a transistor switch. The microcontroller controls the transistor base. The transistor switches the relay. The relay switches the coil. This is basic driver circuit stuff but people still mess it up. I forgot the flyback diode on my first build. When the coil de-energizes, it produces a voltage spike. Without the diode to handle that spike, the relay contacts weld shut or the transistor dies. The fix was adding a 1N4001 diode across the coil, cathode to positive, anode to the switching side. Simple. Cost about three cents. Saved me replacing a $2 transistor.
Project Three: The Digital Thermometer
A thermistor feeds into the same voltage divider setup from the first project. The microcontroller reads the analog voltage. The code converts that voltage to resistance using the divider equation. Then it converts resistance to temperature using the Steinhart-Hart equation or a lookup table. The Steinhart-Hart coefficients matter. They are specific to your thermistor. If you use generic values, your temperature reading will be off by several degrees. The datasheet for the thermistor provides the coefficients. Read the datasheet. Don't skip it. I built this project with a 10K thermistor and used default coefficients from the internet. My readings were consistently two degrees too high. I switched to the coefficients from the Vishay datasheet and the accuracy improved to within half a degree. That kind of detail separates a working project from one that just sort of works.

Understanding the Core Concepts
Mechatronics combines mechanics, electronics, and software. The book structures the projects to teach each layer separately and then combine them. You learn the electronics first with simple circuits. Then you add the microcontroller logic. Then you add the mechanical components. Each project builds on the last. The microcontroller code in the book is written in PIC assembly for some projects and BASIC for others. If you are unfamiliar with either language, spend time understanding the flow before worrying about syntax. The logic is what matters. Syntax you can look up.
Common Problems and How to Fix Them
Project boards from the book are available as downloads. The PCB layouts are straightforward single-sided designs. You can etch them yourself or order them from a fabrication house. Ordering is faster and usually cheaper than etching if you only need a couple boards. Component sourcing is another area where people get stuck. The book lists specific part numbers. Some of those parts are harder to find now. Resistors and capacitors are easy. Integrated circuits are sometimes discontinued. I found that most of the older PIC chips have direct replacements from Microchip or can be substituted with modern equivalents if you adjust the code slightly. One thing the book does not cover well is noise. Your circuits will pick up interference. Long wires act as antennas. Unfiltered power supplies introduce ripple. Keep wire runs short. Add decoupling capacitors near the ICs. Use a scope if you have one to check your power rail. If you do not have a scope, a multimeter in AC voltage mode can catch obvious ripple. Anything over 50 millivolts AC on a 5V rail is worth investigating.
When This Book Falls Short
The projects are solid but they reflect the technology of the mid-2000s. Some approaches are dated. The servo control uses pulse width modulation generated through timing loops rather than hardware PWM modules. Modern microcontrollers have dedicated PWM peripherals. Using them gives you more accurate timing and frees up CPU cycles. The book also does not cover wireless communication. Adding Bluetooth or WiFi to any of these projects requires additional hardware and code changes. That is not a flaw in the book. It was published before that was standard for hobbyist projects. If you want to add connectivity, look into ESP8266 or ESP32 modules as add-ons. Another limitation is the lack of troubleshooting guidance. The book shows you the working version. It does not explain what to do when your version does not work. Debugging skills come from experience. Start by verifying power. Check every connection. Measure voltages at key points. Isolate the problem to a section. Test each section independently.

Building the Rest of the Projects
The remaining projects follow similar patterns. You will build a digital balance, a remote control car, a robotic arm, and other automation devices. Each one introduces a new concept. Motor drivers. Limit switches. Encoders. Communication protocols like I2C and SPI. The robotic arm project is one of the more complex builds. It uses multiple servos, potentiometers for position feedback, and a wrist-mounted joystick for control. The mechanics require careful alignment. The servos must be centered before you attach the arms. If they are not centered, the range of motion will be limited and uneven. I wasted an hour on this because I did not center the servos properly. Take five minutes to do it right the first time. The code for the arm uses a simple mapping function to convert joystick values to servo positions. The joystick returns analog values from the potentiometers. Those values get mapped to servo pulse widths. If you change the joystick type or the servo type, you will need to adjust the mapping range.
Where to Find Resources
The book includes downloadable schematics, PCB layouts, and code. These files are typically available from the publisher's website or from the author. The publisher for this edition is McGraw-Hill. Search for the book title plus the word resources or downloads. Some communities like Reddit's r/diy and r/AskElectronics also have threads where people share solutions and modifications. If you are looking for the full project list, the book contains twenty-five projects covering light-following robots, digital scales, magnetic locks, alarms, and more. Each project builds a skill that the next one depends on. Do not skip ahead. The knowledge stacks.
What You Should Know Before Starting
Soldering takes practice. Your first joints will look bad. They might not work. That is normal. Heat the joint, not the solder. Apply the iron to both the component lead and the pad. Wait two seconds. Apply the solder to the joint, not the iron. The solder should flow smoothly and form a concave shape. If it balls up, the joint is too cold or dirty. Reheat and try again. Reading schematics is a skill. The book uses standard symbols. If you are unsure about a symbol, look it up. There are many reference charts online. A triac looks different from a thyristor. A MOSFET is different from a BJT. Know the difference before you order parts or build the circuit. The most useful tool you can develop is patience. Mechatronics projects involve multiple systems interacting. Electronics, software, mechanics. Something will fail. It will almost certainly not be the thing you expect. Work through it methodically. Test one change at a time. Document what you try. You will thank yourself later when you need to reproduce a fix or go back and redo a project.

The book Mechatronics For The Evil Genius 25 Build It Yourself Projects is a practical resource for learning the fundamentals. It is not perfect. Some components are outdated. Some explanations could be clearer. But the hands-on approach works. You learn by building. The projects are real. The problems you encounter are real. Solving them is the actual education.