Designing the Electronics and Mounts for an Autonomous Lawn Mower

Designing the Electronics and Mounts for an Autonomous Lawn Mower

An autonomous mower finishes a rough-ground run with a lifted board corner and a motor connector rubbing against its steel tray. The electronics still operate, but the mount must resist vibration and preserve clearance around the cutting-motor connection.

The startup's mower followed a mapped route, avoided garden borders, and drove a brushless cutting motor. The robotics engineer led hardware integration. His team already had the sensor and motor-control circuits, but the board outline came from a development kit and the enclosure was too wide for the production chassis. The next iteration had to package the controls, drivers, battery connections, and service ports as one assembly.

Split the quiet signals from the motor current

The main board used an STM32G474 microcontroller, a TJA1051 CAN transceiver, wheel encoders, a bumper input, and ultrasonic obstacle sensors. A separate power board carried a DRV8323 gate driver for the brushless cutting motor and two DRV8876 drivers for the left and right wheel motors. The 24 V battery input had reverse-polarity and transient protection.

The mechanical engineer set the main controller outline at 112 by 82 millimeters and the power board at 96 by 68. Both used four layers. She kept encoder and obstacle-sensor lines away from the motor-switching nodes. The boards connected through a keyed 14-pin header, with high-current paths on screw terminals near the chassis battery tray.

The Flux agent developed the schematic and board layout from the mower's signal and motor requirements. The mechanical engineer checked the driver ratings against the motor datasheets, updated the BOM, and simulated the 24 V input and driver supply. Design rule checks found that a wheel-encoder trace crossed the power board's switching region; she moved it to an inner layer and reviewed the return path.

Mount the boards to the chassis, not to an idea

The controls engineer imported the chassis STEP model, motor assemblies, battery tray, and blade-deck cover. The controller sat under a removable rear service panel, while the power board stayed beside the battery. Four existing M5 holes in the tray defined the mount location. The controller needed 12 millimeters of clearance from the deck cover and enough room to unplug its sensor connectors.

The first model used hard plastic standoffs. The robotics engineer replaced them with four rubber isolators and a 2-millimeter 6061 aluminum carrier plate. The plate bridged the chassis holes and supported both boards on separate 4-millimeter-high bosses. A 1-millimeter PC/ABS cover shielded the controller from grass clippings, while an IP65 gasket followed its perimeter.

The controls engineer imported the connector STEP models and checked the assembly in X-ray view. The main board's battery connector hit the service-panel lip by 1.6 millimeters. He rotated the keyed header and moved the board 5 millimeters toward the battery tray. The power board's terminal block then had a direct cable path, and the service connector remained reachable with the cover open.

The carrier plate needed to stay stiff as the mower crossed uneven ground. The controls engineer added a shallow rib between the two board areas and moved the rubber isolators to the four chassis corners. He reviewed the carrier under a vibration load and checked that the board bosses did not flex. A cable clamp secured the motor lead before it reached the power board, preventing the connector from taking the cable's weight.

The team modeled the full stack height, including the tallest capacitor, the connector housings, and the service cover. A component sat 0.7 millimeters too close to the cover in the first X-ray view. The mechanical engineer changed its orientation; the controls engineer added a 2-millimeter relief to the cover without reducing the gasket land. The final assembly preserved the 12-millimeter deck clearance and the original M5 chassis points.

Requests from the rough-lawn review

Design a mower controller for two wheel motors, a brushless cutting motor, encoders, bump sensing, and ultrasonic obstacle inputs. Keep the 24 V battery interface and expose the service connector under the rear panel.

Use an STM32G474 and TJA1051 on the 112 by 82 millimeter control board. Keep encoder signals away from motor switching, and connect the separate power board through a keyed 14-pin header.

Fit both boards on the 2-millimeter aluminum carrier at the four M5 chassis points. Preserve 12 millimeters under the deck cover, isolate vibration, and show battery and motor cable bends in the assembly.

The second mower returned from the test route intact

The mechanical engineer and the controls engineer completed the board and mount review in an afternoon. They checked motor traces, encoder paths, connector positions, board heights, isolators, cover seal, and cable clamps together. The Flux agent updated the BOM and mechanical assembly as the board and carrier changed. The robotics engineer reviewed the service sequence and approved the final mounting points.

The production package included the four-layer controller board, four-layer power board, motor drivers, 24 V protection, sensor interfaces, carrier plate, isolators, PC/ABS cover, gasket, and cable clamp. the startup exported Gerbers, BOM, pick-and-place data, and STEP files for the carrier and cover. The assembler received the board files with the same revision as the chassis drawing.

On the next field route, the boards remained seated and the motor connector stayed clear of the tray. The mower stopped at the bumper and ultrasonic test points, then resumed its mapped path. The maintenance engineer could open the rear cover and inspect the board without removing the blade deck.

The robotics engineer added a photo of the board carrier and the connector map to the service packet. The change was small compared with the motor-control redesign, but it removed a recurring failure point from the test plan. The new design treated the controller, power stage, mount, and cable restraints as parts of one machine.

An outdoor mower integration checklist

  • Separate low-level sensor signals from motor switching and battery connections.
  • Check each driver against motor current, supply, and thermal requirements.
  • Import the chassis, battery tray, deck cover, and connector models before placement.
  • Use vibration isolation and secure heavy cables near their board connections.
  • Verify gasket land, deck clearance, service access, and component heights in X-ray view.
  • Inspect the assembled carrier on the mower before continuing field trials.

Start your project at flux.ai

About the author

Matthias Wagner

Founder & CEO at Flux

Matthias is the Founder and CEO of Flux, a hardware design platform that's revolutionizing how teams create and iterate on circuits. Find him on Flux @natarius.

Let’s start building.

Let’s build your idea together. All you need to do is describe what you want to make, or what problem you want to solve. Flux will work with you to make it a reality.

Try it Free
Close-up of a Flux-designed printed circuit board