FreeCAD and Arduino Smart Systems Notes

FreeCAD Principles and 3D Modeling

Polyline Tool: Draws continuous 2D sketch outlines consisting of connected straight line se


gments.

  • Sketch Constraints:

    • Horizontal Constraint: Forces a line segment to remain strictly horizontal.

    • Distance Constraint: Defines exact linear dimensions (e.g., setting an edge length to 60 mm60\,\text{mm}).

  • 3D Solid Operations:

    • Pad: Extrudes a closed 2D sketch profile to give it a 3D thickness.

    • Pocket: Removes material from a solid body using a closed 2D shape (e.g., creating cylindrical holes or cable openings).

  • Reference Planes and Faces: Selecting specific faces or utilizing a Datum Plane ensures new sketches align accurately relative to existing geometry.

  • Construction Geometry: Acts as non-printing visual guide lines or shapes (e.g., construction circles) to position features accurately without altering solid features.

  • Fillet Feature:

    • Rounds off sharp internal or external corners and edges.

    • Increasing a fillet radius from 3 mm3\,\text{mm} to 8 mm8\,\text{mm} increases the curvature along the edge.

    • Provides advantages such as reduced stress concentrations, safer physical handling, and improved aesthetics.

Electronics and Robotics Fundamentals

  • Microcontrollers: An Arduino board serves as a programmable controller that reads input signals, processes data, and controls electronic output components.

  • Input Components:

    • Ultrasonic Sensor: Detects object proximity and measures distance.

    • Push Button & Potentiometer: Capture user interaction and manual control adjustments.

  • Output Components and Actuators:

    • Servo Motor: Produces mechanical movement based on dynamic control signals.

    • LED: Emits light signals in response to system states.

  • Circuit Protection and Resistance:

    • Resistors connected in series with LEDs limit current flow to prevent LED damage.

    • Under identical electrical conditions, a resistor with higher resistance allows less current to flow compared to one with lower resistance.

Arduino Smart Ventilation Control System

Arduino Uno connected to a potentiometer and a servo motor
  • neCompoSystemnts and Roles:

    • Input Component: Potentiometer connected to analogue pin A0\text{A0}.

    • Output Actuator: Servo motor (SM-S2309S) connected to digital pin 99, physically controlling the position of the ventilation flap.

    • Controller: Arduino Uno board processing analogue inputs and commanding the servo output.

  • Analogue Input Processing:

    • analogRead(potPin) reads variable analogue input levels from pin A0\text{A0}.

    • On a standard Arduino Uno, analogRead() outputs an integer value between a minimum of 00 and a maximum of 10231023.

    • potValue stores the raw reading for processing.

  • Value Mapping and Servo Command:

    • servoAngle = map(potValue, 0, 1023, 0, 180) re-maps input values from range [0,1023][0, 1023] to a servo angular range of [0∘,180∘][0^\circ, 180^\circ].

    • ventilationServo.write(servoAngle) sends the mapped angle to the servo motor.

    • A calculated servoAngle of 9090 shifts the servo motor shaft to approximately a 90∘90^\circ midpoint position.

  • Continuous System Execution:

    • Executing statements inside the loop() function continuously polls the potentiometer reading.

    • .



    • Ensures real-time repositioning of the servo motor whenever the user adjusts the control knob