Lie Detector – SCOPES-DF

Lesson Details

Age Ranges *
Fab Tools *
Author
Additional Contributors

Author

Sarah Judd

Summary

For the freshman skills class, students have been learning that in the real world, you often need to connect multiple disciplines to solve problems, which culminates in a CSI unit trying to figure out who stole an item. In Psychology, Juniors have learned about the physical response your body has to lying, and why they happen (and why other things might also make that happen). In Physics, Juniors learn Ohms Law. Physical Computing, Juniors have been learning about circuits. They learned that resistance removes some of the flow of electricity. They have learned that elements like light, temperature, and pressure can change the amount of resistance in a circuit. They also briefly learned that their bodies reflect different amounts of light as their heart beats blood. They then learned how to program Microbits to read those changes in resistance and show it on the screen.

 

For this lesson, students will create a lie detector, which works by showing on a computer screen what the voltage differences are in pulse and galvanic skin sensors, as well as the change in pulse. They also explore why those sensors detect lies, and discuss the ethical implications around bodily autonomy, freedom and safety around the use of lie detectors, thinking about their role in the world as makers. They then complete the lie detector design – using user-centered design principles to make a lie detector that the teachers will use in front of the freshmen for a CSI unit.

What You'll Need

  • Microbit
  • Breadboard
  • Aluminum foil
  • Velcro
  • Makecode on a browser
  • Cable to connect the microbic to your computer
  • Jumper Cables
  • Willing participants for the lie detector

 

Learning Objectives

Students will understand

  • The human body has a physical response to lying based on the cognitive load it requires and their emotional response.
  • Pulse changes cause light to reflect off of your body differently
  • Sensors are often based on resistance changing voltages. Computers can measure those changes.
  • Things connected to 3V and ground will be always on; things connected to a pin and ground will be on when you tell them to and can read resistance values when you tell them to.

Students will be able to:

  • Program a microbit to read and show galvanic skin response and pulse.
  • Recognize a pulse and galvanic skin response that implies the person is lying.
  • Discuss the ethical considerations inherent in lie detection of this variety.
  • Design a lie detector for a specific audience (teachers that will use them in front of the freshmen)

 

Reflection

This lesson came up entirely naturally – I learned that there was going to be a transdisciplinary CSI lesson that last year Jaymes Dec had built a lie detector for, and this year I realized my students could very easily do the same – I was moving into using pins and breadboards, and helping students pull back layers of how things worked, and the galvanic skin sensor response is a super easy way to bring home the idea that sensors are often just sensing changes in resistance. So, we’re connecting student learning across disciplines, opening up an understanding of what is going on in computing devices in the real world. Students were excited to learn about this, and talk about it, especially given they had done the same project before. When I spoke to my students, they were also naturally interested in the ethics of making lie detectors and if we should trust them, bringing in Philosophy as well.

 

The students very much enjoyed making lie detectors – they almost enjoyed it too much, as they spent a lot of time trying it out on each other. Can’t beat it for engagement, with everything from the philosophy to the psychology to the electronics and programming.

 

I interspersed the lie detector lesson with a lesson about making escape rooms, and it was a very busy time of year, and I’m trying to make sure everything is set up before the end of the year (and so are the Psychology and Philosophy teachers I invited to guest lecture when their parts came up, and the Skills teacher who will be using the lie detectors in her class). This meant that the lesson wasn’t particularly tight – it was drawn out in different orders across each section of the class. I would love to do this again next year, knowing exactly what the Philosophy and Psychology parts of the lesson can look like, being more sure to make sure that the Design parts (how do you make a lie detector that looks and feels like something that will get the desired results?) are better described and tighter, so that the experience flows better.

 

It is very cool to see how many different disciplines can come together in a technology class, however, and to use those connections for engagement.

The Instructions

Background info - Lying

Ask students what they know about the physical signs that someone might be lying

From Psychology class, students should be able to answer this question – they should know that someone might sweat more, and their heart might race faster, or they might be less able to answer complex questions if they are lying. Write these answers on the board so students can see them while they answer the next question.

 

This question can be done as a think/pair/share

Background Info - Electronics

Connect what students just said about lying to what they know about resistance and electronics

Ask students:

  • What can we measure with our Microbits?
  • Students will probably mention things about light / sound / tilt. Let them know that it’s good that they remember these things, but try to push them further – what have we learned each of those sensors are measuring? (Resistance) Great!
  • This question can start as a think/pair/share as well
  • What might happen to the resistance on someone’s fingers as they sweat?
  • I expect at least some students to have an aha moment here that galvanic skin responses may change resistance, like any other sensor we’ve looked at.
  • So! We can program it

 

It will probably be harder to just come to the conclusion that you can change light levels bouncing back for the pulse sensor, so you can just explain that to students.

 

Get Materials

You may have prepared small containers with enough materials for a group of students to create their lie detectors. Pass those out to each group of students making a lie detector and make sure the students understand the materials.

  1. Pass out materials, one per group of students making a lie detector
  2. Ask students to check for understanding:
  3. What are these materials?
  4. What are their purposes for our lie detector?
  5. Do you know how you would connect them?

 

Build Lie Detector

Students build the galvanic skin sensor using the materials you have provided

If students have understood the lessons on how you can connect a microcontroller’s pins to a breadboard and a circuit, they should be able to connect jumper cables correctly to read values, so you should not necessarily provide students with the instructions; you should instead wander and help them as necessary. I did find that I helped students figure out what to do as a group, and would then allow them to do it individually

 

Here are the steps for the galvanic skin sensor:

  1. Connect a jumper cable to aluminum foil – it may make sense to do this with an alligator clip for conductivity and to velcro to connect to your hand. – to make a sensor
  2. Do this again – you’ll need two parts to the sensor.
  3. For one of the sensors – connect the side of the jumper cable that is not on aluminum foil to ground
  4. For the other sensor – connect the jumper cable to a pin on the board, such as P0

Write a program that collects the data

Program the sensor to collect readings

Students should also know how to do this – wander and help as necessary.

 

  1. Add pins from the “advanced” menu
  2. Add data logger from the “extensions”
  3. Log the analog input from P0 (or whatever pin they used) into a column labeled gsr for galvanic skin response
  4. On Start, include “mirror data to serial” to show the data on the screen.
  5. On Start, add the column for gsr to the data logger

Test!

Hook someone up to the lie detector

Ask someone questions while hooked up to the pulse sensor and the Galvanic Skin response sensor.

  1. Are you getting different readings? Can you make the readings different with the questions you ask? Why do you think this is or isn’t the case?
  2. Can you do something that isn’t lie in order to make it look like you’re getting different readings
  3. moving your fingers a bit tends to change the resistance

Wire up and program the pulse sensor

Add the data from the pulse sensor to the lie detector as well

It is often helpful to have students do this without the Galvanic Skin Response sensors connected, and then connect them together later, but these instructions assume you are adding to the same sensor.

 

  1. Pass out pulse sensors
  2. Ask students what they notice
  3. They will probably notice the 3 wires – ask them what color usually goes to GND vs 3V
  4. Have students connect the black wire to GND and the red wire to 3V
  5. You can show students that you can connect alligator clips to each other to have the same ground.
  6. Ask what happens
  7. The green light should show up
  8. Ask what is happening
  9. Students should know that connecting 3V and GND is giving a constant source of electricity, turning it on
  10. Show a part of a video that explains why this green light exists
  11. Starting at 1:07 here works: https://www.youtube.com/watch?app=desktop&v=QTniLL0sQtA&t=3s
  12. Check students understanding – what is the green light doing?
  13. Providing a light that can be used to bounce off your blood vessels at different levels
  14. Check students understanding – What does this have to do with your pulse, why can you measure it?
  15. Different levels of light will provide different resistance to the resistance sensor
  16. Ok, there is one more wire. That wire is where we will collect information about the resistance we’re reading. If we want to read the data, where should we clip this wire to?
  17. One of the pins
  18. Follow up – do we want to plug that wire into the same pin as the GSR
  19. Some students will notice that this will cause interference in the reading, so you realize you want to use a different pin.
  20. Now, we need to program our Microbit to read that line and share it with the computer As well.
  21. Show students that you can click the + on the data logger, which will give you another column
  22. That column will look very similar to the gsr column, except it should be labeled “pulse” and read from the pin that the pulse sensor is plugged into.
  23. Run the program – what happens
  24. Both lines should show up.

 

It is worth noting that data logger can be buggy – you should wander and help students do this, and sometimes if it doesn’t work you just need to redownload the code. Common problems that aren’t fixed by redownloading involve – check that no wires that shouldn’t be touching (like P0 and GND) are, check that the program is reading analog not digital from the pin.

Test

Watch what happens with the pulse sensor plugged in as well

Ask someone questions while hooked up to the pulse sensor and the Galvanic Skin response sensor.

  1. Are you getting different readings? Can you make the readings different with the questions you ask? Why do you think this is or isn’t the case?
  2. Can you do something that isn’t lie in order to make it look like you’re getting different readings
  3. jumping up and down will often get different readings
  4. Are the galvanic responses and pulse responses related?

 

Design

Now that students have the basics of the programming and the electronics, remind them that these lie detectors will be used by teachers who will be asked questions in front of the freshman, and let them know they can design everything around the electronics.

Give students time and materials and space to design. Many students in my class used the laser cutter to make boxes that would hide the electronics, one used a 3D printer, and one was fine with just using zip ties for cable management.

 

A few students wanted to add lights or sound when someone was lying to make it more lie-detector-ish rather than just displaying values.

 

Let students get creative with this, and make sure to point out the needs of the users.

Reflect

Students consider the ethical implications of creating a lie detector such as what they've just done.

How do you feel about using GSR and pulse data to detect lies? Why does it work? When doesn’t it? Would you be comfortable using it in a court of law? Who does this disproportionately affect?

Lesson Feedback

Contact us

Having trouble? Let us know by completing the form below. We'll do our best to get your issues resolved quickly.

"*" indicates required fields

Name*
Email*
This field is for validation purposes and should be left unchanged.
?