Overview
The kinematics experiment provides a comprehensive study of 1D motion. You can measure position vs. time and calculate velocity and acceleration using either camera-based tracking or distance sensors (ultrasonic or ToF laser).Physics Theory
Fundamental Kinematic Quantities
Position: - Location as a function of time Velocity: - Rate of change of position Acceleration: - Rate of change of velocityTypes of Motion
Uniform Motion (constant velocity): Uniformly Accelerated Motion: General Motion:- Position data collected experimentally
- Velocity from numerical differentiation:
- Acceleration from second derivative:
Measurement Methods
- Camera Tracking
- Distance Sensors
- Ultrasonic Sensor
Video-Based Position Tracking
Track a colored object moving in 1D (horizontal or vertical) using OpenCV.Source:~/workspace/source/Kinemactic/kinematicCam/analisis.pyHardware Requirements
- Camera (webcam, USB camera, phone)
- Colored marker on moving object
- Ruler or calibration markers (known distance)
- Track or path for object motion
Setup Procedure
Setup Physical Track
- Create horizontal or vertical track
- Attach colored marker to moving object
- Place calibration markers at known distances
- Ensure motion is approximately 1D
Record Video
- Position camera perpendicular to motion
- Ensure full range of motion visible
- Record at consistent frame rate
- Adequate lighting
Configure Analysis
Frame Selection:
- Navigate:
d(next),a(previous) - Mark start:
i - Mark end:
f
- Select ROI around moving object
- Automatic HSV range detection
- Click on two points with known separation
- Enter distance in meters
- System calculates pixel-to-meter scale
Key Code Sections
Color Detection (analisis.py:85-99):analisis.py:107-135):analisis.py:145-180):Output
posicion_vs_tiempo.txt: Time and position data- Automatic plot of position vs. time
- Polynomial fit for acceleration estimation
Data Analysis
Velocity from Position Data
Numerical differentiation with smoothing:Plotting Results
Motion Classification
Automatically determine motion type:Curve Fitting
Linear (uniform motion):Experimental Scenarios
1. Constant Velocity Cart
Setup: Cart on air track or low-friction surface, gentle push Expected:- Linear x(t)
- Constant v
- a ≈ 0
2. Accelerated Cart
Setup: Cart on inclined plane or with hanging mass Expected:- Quadratic x(t)
- Linear v(t)
- Constant a
3. Oscillating Mass
Setup: Mass on spring or pendulum (viewed from side) Expected:- Sinusoidal x(t)
- Cosine v(t) (90° phase shift)
- Negative sine a(t)
4. Free Fall (Vertical)
Setup: Object dropped, camera viewing from side Expected:- Quadratic x(t)
- Linear v(t) with slope g
- a ≈ -9.8 m/s²
Tips for Best Results
Camera Method
Camera Method
- Mount camera very stably (tripod essential)
- Use high-contrast colored marker
- Ensure marker always visible (no occlusion)
- Adequate frame rate (30+ FPS)
- Minimize parallax (camera perpendicular)
- Measure calibration distance accurately
ToF Sensor
ToF Sensor
- Mount sensor rigidly
- Align perpendicular to motion
- Use flat, non-reflective target
- Shield from ambient IR light
- Choose appropriate filter for your motion
- Calibrate zero position
Data Processing
Data Processing
- Apply appropriate smoothing (balance noise vs. response)
- Use central difference for derivatives (more accurate)
- Check for systematic errors (offset, scaling)
- Estimate uncertainties from repeated trials
- Plot raw and processed data together
Troubleshooting
| Issue | Camera Method | Sensor Method |
|---|---|---|
| Noisy position | Better lighting, less blur | Increase filter strength |
| Erratic velocity | More smoothing, higher FPS | Lower cutoff frequency |
| Lost tracking | Brighter marker, adjust HSV | Check alignment, target |
| Scale errors | Re-measure calibration distance | Verify sensor calibration |
| Time sync issues | Verify FPS, check frame drops | Check timer configuration |
Advanced Analysis
Uncertainty Quantification
Frequency Analysis
For periodic motion:Next Steps
Experiments Overview
Explore other physics experiments
Data Analysis Guide
Advanced filtering and analysis techniques