Biohacking with Arduino
Electrical EngineeringComputing SystemsImpact of ComputingEngineering DesignNatural Selection and Evolution

Biohacking with Arduino

Grades 9–12
2 hr 40 min
11 steps
Groups of 5
STELNGSSCSTANC CTE

Standards Alignment

STEL

  • 9-12-4T: Evaluate how technologies alter human health and capabilities.
  • 9-12-7W: Determine the best approach by evaluating the purpose of the design.
  • 9-12-7BB: Implement the best possible solution to a design.

NGSS

  • HS-LS4-2: Construct an explanation based on evidence that the process of evolution primarily results from four factors: (1) the potential for a species to increase in number, (2) the heritable genetic variation of individuals in a species due to mutation and sexual reproduction, (3) competition for limited resources, and (4) the proliferation of those organisms that are better able to survive and reproduce in the environment.
  • HS-ETS1-1: Analyze a major global challenge to specify qualitative and quantitative criteria and constraints for solutions that account for societal needs and wants.
  • HS-ETS1-2: Design a solution to a complex real-world problem by breaking it down into smaller, more manageable problems that can be solved through engineering.
  • HS-ETS1-3: Evaluate a solution to a complex real-world problem based on prioritized criteria and trade-offs that account for a range of constraints, including cost, safety, reliability, and aesthetics, as well as possible social, cultural, and environmental impacts.

CSTA

  • 3B-AP-22: Modify an existing program to add additional functionality and discuss intended and unintended implications (e.g., breaking other functionality).

Related NC CTE courses

  • Biomedical Technology (BTCP)
  • Healthcare Professional (HPCP)
  • PLTW Biotechnology Research and Development (PLWB)
  • SREB Health Informatics (HEIN)
  • Drafting Engineering (DREN)
  • PLTW Engineering (PLWE)
  • SREB Aerospace Engineering (AEEN)
  • SREB Clean Energy Technology (CENT)
  • SREB Energy and Power (ENPO)
  • SREB Innovations in Science and Technology (INST)
  • Technology Engineering and Design (TEND)

Lesson Steps

1

Before you begin

Not listed

Before you begin, please clear yourself a workspace, gather your Arduino Workbench (pictured below), and get your computer. A notebook and writing utensil are recommended, but not required.  

 

Teaching tips

Materials for base activity:

Arduino Workbenches

Computer or Chromebook capable of running Arduino Web Editor (needs an agent installed on Windows machines, not sure what the Chromebook version may need)

Materials to attach the biohacking sensor to become a wearable (See step 7 for more details)

 

Whitelist Websites:

https://create.arduino.cc/editor/ (Don't forget to have IT install the Arduino Create Agent as well)

Note: Arduino Create requires an account to use.

https://youtube.com

 

Optional steps and materials:

Blindfolds

Clipboards

A location to map (See step 8)

Access to an open area like a gym (See step 9) 

 

Again, optionally, check out Step 11 to see what you might be able or willing to dedicate in the form of time and resources if you want to continue with this project! 

 

2

Overview

5 min

Google Glass, https://www.youtube.com/watch?v=4EvNxWhskf8, 2013Biohacking involves using technology and data to enhance human health and well-being, and wearable tech plays a central role in this movement. These innovative devices, ranging from fitness trackers to smartwatches, offer the ability to monitor various aspects of our physiology in real-time (Grosu, 2020). Some biohackers seek to integrate technology with their bodies to optimize their existing human functions or senses. We will be doing this in the Biohacking project. We will take an input that humans cannot sense and create an output that you can sense. Essentially, you will be using technology to gain a 'sixth sense.'

You are going to integrate this technology through a wearable. A wearable is a device that you wear (astounding!). But, rather than a fashionable new outfit, generally, and how we will discuss them in this project, wearables are wearable technology. Wearable technology is any kind of electronic device designed to be worn on the user's body. 

In this Biohacking Project, you will:Hunt, https://journal.getabstract.com/en/2021/03/04/biohacking-for-beginners/, 2023

  1. learn about inputs and outputs as related to biohacking and biomimicry
  2. practice using inputs and outputs with an Arduino microcontroller
  3. integrate your inputs and outputs into a single device
  4. test and assemble your wearable device
  5. put your device to the test in a game
  6. Discuss modifications and possibilities to your new biohacking skills

Materials List

  1. Arduino Workbench
  2. Computer with Arduino IDE or Arduino Cloud with Arduino Agent
  3. HC-SR04 Ultrasonic Sensor
  4. 9V harness to 5.5mm barrel plug connector

Teaching tips

If you have a spare 8:18, here is an interesting video about Biohacking And The Future Of Wearable Technology you could show your learners.

As a result of this project students will be able to:

1. Wire a physical microcontroller with an input and an output to create a piece of wearable technology

2. Modify and upload code to the wearable

3. Use the wearable in multiple potential scenarios to evaluate effectiveness

4. Use evaluations (Learning Objective 3) to further modify and refine the design of the solution

Student food for thought (after students have read their section): If you had a sense removed, how could you use technology to replace that sense? If you still had all your current senses, how could you use technology to enhance your ability to perceive the world?

3

Biohacking for Biomimicry

5 min

How do you sense the world?

Humans have five senses; sight, smell, taste, touch, and hearing. Senses are another way of saying your "inputs." When you sense the world around you, you are getting input about what is going on. These inputs are pieces of information that your brain processes. Then, you can use your outputs (generally motor neurons) to react to the stimulus.

 

How other creatures sense the world

Science Learning Hub, https://www.sciencelearn.org.nz/images/4184-bat-echolocation, 2019

From the video, we see that bats, dolphins, and whales utilize ultrasonic sound waves to navigate and hunt in low-light conditions. How effective are you in a dark environment? Without seeing, hearing, smell, or taste, how quickly do you think you could find a friend in a large, pitch-black room?

Without your eyes and ears providing input, the world is a much different place. Could you develop a device that can mimic the biological capabilities of bats and dolphins to help you navigate your world in a different way?

Talk to your elbow partner about a different wearable. What would you design it to sense? What kind of person would this wearable be important to?

Teaching tips

Thinking in inputs and outputs can definitely help students when it comes to programming Arduinos. If you have them reframe their 5 senses as inputs and their motions, speech, etc as outputs, that can help them think like a microcontroller. 

Also, feel free to show the video on a larger display so students can all follow along at the same rate.

If you have students who are struggling with the concept of echolocation, give them a racquetball (or something similar). Have them toss it against the wall so that it bounces back to them. Then have them step further away from the wall and repeat the process. Hopefully, they can come to the conclusion that the ball takes longer to go to the wall and return when they are further away. The same thing happens in echolocation. The speed of sound in air is pretty constant (don't tell them, but it actually depends on several factors like humidity, pressure, etc, but let's just say it is constant) and so bats use the amount of time their sound wave goes out and comes back to tell about how far something is away. And as the bat moves around, they can effectively triangulate the position of the poor moth it is about to make its dinner. 

4

Wiring your Arduino

10 min

Dejan, https://howtomechatronics.com/tutorials/arduino/ultrasonic-sensor-hc-sr04/, 2016

This is the HC-SR04 sensor. It has one input (Echo) and one output (Trigger). The trigger sends out an ultrasonic pulse and the echo receives it. The speed of sound is about 343 meters per second in dry, room-temperature air.  Calculating the difference between the pulse being sent and the pulse being received tells the Arduino how far the sensor is to the nearest obstacle.

Fritzing Diagram

Above is the wiring diagram for the Arduino Ultrasonic Biohacking circuit. To make this, you will need:

1 HC-SR04 Ultrasonic Sensor

1 Passive Buzzer

1 470 Ohm Resistor (Yellow, Purple, Brown, Gold)

Various Jumpers

 

Below is a video walkthrough of the Arduino Ultrasonic Biohacking circuit setup.

Once your circuit looks like the Fritzing diagram, you're ready to move on to the next step; coding your Arduino!

Teaching tips

This step has students find and identify a 470-ohm resistor. What I did before I first got the Arduino Workbench I went through, identified each resistor, and bagged and labeled each group. Now I have ten sandwich baggies in my kit each labeled with the values of the resistors in the bag. Sure, there are only a few in some of the bags, but it helps me from digging through a pile of very small components and looking for the right one. If you are having a hard time reading them, I suggest using a multimeter to check the resistance. This is a good practice and I would also suggest having your students do this. To contextualize this to students, you can mention that identifying and organizing electronic components is an important skill because when you work on electronic projects, you'll often need to find specific parts among many small components. It can be tricky, but knowing how to do this saves a lot of time and helps avoid mistakes. 

It gets even more important with surface mount components...those things are TINY! I often just scotch tape them to a sheet of paper and write on the page what I have taped there. You never know when your project gets set back waiting for new components because a resistor that is smaller than a grain of rice mysteriously vanishes on your workbench!

Since these are 4-band resistors, it is good to have a chart like this one and understand how to use it.

For example, a 470 ohm resistor is a Yellow, Purple, Brown, and Gold color code. I even have 20/20 vision and I know that it is hard to distinguish between a brown and a black line even in good light. You can use a multimeter (more on that in Step 4) to check the resistance values of your resistor. 

But with that chart, a yellow means your first value is 4, a purple means the second number is a 7, and the brown means the multiplier is 10.

So your resistor is 47 x 10 which is 470 ohms. But, since these components are not perfect, they are not all 470. They have a gold band which shows it has a 5% tolerance. Which means your resistor is 470 +/- 23.5. That means the values could be anywhere from 446.5 to 493.5! 

If students are wondering "What the heck is a resistor and why are we using it?" Well, you could tell them it's like eating their vegetables, they do it because it is good for them! But, in this case, the resistor is decreasing the amount of power that is coming out of the digital pin (pin 9). If you would like to have students play around with different resistors, they can compare how much current there is to 'drive' the buzzer. A 220 ohm resistor, having a lower level of resistance, will allow more power through and the buzzer will be louder. Conversely, a higher-value resistor will not let as much power through and the buzzer will be much quieter. 

5

Coding your Arduino

10 min

Congratulations on getting your circuit breadboarded. That is just half the battle. Now, we will program your Arduino to work with the HC-SR04 and the passive buzzer.

To use the code:

1. Click on ‘Open Code’
2. Once in the Arduino Web Editor (which is an online program to interface with your Arduino), click ‘Add to my Sketchbook’
3. From then on, you will be prompted to sign in and create an account. Once you put in your birthday, you will be asked to provide an email and create a username.
4. Once you have created an account and signed in, watch the following video below
 

Here is the code you can use:

Also, here is a video walking through explaining the code. Note: since this video was created, serial output was added to the code to facilitate data collection during the testing phase.

Feel free to modify and tweak the code (especially lines 28 through 35). If you make any changes, leave a comment explaining what you did and the effect it will have on the code. Remember, anything that appears after "//" is just human-readable text. It will not affect your code and is a good way to insert notes to other coders or your future self! 

Once you have uploaded the code, feel free to move on to the next step; testing your Arduino Ultrasonic Biohacking sensor!

Teaching tips

If your system admins are particular about permissions, it can help to log in to a computer as a student and try these steps before class. If nothing else, it might be beneficial to have one of your tech people on standby for this lesson. Heck, why not invite them to come check it out anyway? They may even find it fun and interesting since they may not have even been in school when these microcontrollers hit the scene in 2006. 

6

Testing and Tweaking your Arduino

10 min

Now it is time to test your new setup. 

Step 1: Connect your Arduino to power.

Step 2: Point the face of the ultrasonic sensor (the part with the big, silver parts) toward the wall and walk toward it. Does it give you three different tones as you get closer? (see below video example)

If your Arduino Ultrasonic Biohacking sensor works like in the video, yay! You can now play around with the code to customize your tones or move on to integration.

If not, you might need to recheck your wiring or make sure you uploaded the code exactly as it was given to you.

If your circuit looks like the picture and you uploaded the code properly, you now get to move on to troubleshooting!

Troubleshooting Tip:No Author, https://electronics.stackexchange.com/questions/644043/how-to-name-and-find-this-breadboard-jumper-connector-commonly-named-dupont-cab, 2022

Sometimes, through rough handling or normal wear and tear, a jumper might not work anymore. Sometimes it is obvious (like the pin is gone) and sometimes it is hidden (like the wire inside is broken, but the insulating sheath is still intact). 

There is a hard way to resolve this issue. If you have a multimeter, test the continuity of each jumper to make sure the signal, power, ground, or whatever is making it from point A to point B in each step of your circuit.

The less involved way is to replace the jumpers one by one to see if that is your issue. If you find a jumper was the issue, set that one off to the side, or mark it somehow! 

Teaching tips

This step mentions using a multimeter. If you have access to one, great! If not, I recommend this one since it comes in a case, has both probes and alligator clips, and stands up to the rigors of being used by students. Also, if you're apprehensive about using a multimeter, Sparkfun has a lot of great electronics resources including how to use multimeters

7

Integration of Biology and Technology and Reflection

20 min

Sparkfun, https://learn.sparkfun.com/tutorials/getting-started-with-the-myoware-20-muscle-sensor-ecosystem/hardware-hookup, 2023Time for some arts and crafts! 

Your teacher will provide some materials to attach your Arduino Ultrasonic Biohacking sensor to your body. 

Imagine this scenario. You're blindfolded (or in a pitch-black cave, or whatever fun scenario you want to imagine). How would you utilize this ultrasonic sensor package to avoid obstacles and safely navigate the environment? How could you best attach it to yourself to maximize effectiveness?

Some things to think about:

1. Are you going to want to be able to take it off and on easily?

2. How do you envision using it? For instance, if this is supposed to replace your eyes, do you think it is a good idea to mount the sensor on your shin? Would it be easy to swing your shin around and sense what is around you?

3. How cool would you look wearing it? Don't worry, the rest of the class is going to look funny with Arduino wearables strapped to themselves. But, why not take a second to think about this wearable being mass-produced and marketed? Do you think the average consumer would want to wear it? What do you need to do to make it appealing as a marketable device?

Before you start cutting and taping:

1. Create a diagram of your wearable.

2. Label all parts including the Arduino, ultrasonic sensors, etc.

 

Utilizing your diagram (and with your teacher's okay) begin construction of your wearable. 

 

After creating your wearable, answer these questions:

What was the most difficult part(s) of this project? What part(s) came to you more easily?

What would you do with a distance-measuring device like the one you made?

What other biohacking devices would you like to make? What applications do you have in mind?

Teaching tips

This step will have a lot of variance based on what tools/materials you have available and what you feel comfortable having your students use. I am going to suggest cardboard and masking tape as the prime materials for this. I will leave it to you what you'd like to use for cutting.

Here are some possible design ideas for students who are struggling:

1. Forearm/Wrist mount: You could have the students make a gauntlet-type platform on their forearm made out of cardboard. You could make holes in the cardboard approximately the same size as the holes in the Phasedock. Then, the Arduino and Breadboard could just "clip" into those. 

2. Hat mount: Since this is an ultrasonic sensor in place of vision, you could attach (rubber bands, etc) the Arduino and breadboard to the bill of a cap. That way, students could turn their heads and hear the buzzer tones. 

If nothing else, you could just take the Arduino and breadboard, run a rubber band around them, and mount the two parts on a student's forearm.

8

Optional Activity: Mapping your World

30 min

Now it is time to test your newly made Arduino Ultrasonic Biohacking sensor!

Your teacher should have some blindfolds for you and may take you to a different location. You will use your wearable sensor to map out the new location! 

One member of your team will be the blindfolded "wearer." This person will be blindfolded and will wear the Arduino Ultrasonic Biohacking sensor. This person will SLOWLY AND SAFELY walk around the room and will tell his/her groupmates what he/she senses with the wearable.

One member is the mapper. If you want to get fancy, this person is the "designated group cartographer." This person will take "readings" from the Wearer and will write these down and create a map of the location. For example, the mapper may say "there is an object 200 cm to my front-right." The cartographer will mark the mapper's current position on the map and then mark an obstacle that distance away. If there are any identifiers (like the obstacle is lower) put those notes on the map. The cartographer should not question what the mapper says, just try to faithfully mark down what the mapper reports.

If needed, the cartographer could make a chart of all the observations like the example:

Location Direction Mapper is pointing Distance to obstacle
Next to pencil sharpener on wall Directly left 100cm
Beside teacher desk Right and slightly forward 250cm

The rest of the group are spotters (designated safety officers). These members will walk around with the Wearer and the Mapper to ensure they do not run into any objects or trip over anything while they creating the map.  They will also be mindful of the other groups that may be mapping the location as well. If a spotter needs to alert the wearer or mapper of an obstacle, a gentle tap on the shoulder and/or a slight redirect will be used.

One important thing is that the Mapper and the Spotter(s) may not talk to the Wearer as he/she scans the room. When the Wearer deems the mapping is complete, he/she may unblindfold. The group may then compare the map and the location that was mapped. Some things to look for:

1. How does the map compare/differ from the actual location?

2. Were there any big things that were missed in mapping the room?

3. What could have been done to improve your mapping success?

4. Were other groups more or less successful than your group? Consult with the more accurate groups to see what they may have done differently.

5. Don't worry if you cannot identify things that you detect! Just have your mapper tell the cartographer that there is something in that direction and they can mark it on the map (like the "?" spaces marked on the example map below). 

Teaching tips

Materials:

Student-made wearables

Blindfolds (one per student group)

Clipboards (or some other method where students can walk and do some mapping. 

Students should be partnered up (if not already in pairs or groups) and one student should be the blindfolded "wearer" and one or more other students will be the mappers and/or spotters so the "wearer" doesn't run into obstacles or other students.

Students should be blindfolded and taken to an area they are not instantly familiar with (i.e. don't just blindfold them in the classroom and then do the activity. Blindfold them and walk them to the library and have them map it). If you have mobile dividers in your classroom, it would be a fun challenge to blindfold the student wearing the device and then move the dividers around.

9

Optional Activity: Orcas and Dolphins

30 min

Fun fact! Orcas have been known to eat moose! I know this is not relevant to the game you're about to play, but it is super interesting. So much so that when I came across it, I wanted to share it!

Orcas (killer whales) are generalist predators. That means that they will eat whatever they can catch...including dolphins. Now, nobody likes it when Flipper gets eaten, but this is the sad reality of the wild. Both of these creatures (orcas and dolphins) use echolocation when diving in the dark.

As you go deeper into the ocean, it gets progressively darker. Beyond 200 meters, so little light gets down through the ocean that photosynthesis cannot occur. Orcas and some dolphin species can dive as deep as 1000m in search of prey. In the dark, deep ocean is where our two species meet to use their echolocating abilities to hunt or survive! 

The game is as follows:

1. Everyone with an Arduino Ultrasonic Biohacking sensor wearable will be blindfolded.

2. One or two students are selected as the orcas. These students will start in the middle of the gym. The rest of the blindfolded students (dolphins) will start out at one end of the gym. 

3. Spotters (anyone not wearing a blindfold) will follow the orcas and dolphins around to make sure they do not run into anything or into each other. Spotters need to stay a few meters away from the players so they don't trip off the ultrasonic sensors. In this case, if someone is about to run into a wall, it is a good idea to yell his/her name to keep them from harm. 

4. If an orca tags a dolphin, that dolphin becomes an orca and will then begin searching for dolphins to predate. If an orca tags another orca, the tagged player will just say "orca" and the two will keep searching for dolphins.

5. The dolphins will try to make it from one end of the gym to the other end without getting tagged.

6. Neither dolphins nor orcas may run in the course of the game. At least one foot must stay on the ground at all times!

7. The last dolphin to be tagged (or make it across the gym) is the winner. Have blindfolded players switch out with spotters so everyone gets a chance! 

Teaching tips

Was your group successful in mapping out the location in a safe fashion? If there were no bumps and bruises, then your group may be able to try "Orcas and Dolphins"

You will need one blindfold per person with an Arduino Ultrasonic Biohacking sensor wearable. You will also need a large, open space, like a gym.

You will need to stress that even though this is a game, being safe is higher on the list. Nobody likes to go home with a concussion or a bloody nose in the name of STEM.

Any student who is not actively playing can help by spotting other students and making sure the blindfolded students don't run into each other or any obstacles! 

If you have time or would like to give the students a primer on aquatic echolocation, visit this YouTube video

Just for fun, you could play whale and dolphin noises to help mask the sound of students walking around. They should be relying on just the sound of their wearable to navigate!

You can also have the students do an exit ticket and have them write down the most difficult aspects of the activity, things they learned, or if they garnered an appreciation for how whales, bats, and other echolocating critters navigate!

10

Optional Activity: Modification of Wearable

10 min

Now that you have some experience with your wearable, how would you improve it? TWI, https://www.twi-global.com/technical-knowledge/faqs/engineering-design-process, 2023

First, let's look at the code side of things.

Did you make any modifications? If so, what did you do? Did those changes have an appreciable effect on the wearable? If not, what changes might you implement in the code to make your wearable more effective? If you're not sure what to change, check out the video in Step 5: Coding your Arduino to get some ideas.

Secondly, let's look at the physical aspects of the wearable.

Where did you mount/integrate the sensor on your body? After having used the device, do you have better ideas on where to place the sensor? 

What about the sensor? Do you think there might be better ways to sense the world around you?

What about the output? Did the tones of the passive buzzer help? What else could a person without sight use in place of the tones to help them sense the world around them?

 

Teaching tips

In this step, students will have the option to reflect on their experiences with the wearable and how it could be improved. 

If you have time, have the students improve on their devices and try remapping or replaying the Orcas and Dolphins game. Have them compare and contrast their different designs!

11

Optional Activity: Creating your own Biohacking Wearable

30 min

This step is very open-ended and your teacher has several great ideas on projects you can do. In the meantime, here are some resources you might need:

TinkerCAD

Instructables

Best of luck with your new wearable project!

Teaching tips

This step is very open-ended and is dependent on the time and resources you're willing to dedicate to the project.

Option 1: If you have little time and resources, have students do some research on different sensors and outputs available for Arduinos (there are a lot!) Have them propose a new wearable using a different sensor (or multiple sensors) and at least one new output. What is the proposed use case for this wearable? Who is the proposed user of this wearable? What benefit could this wearable have on that person?

Option 2: More time, still few resources, do Option 1 but also include an online simulator like TinkerCAD Circuits to model the wearable. Students might even use TinkerCAD Circuits' built-in coding environment to use block coding or text-based coding to program their wearable. This one would be more complicated, but there are a ton of resources (like Instructables) to get students started in the right direction.

Option 3: Time and resources, do Options 1 and 2, and then go to the next step and order the parts to have students make their new wearable! The end product could be that each student group makes an Instructable on how they created their wearable!

Materials

  • Circuit Components Box — 5 per group
  • ELEGOO UNO — 5 per group
  • Phase Dock Workbench — 5 per group

Related Supply Kit

Arduino Workbench

All the hands-on materials you need for this lesson, delivered to your classroom.

Ready to bring this lesson to your classroom?

Sign up to save this lesson, order supplies, and track student progress.