# ๐Ÿ› ๏ธ Mechanical Design ## ๐Ÿš— Chassis Structure The car chassis is designed to ensure: - Stable driving on straight sections and in turns. - Sufficient space for electronics and wiring. - Optimal weight balance between the front and rear axles. The main construction is based on a **layered plywood (โ€œstackingโ€) system** โ€“ this allows creating multiple levels for electronics while keeping the structure lightweight but strong. --- ## ๐Ÿ”ง Component Layout - **DC motor with gear reduction** mounted at the rear. - 3D-printed gear reducers increase torque and reduce speed for more stable driving. - **Steering mechanism with servo** uses a **rack-and-pinion gear system** (3D-printed). - The servoโ€™s rotary motion is converted into linear rack motion. - Ensures precise and durable steering compared to direct servo mounting. - **Arduino Mega** placed in the center of the chassis to minimize cable lengths. - **Batteries** located close to Arduino for compact wiring. --- ## ๐Ÿ“ก Sensor Placement Variants ### Variant A โ€“ Without IMU (5ร— ToF sensors) - **Front ToF** โ€“ obstacle detection. - **Four side ToFs** (two on each side) โ€“ wall-following and angle measurement. - Purely geometric control from multiple distance points. ### Variant B โ€“ With IMU (3ร— ToF + IMU) - **Front ToF** โ€“ obstacle detection. - **Two side ToFs** (front + rear on one side) โ€“ ฮ”x calculation for wall alignment. - **IMU** โ€“ provides yaw/orientation for turns, compensates for fewer ToFs. - Same **PD algorithm**, but input data comes from ToFs + IMU fusion. --- ## ๐Ÿ› ๏ธ Design Rationale - The **plywood stacking system** provides flexibility โ€“ layers can be reconfigured quickly. - **3D-printed gear reducers** allow torque customization per track. - **Rack-and-pinion steering** ensures reliability and prevents servo overload. - **Lower center of gravity** improves stability in sharp turns. - **Modular layout** makes it easy to swap faulty sensors (as proven by IMU fallback integration). --- ## ๐Ÿ”ฎ Future Development Opportunities - Create a **protective 3D-printed body shell** to safeguard electronics. - Upgrade the **gear rack system** with metal parts for long-term durability. - Integrate a **suspension system** for tracks with uneven surfaces. - Add **mounting slots for spare sensors**, so replacement in emergencies is quicker. ---