{"id":49267,"date":"2019-01-21T12:42:24","date_gmt":"2019-01-21T12:42:24","guid":{"rendered":"https:\/\/www.raspberrypi.org\/?p=49267"},"modified":"2021-09-19T16:42:44","modified_gmt":"2021-09-19T15:42:44","slug":"raspberry-pi-monitored-chemical-reactor","status":"publish","type":"post","link":"https:\/\/www.raspberrypi.org\/blog\/raspberry-pi-monitored-chemical-reactor\/","title":{"rendered":"Raspberry Pi-monitored chemical reactor ?"},"content":{"rendered":"
In Hello World issue 7, Steven Weir introduces a Raspberry Pi into the classroom to monitor a classic science experiment.<\/strong><\/p>\n A Raspberry Pi can be used to monitor the reaction between hydrochloric acid and sodium thiosulphate to complement a popular GCSE Chemistry practical.<\/p>\n The rate of reaction between hydrochloric acid and sodium thiosulphate is typically studied as part of GCSE Chemistry. The experiment involves measuring the time required for the reaction mixture to turn cloudy, due to the formation of sulphur as a precipitate. Students can then change the temperature or concentration of the reactants to study their effect on the rate of reaction. The time for the reaction mixture to turn cloudy is normally facilitated by recording the time a hand-drawn cross takes to become obscured when placed underneath a glass vessel holding the reaction mixture. This timing is prone to variability due to operator judgement of when the cross first becomes obscured. This variability can legitimately be discussed as part of the lesson. However, the element of operator judgement can be avoided using a Raspberry Pi-monitored chemical reactor.<\/p>\n Attached to a glass jar of approximate 80ml volume (the size is not critical) are two drinking straws, of which one houses a white LED (light-emitting diode) and the other a LDR (light-dependent resistor). The jar is covered in black tape to minimise intrusion of ambient light. The reactor is shown in Figure 1, along with details of other electrical components and connection instructions to a Raspberry Pi.<\/p>\n Figure 1 The Python code shown in Figure 2 should be run prior to addition of chemicals to the reactor. Instructions appear on the screen to prompt chemical additions and to start data collection.<\/p>\n Figure 2: Python code for the chemical reactor<\/p><\/div>\n Figure 3 shows the results from the experiment when 25ml 0.1M hydrochloric acid is reacted with 25ml 0.15M sodium thiosulphate at 20\u00b0C. The reaction is complete at the time the light transmission first reads 0, (i.e. complete obscuration of the light by the precipitate formation) \u2014 in this example, that time is 45.4s. For more advanced students, tangents can be drawn at various points on the curve, and gradients calculated to determine the maximum rate of reaction from various reaction conditions.<\/p>\n
<\/p>\nThe chemical reactor<\/h2>\n

A: Reactor covered in black tape
B: Drinking straw attached to the reactor, with a further straw inserted housing a white LED
C: Drinking straw attached to the reactor, with a further straw inserted housing a LDR
D: 220\u2126 resistor to connect to the LED and GPIO 23
E: Wire to connect to ground
F: Wire to connect to 3.3v supply
G: 1\u00b5F capacitor to connect to ground
H: Crocodile clip to connect to GPIO 27 (NB: the other end of the wire is situated in between the capacitor and the LDR)<\/p><\/div>\nResults<\/h2>\n
