Dealing with Diabetes: The Road to Developing an Artificial Pancreas
|Time Required||Average (6-10 days)|
|Prerequisites||Some familiarity with electronic circuits and using breadboards would be helpful, though it is not required for this project. Completion of a basic chemistry class is also recommended before trying this project.|
|Material Availability||A pump and other electronics parts must be specially ordered to do this project. See the Materials list for details. Estimated project time includes shipping of specialty components.|
|Cost||Average ($40 - $80)|
|Safety||Some parts of the circuit can get warm during normal operation. Do not leave the circuit operating when unattended. Be very careful with your wiring to prevent short circuits from happening; short circuits can get very hot and cause plastic parts of the circuit to melt.|
AbstractDo you hate shots? Do you complain about paper cuts? Imagine if you had to give yourself shots a couple of times a day, as well as prick your finger, on purpose, even more frequently. Of course, if you have diabetes you do not have to imagine this; it is your reality. People who have diabetes usually need to keep close track of how much sugar is in their blood (called their blood glucose levels) by testing a drop of blood from a finger prick. If there is too much sugar in their blood, some diabetics take insulin shots to decrease it. However, it can also be dangerous to have too little sugar in a person's blood. Because of this, one area of intense research right now is on making an artificial pancreas, or basically a device that automatically adjusts a person's blood sugar levels. In this science project, you will build a circuit that has to face some of the same issues that an artificial pancreas does. How hard will it be to get the sugar levels in the blood just right? Get ready to build your own artificial pancreas to find out!
Build a model of an artificial pancreas to investigate the challenges of getting such a device to work.
Cite This Page
Last edit date: 2018-02-19
Scientists and engineers are often motivated to do their work in order to help people out. One area in which that motivation is readily apparent is in the field of biomedical engineering, where an intense focus of research right now is on creating better insulin pumps and an artificial pancreas. What is the purpose of these devices? Such devices would help eliminate the procedures that a person living with diabetes has to do, as well as remove the nearly constant health decisions they have to make. Specifically, the devices would help people with diabetes control how much sugar is in their blood. It is a daunting goal; the pancreas has a very complex biological role that has to be mimicked by a combination of electronics, chemistry, and biology. This project will allow you to explore some of the complexities engineers and scientists face as they strive to create an artificial pancreas.
First, let us step back for a moment and have a quick crash course (or a refresher if you are already familiar) on diabetes. The body uses a simple sugar, called glucose, as its primary fuel. We get glucose from the food we eat. Both table sugar (sucrose) and other types of carbohydrates, such as starch (found in large quantities in pasta and other grain-rich foods), are broken down by our bodies to make glucose.
Because food can be broken down to make glucose, the level of glucose in a person's blood—which is commonly referred to as the blood glucose level—usually goes up after he or she eats. See Figure 1 for typical blood glucose level fluctuations for a person over the course of a day. Note that blood glucose is typically measured in milligrams per deciliter (mg/dL).
Figure 1. This graph shows how a person's blood glucose levels may change over the course of a day, and how eating a meal with lots of sugar (sucrose) can affect blood glucose levels. The y-axis shows blood glucose levels (in mg/dL). (Image credits: adapted from a figure by Jakob Suckale, Michele Solimena, Wikimedia Commons, 2011)
Like most of the chemicals in your blood, glucose must be tightly controlled. The level of glucose in your blood is regulated by insulin, a hormone made by the pancreas. When blood glucose levels rise after eating a meal, the pancreas releases insulin, which causes cells in the body (such as liver, muscle, and fat cells) to take up glucose, removing it from the blood and storing it (as glycogen) to use for energy later. When the blood glucose levels start falling, the pancreas stops releasing insulin, and the stored glucose is used for energy. If blood glucose levels get too low, the pancreas may produce glucagon, a hormone that increases the levels. This process is how the pancreas and the hormones it produces are in charge of regulating blood glucose levels. Watch this video to see how blood glucose levels can change over time for different people.
However, in people with type 1 diabetes (which is caused by an autoimmune response, and was formerly known as juvenile diabetes), the pancreas no longer makes insulin. If left untreated, the blood glucose levels of a person with type 1 diabetes could be dangerously high, which is a condition called hyperglycemia. In type 2 diabetes—which is thought to be primarily caused by obesity, and makes up the vast majority of diabetes cases—a person has insulin resistance, which means their body does not respond to insulin, or their pancreas does not make enough insulin. Currently, a person with type 1 diabetes (and some with type 2 diabetes) must take insulin supplements to treat the condition.
While the solution for many diabetics is to take insulin, it is not that simple; many things have an effect on insulin levels in a person's body, including exercise, stress, what and how much they eat, just to name a few. And having blood glucose levels that are too high (hyperglycemia), or too low (hypoglycemia), can cause serious health problems. This leaves many type 1 diabetes patients constantly checking their blood glucose levels, calculating how their actions will change their levels, and adjusting their insulin doses to avoid a critical high or low. To get a sense of the effort involved, watch this video.
As previously discussed, to take away the difficulties of managing type 1 diabetes, scientists and engineers have set out to create improved insulin pumps and an artificial pancreas. Diabetics who take insulin supplements take them in the form of insulin injections (using a needle) or infusions using an insulin pump, like the one shown in Figure 2. However it is a done, currently a person who takes insulin must closely monitor his or her blood glucose levels to determine when, and how much, insulin to take. Insulin pumps are typically small, about the size of a cell phone, and the system usually includes a continuous glucose sensor that detects the amount of glucose in the person's blood and an electronic interface that is told how much insulin to give to the person. To see what it is like to use an insulin pump and continuous glucose sensor to manage type 1 diabetes, you can check out the video in the article by D. Grau in the Bibliography.
Figure 2. This picture shows an insulin pump attached to a person's body to infuse specific amounts of insulin.
Currently, auto-correcting (i.e., automatic) insulin pumps—which are also called artificial pancreases—automatically administer the right amount of insulin; however, they are unavailable to diabetics. But the idea of such a device is very promising and is an area of much active research. The video will give you a basic understanding of the goals of an artificial pancreas and the path to making one, but because this is a rapidly progressing field, you should do your own internet search to see what the current status of the research is.
Now that you have a better understanding of type 1 diabetes and what an artificial pancreas is, you may be wondering how you can work on something like that for a science fair project. In this project, you will get to find out by building a simplified model of an artificial pancreas system and investigating the challenges of getting such a device to work. Clearly, blood, insulin, and glucose are not readily available for a science project, but you can use other components to mimic some of the interactions and start designing and fine-tuning a model of an artificial pancreas. To do this, you will use some chemistry and create an electrical circuit. Specifically, you will use acid/base chemistry, where a basic solution represents high blood glucose levels, and a more neutral solution represents normal blood glucose levels in your model. A conductivity sensor will represent the glucose sensor, and control whether a pump in the electrical circuit turns on or not. When the solution is very basic, the conductivity sensor will make the electrical circuit run a pump. The pump will move an acidic solution, which represents insulin, into the basic solution to neutralize it. When the basic solution becomes more neutralized, the conductivity sensor will make the circuit stop powering the pump. This represents high blood glucose levels being lowered by the addition of insulin, until the glucose levels are normal and no more insulin needs to be added to the bloodstream. Figure 3 helps summarize the important information, and shows how the artificial pancreas model you will make in this project is similar to, and different from, a real artificial pancreas.
Figure 3. This flowchart shows how an artificial pancreas would work (on the left) and how those steps are similar to what is done in the model used in this project (on the right).
How acidic or basic a solution is, is measured by a scale called pH. For example, an acidic pH is below 7, such as lemon juice or vinegar. A basic pH is above 7, such as baking soda or bleach. A neutral pH is about 7, which is what water typically has. For a refresher on these topics, see the Science Buddies page on Acids, Bases, & the pH Scale.
In your artificial pancreas model, the acid/base chemical reaction that will be taking place is shown in Equation 1. A solution of baking soda (sodium bicarbonate, or NaHCO3), which is a base, will represent high blood glucose levels, and a solution of vinegar (acetic acid, or CH3COOH), which is an acid, will represent insulin. When acids and bases (like vinegar and baking soda, respectively) are mixed, a chemical reaction occurs (shown in Equation 1) that produces water (H2O) and bubbles of carbon dioxide gas (CO2). When equal amounts of base and acid are mixed together, the solution is neutralized. Keep in mind that this is not the reaction that occurs when insulin is added to change the blood glucose levels in a person! You are using these chemicals as substitutes in your model since baking soda and vinegar are easy-to-obtain household materials.
So how does the acidity or basicity of a solution control whether an electrical circuit runs a pump? It has to do with the fact that acidic and basic solutions are fairly conductive, which means that they can conduct electricity, or allow electrical current to flow through them. (Conductive materials also have lower electrical resistance.) Neutral solutions, on the other hand, are much less conductive (i.e., they have a higher resistance), so it is much harder for electrical current to flow through them. Because of this conductive difference, an electrical sensor can be made that can detect if a solution is acidic, basic or neutral. Specifically, in the artificial pancreas model you build in this project, a conductivity sensor is made from two metal wires (or electrodes) that are a certain distance apart in the solution. The more conductive the solution is, the more electrical current can flow through it from one electrode to the other. If the solution is not conductive at all, no current will flow.
When enough electrical current travels through the conductivity sensor, it causes a transistor in the circuit to activate a pump. A transistor is an electrical component that acts like a switch; if the transistor receives a high enough voltage, it can allow electrical current to travel through a different path of the circuit. In the circuit you will build for this project, the transistor will be connected to a pump so that when enough current flows through the conductivity sensor, it outputs a high voltage to the transistor, which allows current to flow through the pump and make it run. If there is not enough current going through the sensor, the pump will not run. Figure 4 gives an overview of how this works.
Lastly, the conductivity sensor is combined with other electrical components called potentiometers, which are a type of adjustable resistor. You will adjust the potentiometers in your model to control when the pump turns on. The conductivity sensor and the potentiometers together make up what is called a voltage divider, and this is technically what lets the conductivity sensor send the high voltage to the transistor to make the pump turn on. For a detailed explanation of how the circuit works, including a circuit diagram, see the FAQ section. You can also read more about basic electricity concepts in the Science Buddies Electricity, Magnetism, & Electromagnetism Tutorial.
Figure 4. This diagram shows how the circuit works. When the solution has a neutral pH, the sensor outputs a low voltage, so the transistor does not let any current flow through the pump. When the solution has a high pH, the sensor outputs a high voltage, which activates the transistor, causing current to flow through the pump, which then pumps liquid.
For more information on electronics and related terms (such as voltage, current, and resistance), see the Science Buddies Electronics Primer: Introduction.
Do you think it will be difficult to get the artificial pancreas to stop when it is supposed to, when the right amount of vinegar solution has been added to the baking soda solution? How accurate can the model be made to be? How are the challenges encountered when making this model similar to the challenges that engineers who are trying to make a real artificial pancreas system would face? Try this project to find out!
Terms and Concepts
- Blood glucose levels
- Type 1 diabetes
- Type 2 diabetes
- Insulin pump
- Continuous glucose sensor
- Artificial pancreas
- Electrical circuit
- Acid/base chemistry
- Baking soda
- Conductivity sensor
- Bus strips
- How do blood glucose levels typically change after a person eats a meal?
- What causes hypoglycemia and hyperglycemia?
- In what situations might a person with diabetes take an insulin shot?
- What do the different parts of the artificial pancreas model in this project represent in a real artificial pancreas system? How is the model different from the real thing? How is it similar?
- In this project, how do the electrodes control whether the pump is running?
Here are some useful resources on diabetes, blood glucose levels, insulin pumps, and artificial pancreases:
- Johnson, K. (2012, June 15). Diabetes and the Insulin Pump. WebMD. Retrieved June 19, 2014, from http://www.webmd.com/diabetes/insulin-pump
- Novo Nordisk. (n.d.). Facts About Diabetes. Retrieved June 9, 2014, from http://www.novonordisk.com/patients/diabetes-care/understanding-diabetes.html
- Khan Academy. (n.d.). Blood sugar levels. Retrieved June 9, 2014, from https://www.khanacademy.org/science/health-and-medicine/endocrinology-and-diabetes/v/blood-sugar-levels
- Juvenile Diabetes Research Foundation (JDRF). (2013, July 31). JDRF: Artificial Pancreas. Retrieved July 1, 2014, from https://www.youtube.com/watch?v=bOMtXCp_MCU
- Children's Healthcare of Atlanta. (2012, December 7). Living with Diabetes: Molly. Retrieved July 1, 2014, from https://www.youtube.com/watch?v=_t6-2CVwDCU
- Grau, D. (n.d.). Bionic Pancreas: A Father's Mission to Fight Type 1 Diabetes. Yahoo! News. Retrieved October 10, 2014, from http://news.yahoo.com/katie-couric-bionic-pancreas-104752872.html
These resources will give you some background information on acids, bases, pH, and conductivity:
- Science Buddies. (n.d.). Acids, Bases, & the pH Scale. Retrieved June 20, 2014, from http://www.sciencebuddies.org/science-fair-projects/project_ideas/Chem_AcidsBasespHScale.shtml
- Wikibooks. (2014, April 14). General Chemistry/Properties and Theories of Acids and Bases. Retrieved June 20, 2014, from http://en.wikibooks.org/w/index.php?title=General_Chemistry/Properties_and_Theories_of_Acids_and_Bases&oldid=2630322
You can check out these resources if you are just starting out with electronics:
- Taylor, C. (n.d.). Voltage, Current, Resistance, and Ohm's Law. SparkFun Electronics. Retrieved June 2, 2014 from https://learn.sparkfun.com/tutorials/voltage-current-resistance-and-ohms-law/electricity-basics
- Science Buddies Staff. (n.d.). How to Use a Breadboard. Retrieved September 25, 2015, from http://www.sciencebuddies.org/science-fair-projects/breadboard-tutorial
News Feed on This Topic
Materials and Equipment
Note: The electrical specifications of certain components—especially the MOSFET (a type of transistor)—are important for the circuit to work properly. We recommend purchasing the exact parts from Jameco, listed below, unless you are confident that you can find appropriate parts with equivalent specifications.
- Solderless breadboard; available from Jameco, manufacturer #WBU-301-R
- 330 kΩ resistor; available from Jameco, manufacturer #CF1/4W334JRC. Note: project only requires one, but minimum order quantity is ten.
- 100 kΩ resistor; available from Jameco, manufacturer #CF1/4W104JRC. Note: project only requires one, minimum order quantity is ten.
- Jumper wire kit; available from Jameco, manufacturer #WJW-70B-5
- N-channel MOSFET; available from Jameco, manufacturer #STP16NF06L
- 1 MΩ potentiometer; available from Jameco, manufacturer #18STS105
- 100 kΩ potentiometer; available from Jameco, manufacturer #18STS104
- 10 kΩ potentiometer; available from Jameco, manufacturer #18STS103
- Alligator clip test leads (4); available in 2-packs from Jameco, manufacturer #GAL02
- Battery holder for 8 AA batteries with wires; available from Jameco, manufacturer #BH-383-A
- AA batteries (8); available from Jameco or many other suppliers
- 24 AWG bare copper wire; available from Jameco, manufacturer #24BC
These items may be special ordered from Amazon or other suppliers:
- Bromothymol Blue Indicator solution 0.04% (w/v); available from Amazon.
- 12 V peristaltic liquid pump. The pump needs metal leads to connect alligator clips to it. A suitable pump is available from Amazon.com.
- Although the pump comes with some tubing (inner diameter (ID) 2 mm and outer diameter (OD) 4 mm), extra tubing that works with the pump is also needed. You will need at least 40 cm of silicone tubing with an inner diameter (ID) of 4 mm so you can fit it over the pump tubing. A suitable tube is available from Amazon.com.
- Digital scale with 0.1 g increments. A digital scale that would be suitable is the Fast Weigh MS-500-BLK Digital Pocket Scale; available from Amazon.com.
- Graduated cylinder, 100 mL or 250 mL; available from Amazon.com.
- Alternatively, a metric measuring cup could be used.
- If you are using a graduated cylinder, you will also want to have a funnel that fits with the top of the graduated cylinder.
- Optional: pH test strips; available from Amazon.com and aquarium pet stores.
These items may be found around your home or purchased locally:
- Piece of Styrofoam® (at least 4 cm × 7 cm); this could be part of a Styrofoam take-out container, or a small Styrofoam block.
- Bendable plastic drinking straw
- Scissors; in addition to cutting Styrofoam and a plastic straw, you will also need to cut some copper wire. Because of this, you will need a pair of scissors that you do not mind denting, or you could use a pair of wire cutters.
- Ruler, metric
- Baking soda (at least 90 g)
- Measuring cup or other small container to use for weighing baking soda on the scale
- Distilled white vinegar (at least 1 L)
- Distilled water (at least 1.2 L); available at your local grocery store.
- Mixing bowls (at least 3). Two will need to be able to hold at least 200 mL, or 0.25 quarts, each.
- Masking tape and a permanent marker for labeling bowls. Alternatively, small sticky notes and a pen or pencil could be used.
- Permanent marker
- Optional: Tape
- Lab notebook
Disclaimer: Science Buddies occasionally provides information (such as part numbers, supplier names, and supplier weblinks) to assist our users in locating specialty items for individual projects. The information is provided solely as a convenience to our users. We do our best to make sure that part numbers and descriptions are accurate when first listed. However, since part numbers do change as items are obsoleted or improved, please send us an email if you run across any parts that are no longer available. We also do our best to make sure that any listed supplier provides prompt, courteous service. Science Buddies does participate in affiliate programs with Home Science Tools, Amazon.com, Carolina Biological, and Jameco Electronics. Proceeds from the affiliate programs help support Science Buddies, a 501(c)(3) public charity. If you have any comments (positive or negative) related to purchases you've made for science fair projects from recommendations on our site, please let us know. Write to us at firstname.lastname@example.org.
Assembling the Circuit on the Breadboard
In this section, you will assemble a circuit on a breadboard. If you have never used a breadboard before, you should refer to the Science Buddies reference How to Use a Breadboard before you proceed. You can follow a step-by-step slideshow that will show you how to put components in the breadboard one at a time. Alternatively, Table 1 lists each component and its location on the breadboard. Important: read these notes before you proceed.
- The colors of your jumper wires and alligator clips may vary. This is OK, they do not need to match the colors in the diagrams.
- Resistors are marked with colored bands. These colors do matter. Make sure you pick the right resistors for each step according to the markings.
- It matters which direction some of the components are facing. Make sure you read the slideshow captions for any special notes about inserting each part.
- Your potentiometers have different resistance values, but they all look the same. They should come in individually labeled bags. Before you take them all out, use a permanent marker to label them 1 MΩ, 100 kΩ, and 10 kΩ, so you do not lose track of which is which.
- This section only shows you how to assemble the circuit. For a detailed explanation of how the circuit works, see the Help section.
Click through the slideshow for step-by-step breadboard diagrams of the circuit.
|Part name||Picture||Breadboard Symbol||Location|
|330 kΩ resistor||
||B1 to (+) bus|
|100 kΩ resistor||
||C1 to (-) bus|
|Jumper wire||A5 to (-) bus
A7 to A13
A14 to A17
A18 to A21
A22 to (-) bus
||B5, B6, B7. Large metal tab must face to the left, writing should face to the right.|
|1 MΩ potentiometer||B12, B13, B14|
|100 kΩ potentiometer||B16, B17 B18|
|10 kΩ potentiometer||B20, B21, B22|
|Pump||Use alligator clips and jumper wires to connect terminals to E6 and (+) bus|
|Conductivity sensor||Use alligator clips and jumper wires to connect to E1 and C7. See next section for directions to build the sensor.|
|8xAA battery pack||Red wire to (+) bus, black wire to (-) bus|
Making the Conductivity Sensor
In this part of the procedure, you will make a conductivity sensor and connect it to your breadboard circuit. The sensor will be made using bare copper wire, a straw, scissors, and a small piece of flat Styrofoam.
- Cut out a small segment of plastic straw, about 6 centimeters (cm) long.
- If possible, one end of the segment should have the ridged, bendable part of the straw on it; this will help keep the wire on the sensor.
- Take a spool of bare copper wire and cut two pieces that are about 15–16 cm long each. Note: Cutting the wire with scissors may dent the scissors, so use a pair of scissors that may be alright to dent, or use a pair of wire cutters.
- Wrap the end of each copper wire tightly around the straw, looping it about four times with each wire, as shown in Figure 5. Wrap the wires about 4 cm apart from each other on the straw, and leave the wires with tails that are about 6 cm long (or longer) each.
- The wire should be wound tightly around the straw so that the wire does not easily slide around on the straw. If the wires move much, they could change the amount of conductivity detected by the sensor.
- However, even if the wires do move some, this should be fixed when you add the Styrofoam piece next.
Figure 5. Wrap the ends of two copper wires around a segment of straw, making about four loops with each wire.
- Next, cut out a piece of flat Styrofoam that is about 4 cm × 7 cm.
- Carefully poke the copper wire tails from the straw through the Styrofoam piece, keeping the wires the same distance apart that they are on the straw piece, as shown in Figure 6. Place the Styrofoam about 1–2 cm above the straw.
Figure 6. Push the copper pieces through a small rectangle of Styrofoam.
- On the top side of the Styrofoam (opposite the side where the straw is), make a sharp bend in each wire, right above the Styrofoam, as shown in Figure 7. Make sure the bend is sharp enough to keep the wires from sliding down through the Styrofoam.
- The sensor will be going into a bowl of liquid, and the amount of copper wire submerged in the liquid can change how much conductivity the sensor detects. Because of this, it is important that the amount of wire submerged in the liquid is always the same. Since Styrofoam floats, the Styrofoam piece will help keep the wires submerged at the same depth in the liquid for your tests.
Figure 7. Make sharp bends in each wire, just above the Styrofoam on the side without the straw.
- Lastly, attach the unconnected alligator clip leads from your circuit to the copper wires on the sensor, as shown in Figure 8. It does not matter which clip is connected to which wire.
Figure 8. After attaching the alligator clips to the copper wires, the conductivity sensor should look like the one here.
- Your artificial pancreas model circuit is now complete and ready for testing! It should look similar to the one shown in Figure 9.
Figure 9. Top: a breadboard diagram for the final circuit with the sensor attached. Bottom: a picture of the completed circuit.
Testing the Artificial Pancreas Model
In this part of the procedure, you will test your artificial pancreas model. You will do this by first normalizing it to a neutralized solution to make sure the pump will turn off once your solution is neutralized. You will then put the conductivity sensor in a basic solution (i.e., solution of baking soda), which will make the pump move an acidic solution (i.e., pure vinegar) into the bowl of basic solution until the solution is neutralized and turns off the pump.
- Take three mixing bowls and label them "Neutralized," "Vinegar," and "Baking Soda."
- For labeling, you can use masking tape and a permanent marker or small sticky notes and a pen or pencil.
- On a scale, place a measuring cup or other small container to weigh baking soda on the scale. Zero out the scale and then weigh out 14.3 grams (g) of baking soda.
- Put the 14.3 g of baking soda into the mixing bowl labeled "Baking Soda."
- Use the graduated cylinder, or a metric measuring cup, to measure out 200 milliliters (mL) of distilled water. Add the 200 mL of distilled water to the baking soda in the mixing bowl.
- Mix the water and baking soda until the baking soda is completely dissolved.
- Measure out 100 mL of the baking soda solution and add this to the mixing bowl labeled "Neutralized."
- Tip: You may want to use a small cup with a spout to transfer the baking soda solution.
- Measure out 100 mL of distilled white vinegar and very slowly add it to the "Neutralized" bowl. Once the vinegar-baking soda solution stops reacting, the solution should be neutralized.
- Caution: Mixing an acidic solution with a basic solution can cause a powerful chemical reaction. You must pour the vinegar into the bowl very slowly to give the two solutions time to slowly react, otherwise you may end up with a big mess and will need to make up fresh solutions!
- What happens as you pour the vinegar into the baking soda solution? Can you explain why this is?
- Once the reaction has slowed, slowly mix the solution to make sure the vinegar and baking soda have completely reacted.
- Note: The amounts of vinegar and baking soda you are using are the same. Because of this, the acid and base should react and neutralize the solution. If you want to see the math behind this, check out the FAQ section in the Help tab.
- Measure out 200 mL of distilled white vinegar and carefully pour it into the "Vinegar" bowl. Take the tubing from the pump and place both ends in the "Vinegar" bowl.
- To find out what the pH of the baking soda solution, the vinegar and the neutralized solution is, add about 1 teaspoon of bromothymol blue indicator solution to each bowl. Each solution will change color according to the color scale shown in Figure 10. The vinegar should turn yellow, the baking soda solution blue and the neutral solution green.
Figure 10. Final colors of the vinegar, baking soda solution and neutralized solution according to the bromothymol blue indicator color scale.
- Carefully place your conductivity sensor in the "Neutralized" bowl, letting the straw part be submerged and the Styrofoam piece float on the surface, as shown in Figure 11. Your overall setup should now look similar to the one in Figure 12.
- If the Styrofoam piece is not floating evenly, you can try taping the test leads onto the rim of the mixing bowl to keep things in place.
Figure 11. Place the conductivity sensor in the neutralized solution so that the Styrofoam piece floats and the straw part with wrapped wire is submerged.
Figure 12. When you are equilibrating the artificial pancreas circuit in a neutralized solution, your setup should look like this one.
- The pump may start running as soon as you put the conductivity sensor in the neutralized solution, but do not worry if the pump is not running yet. (When the pump runs, vinegar should simply be pumped out of, and then back into, the "vinegar" bowl). In this step, you will normalize your artificial pancreas model so that the pump does not run in a neutralized solution, but still runs in a solution that is slightly more acidic (which will be more conductive). You will do this by adjusting the three potentiometers (the blue components with the white knob that you put in holes B12–14, B16–18, and B20–22).
- Remember that a potentiometer is a variable resistor; you can change its resistance by turning the white knob. Your circuit has three potentiometers with different values: 1 MΩ (1,000,000 ohms), 100 kΩ (100,000 ohms), and 10 kΩ (10,000 ohms). The potentiometers are connected "in series" so their resistance values add. This lets you make coarse, medium, and fine adjustments respectively to the total resistance value. When you change the total resistance of the potentiometers, this affects how much voltage is sent to the transistor, which controls whether the pump is turned on or not. If you want to find out more about how this works (it involves forming a voltage divider with the conductivity sensor), try re-reading the Introduction in the Background tab and check out the FAQ section in the Help tab.
- If the pump is not running, slowly and gently turn the white knob on the 1 MΩ potentiometer until the pump turns on. Try turning it all the way clockwise and all the way counter-clockwise find out which way turns the pump on (which way you need to turn it will depend on which way you put the potentiometer into the breadboard).
- Once the pump is running, very slowly turn the potentiometer's knob in the opposite direction to turn the pump off. Stop turning the knob when it reaches the point that makes the pump very slow and almost turn off. Then move on to the 100 kΩ potentiometer and turn the knob until the pump just switches off. You can also use the 1 kΩ potentiometer for fine-tuning to find the right setting that just turns the pump off. Play around with adjusting the knobs of all three potentiometers until you are satisfied that the pump does not run in the neutralized solution (but will still run if turned slightly).
- While you are adjusting the potentiometers, identify which pump tube has liquid flowing out of it. When the pump is not running, dry the end of this tube and mark it with a small dot using a permanent marker. This will help you in the next step when you need to pump a liquid into a different bowl.
- Safety note: Do not leave the pump running unattended, and do not let the circuit run for more than about 15 minutes at one time. Note that the transistor may become warm while the pump is running, but it should not become dangerously hot. If it is very hot, or if you notice any smoke or a burning smell, this probably means that you have a short circuit. Immediately disconnect the battery pack from the breadboard, and make sure that everything else is connected correctly by referring to the diagrams above. Just one misplaced wire can prevent the circuit from working, or create a short circuit! Remember to make sure that the exposed metal parts of different components, like the resistors and alligator clips, are not bumping into each other, as this will also create a short circuit.
- Note: If the pump does not turn on, no matter how you turn the potentiometer's knob, check the following:
- Make sure all of the jumper wires and components are pushed firmly into the breadboard's holes. A single loose wire can prevent the circuit from not working.
- Make sure no exposed metal parts (like the leads of the resistors) are touching each other, as this will create a short circuit.
- Be especially careful to avoid creating a short circuit by having wires from the red and blue bus strips touch each other. This can make the circuit get dangerously hot and can even melt some of the plastic components.
- Once you have normalized your artificial pancreas model so that the pump does not run when the conductivity sensor is in a neutralized solution, carefully remove the conductivity sensor from the neutralized solution (leaving the pump's tubes in the "Vinegar" bowl), and rinse the sensor briefly with some baking soda solution (over a sink or a different bowl). This will help remove the neutralized solution from the sensor.
- Now leave the unmarked pump tube (inlet tube) in the "Vinegar" bowl. Take the pump tube that you marked in step 10.c.i. (the outlet tube), wipe the outside down with a paper towel or clean rag, and then place it in the "Baking Soda" bowl.
- Next, place the conductivity sensor in the "Baking soda" bowl. Your setup should look like the one in Figure 13. The pump should start running, pumping vinegar (a drop or a few drops at a time) into the bowl with baking soda solution, and you should see bubbles being made as the acid-base reaction takes place.
- Note: Make sure the sensor is floating the same way that it was in the neutralized solution. If needed, tape the alligator clip test leads to the side of the bowl to hold them in place so that the Styrofoam piece is floating evenly. It is very important to make sure that the sensor is submerged in the liquid to the same depth that it was in the neutralized solution or your results may be inaccurate.
Figure 13. When you are neutralizing the baking soda solution with vinegar, this is what the setup should look like.
- While the pump is running, carefully and continually move the end of the pump tube in the "Baking Soda" bowl so that the vinegar mixes well with the baking soda solution throughout the bowl (including under and around the sensor). It is very important to have all of the vinegar and baking soda mixed well together to neutralize the baking soda solution. You will see that at the spot where vinegar drips into the baking soda solution, the color of the indicator will change from blue to yellow. The color change of the solution gives you an indication of what the pH of the solution in the "Baking Soda" bowl is during neutralization.
- Eventually, the pump should slow down and then stop running. It might turn on and off as you mix the last bits of vinegar that is pumped in; if it does this, wait until it stops running for at least 10 seconds before moving on to the next step. How does the color of the indicator (the pH) now compare to the pH of the neutralized solution you made in step 7?
- When the pump stops, measure how much vinegar solution is left in the "Vinegar" bowl by carefully pouring it into a metric measuring cup or a graduated cylinder using a funnel. In your lab notebook, record how much vinegar is remaining.
- Note: There may be more liquid in the bowl than can fit in the measuring cup or graduated cylinder, so you may need to fill it up (and empty it out) multiple times to measure the total amount of baking soda.
- Analyze your results and determine how accurate this artificial pancreas model is.
- Since the baking soda solution you prepared is at the same concentration as the vinegar, they should make a neutralized solution when the same amount of each have been mixed together. This means that 100 mL of baking soda solution should be neutralized with 100 mL of vinegar. (If you want to see the math behind this, check out the FAQ section in the Help tab.)
- Because the "Baking Soda" bowl had 100 mL of baking soda (since you prepared 200 mL in step 4, but removed 100 mL in step 6) and the "Vinegar" bowl had 200 mL of vinegar (from step 8), the pump should have ideally stopped when 100 mL of vinegar was remaining in its bowl. How close were the results (from step 16) to 100 mL vinegar? Was there too much or too little vinegar remaining?
- There are many reasons why it may not have taken exactly 100 mL of vinegar solution to neutralize the 100 mL baking soda solution. Here are some possible sources of error, but you may think of additional ones:
- The circuit may not have been accurately normalized (in step 10).
- The potentiometers might have been bumped during testing.
- Liquid from either bowl may have been spilled during testing.
- The baking soda bowl was not stirred enough while vinegar was being added. If this happens, the conductivity sensor may still detect a basic solution, even though parts of the solution in the bowl have been completely neutralized (or may even be acidic).
- Mistakes in preparing the baking soda solution should not actually be a source of error. Do you know why this is?
- Note: Because pH reactions occur on a logarithmic scale, the error measurements can be on a logarithmic scale, too. This means that a margin of error that may seem large (such as having 150 mL vinegar leftover instead of 100 mL) is actually not that big. See the Help tab for details.
- Think about how each possible source of error may have affected your results.
- Plan how you could change your model and/or your testing procedure to make the model more accurate. Whatever you decide to change, be sure to record your plans in your lab notebook. Specifically, think about:
- What could you physically change about your circuit, conductivity sensor, or experimental setup? For example, could you improve the stability of your sensor if it was moving around, or build a new sensor with some changes to the design?
- What could you change about the procedure you used when doing the experiment? For example, if you find that mixing is a problem in your procedure, try different ways to increase the mixing of both solutions, starting by stirring them with a spoon, swirling them or even using the conductivity sensor to stir the solution.
- How would switching the pumping direction affect the results? Does it matter if you pump vinegar into the baking soda solution or the other way round?
- What if you changed the concentration of the baking soda solution? Will the results be more accurate? Note that changing the concentration of the baking soda solution will also change the amount of vinegar that you need to neutralize this solution.
- Tip: You may want to refer to The Engineering Design Process guide for help with this.
- Clean and dry the mixing bowls and repeat steps 1–18 to test your model again, with the changes you decided on in step 19, and analyze its results. How accurate was it this time?
- Note that this model may not necessarily be more accurate than the original model. This is part of the challenge of the engineering design process.
- If you want, you can change your model and/or testing procedure even more by repeating steps 19–20 one or more times. Can you make the model be even more accurate?
- You can make a bar graph of your results, with a bar for each time you tested the model (labeled on the x-axis) that shows how much vinegar remained when testing each time (labeled on the y-axis in mL). You can draw a horizontal line across the graph at the "100 mL" point to show the ideal amount of vinegar left.
- Following the indicator color change of your solutions, you can analyze the pH results as well.
- How did the pH, or the indicator color, of the baking soda solution change by the addition of the vinegar?
- Was the indicator color (pH) of the original neutralized solution the same as the indicator color (pH) of the solution when the pump stopped running?
- See the FAQ in the Help tab for more information on pH and this project.
- Overall, how well did the artificial pancreas model work? Were you able to improve on the original one you tested? How are the challenges you faced in designing this model similar, and different, to the challenges faced in designing a real, accurate artificial pancreas?
- Tip: You may want to refer to the Introduction in the Background tab to help you answer this last question.
For troubleshooting tips, please read our FAQ: Dealing with Diabetes: The Road to Developing an Artificial Pancreas.
Communicating Your Results: Start Planning Your Display BoardCreate an award-winning display board with tips and design ideas from the experts at ArtSkills.
- In the testing you did for this project, you should have found that the artificial pancreas model could be automated for the part you tested. In other words, when the solution is very basic (representing high blood glucose levels), the pump turns on and adds an acidic solution (representing insulin) to neutralize the solution (representing normal blood glucose levels). However, you did not test how the model works for other parts of an artificial pancreas, such as continuing to add insulin when the blood glucose levels are consistently high over time. Try adding more baking soda solution to the "Baking Soda" bowl after it is neutralized; does it turn the pump back on again? Does pumping in more vinegar turn the pump back off? If you repeatedly add baking soda, does it have the same effect? You could measure the amounts of baking soda and vinegar that are added over time and graph your results. How responsive is the model to turning the pump on and off?
- Some people may want an artificial pancreas to turn on and pump insulin when they have a specific, different blood glucose level compared to other people. You could try modeling this by making solutions with different amounts of baking soda solution and vinegar mixed together (instead of equal amounts, as you use in this project) and then normalize the artificial pancreas model to the different solutions, one at a time (each one representing a different person). How does this affect how much vinegar is used to neutralize the baking soda solution? How does this relate to the challenges of making a real artificial pancreas?
- How could you use the artificial pancreas model you made in this project to model the delivery of other types of medicines? Do some research on this topic and then try it out.
- How could you make the artificial pancreas model used in this project more similar to what a real artificial pancreas would be like? Do some research and then try to redesign your model.
- In what other ways could you use the conductivity sensor that is used in this project? Would it make the pump run if it was put in other solutions, such as a sports drink? For some ideas, check out the Science Buddies science project idea Electrolyte Challenge: Orange Juice Vs. Sports Drink.
- For an advanced chemistry challenge, instead of the chemical reaction used in the artificial pancreas model in this project, you could try using a different chemical reaction. Here are some ideas:
- You could look into doing a titration (which is typically a color-changing reaction that depends on the exact chemicals involved). A Science Buddies project idea that uses the titration method is Which Orange Juice Has the Most Vitamin C?
- Alternatively, instead of bromothymol blue as an indicator you could use cabbage juice, which also changes color based on the pH of the solution. For information on how to make this pH indicator solution, check out the Science Buddies project idea Cabbage Chemistry.
- For science projects on measuring sugars in foods and relating this to diabetes, see How Sweet It Is! Measuring Glucose in Your Food, Sucrose & Glucose & Fructose, Oh My! Uncovering Hidden Sugar in Your Food, and Lactose, Sucrose, and Glucose: How Many Sugars are in Your Smoothie?
Recent Feedback Submissions
|Sort by Date||Sort by User Name|
What was the most important thing you learned?
The impact that diabetes has on ones life and who simple it would be to find a "solution"
What problems did you encounter?
Can you suggest any improvements or ideas?
look into the applications already in place as well as the research that is being done in labs
Science Buddies materials are free for everyone to use, thanks to the support of our sponsors. What would you tell our sponsors about how Science Buddies helped you with your project?
Overall, how would you rate the quality of this project?
What is your enthusiasm for science after doing your project?
Compared to a typical science class, please tell us how much you learned doing this project.
|Do you agree?||Report Inappropriate Comment|
Frequently Asked Questions (FAQ)
- Double-check your circuit to make sure that it matches the breadboard pictures and descriptions from the Procedure exactly (in the "Assembling the Circuit on the Breadboard" section).
- Make sure all of your jumper wires and other components are pressed firmly into the holes of the breadboard.
- Make sure your batteries are properly inserted into the battery pack.
- One at a time, turn the potentiometer all the way clockwise and then all the way counterclockwise.
- If none of the above steps work, try putting fresh batteries into the battery pack.
Figure 14. Circuit diagram for a voltage divider.
- Vin is the input voltage in volts (V).
- Vout is the output voltage in volts (V).
- R1 is the first resistance in ohms (Ω).
- R2 is the second resistance in ohms (Ω).
In your circuit, the conductivity sensor (two wires wrapped around a straw) is the first resistor (R1), and the potentiometers (which are connected in series, so add up to form one equivalent resistor) form the second resistor (R2). As you can see from Equation 1, both resistance values have an effect on the output voltage. To help you understand Equation 1, try plugging in a few examples:
- What happens when R2 is much bigger than R1? In other words, R1 is very small, meaning the solution is highly conductive? (Answer: Vout will be approximately equal to Vin)
- What happens when R1 is much bigger than R2? In other words, R1 is very large, meaning the solution is not very conductive? (Answer: Vout is close to zero)
If you want to learn more about voltage dividers, check out this reference.
Now let us talk about the second important component of the circuit, a special type of transistor called a MOSFET. (MOSFET stands for metal-oxide-semiconductor field-effect-transistor.) A MOSFET has three pins: the gate, the source, and the drain, as shown in Figure 15. The MOSFET is controlled by a voltage applied to the gate pin. When the voltage between the gate and source pins (VGS) is below the MOSFET's threshold voltage (Vth), no current flows through the MOSFET. When VGS is above the threshold voltage, current can flow from the drain to the source pin. When it is connected to an external load, like a motor or a pump, this means a MOSFET can be used to electronically turn the load on and off, without flipping a mechanical switch.
Figure 15. Left: A picture of a MOSFET with the pins labeled. Center: If the gate voltage (VGS) is below the threshold voltage (Vth), no current flows. Right: If the gate voltage is above the threshold voltage, current flows from the drain to the source.
How are these components combined to form the circuit in this project? Figure 16 shows the complete circuit diagram (refer to this How to Read a Schematic resource if you are not familiar with circuit diagrams). The circuit operates like this:
- The battery pack provides 12 V to power the circuit. This is necessary because the pump is rated for 12 V.
- The 330 kΩ and 100 kΩ resistors form a fixed voltage divider. This is a crude way of stepping down the 12 V from the battery pack to a lower voltage—in this case, approximately 3 V (the proper way to do this is with something called a voltage regulator). This approximately 3 V is used to power the next part of the circuit (see the next bullet point).
- Another alternative to using these resistors would be to simply hook up a separate 2xAA battery pack to the circuit to provide 3 V, but the approach used in this project lets the whole circuit run off of one battery pack.
- Note: This lower voltage is required because the threshold voltage of the MOSFET is rather low, around 1–2 V. Powering the entire circuit from 12 V would therefore make it very difficult to turn the pump off.
- The conductivity sensor and potentiometers form another voltage divider. The input to this voltage divider (Vin from Equation 1, above) is roughly 3 V, as described in the previous point. The output (Vout from Equation 1, above) is based on the resistance values of the conductivity sensor (which depends on the pH of the liquid) and the potentiometers (which depends on the positions of the knobs). This is what allows you to tune the circuit's sensitivity to pH levels using the potentiometers.
- The output of the second voltage divider is connected directly to the gate of the MOSFET. The source pin of the MOSFET is connected to ground. This means that the output from the voltage divider is equal to the gate voltage of the MOSFET (Vout = VGS). Therefore, the output of the voltage divider controls whether or not the MOSFET conducts current between its drain and source pins.
- The pump is connected to the positive voltage supply and the MOSFET's drain pin. As a result, when the MOSFET turns on (because its gate voltage is above the threshold voltage), current flows through the pump and causes it to pump liquid. When the MOSFET is off (because its gate voltage is below the threshold voltage), no current can flow through the pump, so the pump shuts off.
- Ultimately, this configuration means that the pH of the liquid controls whether the pump turns on or off.
Figure 16. A complete circuit diagram for the artificial pancreas model.
Additions of acids or bases cause a change in the concentration of hydrogen ions in the solution, which causes an equivalent change in pH. You can calculate the relative change in pH by using Equation 2, but instead of [H+] you can use the moles of vinegar you added. For example, in this project you used vinegar with a molarity of 0.85 mol per liter (1000 mL), so in 100 mL of vinegar there is 0.085 mol (since 0.85 mol ÷ 10 = 0.085 mol) and in 150 mL of vinegar solution there is 0.128 mol. The negative logarithm of 0.085 mol equals 1.071 pH units, while the negative logarithm of 0.128 mol equals 0.893 pH units. This gives a difference of 0.178 pH units (since 1.071 - 0.893 = 0.178), which is a more accurate representation of your error, and is much smaller than a difference of 50 mL (which is from 150 mL - 100 mL).
For more information on logarithms and pH, see the University of Minnesota's webpage on What is a logarithm?, Elmhurst College's webpage on pH Scale, and Science Buddies' resource on Acids, Bases, & the pH Scale.
Ask an ExpertThe Ask an Expert Forum is intended to be a place where students can go to find answers to science questions that they have been unable to find using other resources. If you have specific questions about your science fair project or science fair, our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.
Ask an Expert
If you like this project, you might enjoy exploring these related careers:
Certified Diabetes EducatorWho does a diabetic turn to if they have questions or do not understand how to manage their disease? They consult a certified diabetes educator. These diabetes experts work with people who have diabetes (or pre-diabetes) so they know how to manage their condition. This can include educating people about how to measure and control their blood sugar levels, giving specific diet and exercise recommendations, and providing emotional support. Certified diabetes educators present health information in ways that their audience can relate to, and are sensitive to cultural differences. Read more
Electrical & Electronics EngineerJust as a potter forms clay, or a steel worker molds molten steel, electrical and electronics engineers gather and shape electricity and use it to make products that transmit power or transmit information. Electrical and electronics engineers may specialize in one of the millions of products that make or use electricity, like cell phones, electric motors, microwaves, medical instruments, airline navigation system, or handheld games. Read more
ChemistEverything in the environment, whether naturally occurring or of human design, is composed of chemicals. Chemists search for and use new knowledge about chemicals to develop new processes or products. Read more
Dietitian or NutritionistEver wondered who plans the school lunch, food for patients at a hospital, or the meals for athletes at the Olympics? The answer is dietitians and nutritionists! A dietitian or nutritionist's job is to supervise the planning and preparation of meals to ensure that people—like students, patients, and athletes—are getting the right foods to make them as healthy and as strong as possible. Some dietitians and nutritionists also work to educate people about good food choices so they can cook and eat their own healthy meals. Read more
News Feed on This Topic
Looking for more science fun?
Try one of our science activities for quick, anytime science explorations. The perfect thing to liven up a rainy day, school vacation, or moment of boredom.Find an Activity