Posts

Week Four

Image
Week Four This Week's Overview: We constructed the "window's" mechanism with our stepping motor and 3D printed gears and actuator. We also created a structure to help demonstrate how our system operates. It is composed of 2 parts: an enclosed box housing our circuit (to indicate that our system is embedded inside the car) and an acrylic box that acts as a gas chamber to help us test our system in a closed environment. Main Tasks: 1) We changed our air quality sensor to another calibrated sensor:  Figure 1: MQ-135 Gas Sensor [1]. This MQ-135 measures the CO2 and other organic compounds that are found in the air. As opposed our old MQ-135 sensor, we were able to measure sensible values because it was pre-calibrated.  We used this equation in the code: CO2 (ppm) = A x (R_s / R_0)^(-B) R_s = ((V_in - V_out) / V_out) / RL where  R_s:  sensor resistance at a certain gas level             R_0:  sensor resistance in clean air ...

Week Three

Image
  Week Three This Week's Overview: We constructed the complete circuit and produced a cohesive code that performs the requirements of our gas safety system. Main Tasks: 1) We tackled the issues that arose last week: - Since stepper motors have high accuracies, they can be instructed to rotate to a certain position and easily return to their original position when needed. Therefore, in an attempt to avoid replacing them for another type of motor (servo motor), we changed its full-step sequence to a half-step sequence in the code which made the pace faster: half_step_sequence = [     [1, 0, 0, 0],     [1, 1, 0, 0],     [0, 1, 0, 0],     [0, 1, 1, 0],     [0, 0, 1, 0],     [0, 0, 1, 1],     [0, 0, 0, 1],     [1, 0, 0, 1], ] Additionally, we specified the number of steps it would take to open up the window by 5 cm ( 3200 steps) and the time between each step ( 2 ms) to control the motor's speed: STEPS_PER...