The Rate of the Reaction Project ******************************** Description ============ The rate of the reaction project is composed of a carbon dioxide sensor that in located on the tight lid of a jar. When chemicals are added to the jar, a chemical reaction takes place, and carbon dioxide forms. The sensor measures the amount of carbon dioxide produced per time. Learning Objectives =================== - Rate of a chemical reaction - Design and make an application based on the engineering design process - Replicate the wiring connection and the Python code used on the Raspberry Pi - Relate science concepts to real-life applications Materials Needed ================ - Raspberry Pi with micro SD card with Raspbian - Breadboard & Jumper wires - Carbon dioxide sensor - Glue gun - Transparent jar with a tight lid - Baking soda and vinegar Setup and Functionality ======================= When vinegar and acid are added together and the jar is closed, carbon dioxide gas is produced. The amount of the gas produced per time indicates the rate of the reaction. Circuitry and Electronics ========================== The Raspberry Pi doesn’t have an analog input pin. So to read the analog output of the sensor, we need to use an analog to digital converter (ADC), in this case an MCP3008. In this case, connect: 1. The VCC to 5V 2. The GND to a ground pin 3. The analogue pin to CH0 (pin 1) of the MCP3008 .. image:: Images/mcp.jpg :align: center For the MCP3008, connect: 1. MCP3008 VDD to Raspberry Pi 3.3V 2. MCP3008 VREF to Raspberry Pi 3.3V 3. MCP3008 AGND to Raspberry Pi GND 4. MCP3008 DGND to Raspberry Pi GND 5. MCP3008 CLK to Raspberry Pi SCLK (pin 23) 6. MCP3008 DOUT to Raspberry Pi MISO (pin 21) 7. MCP3008 DIN to Raspberry Pi MOSI (pin 19) 8. MCP3008 CS/SHDN to Raspberry Pi CE0 (pin 24) The wiring of the Raspberry Pi to the breadboard, ADC converter and the sensor are shown in the figure below: .. image:: Circuits/RateOfReaction.png :align: center Programming =========== .. literalinclude:: Code/RateOfReaction.py Science Concepts and Skills =========================== Students will learn about the rate of the reaction, chemical properties of matter, reactants, products, chemical equation, and balancing chemical equations. When acetic acid (vinegar) is added to sodium bicarbonate (baking soda), carbon dioxide gas is produced based on the following equation: NaHCO3 + CH3COOH → CO2+ H2O + NaCH3COO baking soda (sodium bicarbonate) plus vinegar (acetic acid) yields carbon dioxide gas plus water plus sodium acetate The equation can also be written as: NaHCO3 + HC2H3O2 → NaC2H3O2 + H2O + CO2 The amount of carbon dioxide produced at certain time intervals is recorded by the sensor and the data is collected. Students can use the data collected to learn or practice graphing using various software such as Google sheets or Excel and will learn how to find the rate of the reaction from the graph. The rate of the reaction is calculated as the slope of the best fit line Slope=y2-y1/x2-x1 where y2 and y1 are values on the y-axis that indicate amount of carbon dioxide produced (change in amount) and x2 and x1 indicate time (change in time) Rate of reaction=y2-y1/x2-x1 which is rise over run indicating the amount of gas produced per time. `Tutorial Video`_. .. _Tutorial Video: https://www.youtube.com/watch?v=6mAqX31RRJU **Flex your brain!** Can you build a device that would measure the rate of an endothermic or exothermic chemical reaction if no gas is produced?