# MacGyver Season 1 Episode 18 Science Notes: Flashlight

Hold on. There’s a metric butt ton of science in this episode. It’s going to be great.

Turning bullet

SPOILER ALERT. This episode has a bullet that can turn. It’s sort of the key plot element in this episode. These dudes are trying to steal the technology for these “smart bullets”. These bullets are essentially tiny guided missiles with fins so that they can turn in flight.

I’ll just leave this Wikipedia link on smart bullets and then move on (it’s not really a MacGyver hack anyway).

The physics of birthdays

Again, not a hack—but MacGyver thinks birthdays are dumb. Well, not dumb but arbitrary. I think he is right. In fact, I use the following phrase on people’s birthday’s:

Happy Solar Orbit Day.

Yes, that is the day the person completes another orbit around the Sun. I like thinking of it that way.

Fixing a generator inverter

There are lots of different types of generators. Most of them involve a gasoline engine that turns stuff. Some times this turning stuff involves a magnet to make an electric current. But what happens when the magnet get’s messed up? Yes, you have to fix it.

A permanent magnet is a ferromagnetic object (like iron) in which all the magnetic domains are aligned. If the domains are not aligned then it would just act like a dumb piece of metal. You can get the domains align by applying a strong magnetic field.

This is exactly what MacGyver does to the generator. He uses a defibrillator to generate the current and forms a loop of wire to create the strong external magnetic field. Seems like it could work.

DIY sand blaster

How do you get people out of a collapsed building? What if you could just cut through the wall? Yes, that’s the MacGyver plan.

In this case, he uses high pressure water mixed with sand—a type of sand blaster. If you have water at a high enough pressure, it can pretty much cut through anything. Of course MacGyver’s water by itself isn’t fast enough. That’s where the sand comes in. When the sand hits the concrete, the abrasive interaction is enough to eat away at the concrete.

Oh, this would take quite a while to work.

Yes, this is a real thing. NASA made this device. Here is a description. Basically, this thing sends out microwaves and detects the reflected microwaves. But the magic is that it only looks for variations in reflections caused by small oscillations—these oscillations are from a human heart.

For MacGyver’s version, he starts with a radar gun (from a police car). These don’t use the same frequency as the microwave detector, but he can make a modification. With some software from Riley, that’s pretty much what he needs to get started. It’s at least plausible.

Screw jack

How do you lift super heavy stuff? You need a simple machine. All of the simple machines deal with force and distance. If you can increase the distance over which you apply a force, you can get a greater output force over a shorter distance.

In this case, MacGyver makes a screw jack. You can lift a large mass by turning the screw to get it to extend. In fact, you could do something like this yourself. Here’s how.

Ascender rig

The goal of an ascender rig is to allow some device to move UP a rope, but not down. This means you can climb up a rope one little bit at a time. Here is an example.

Oh, MacGyver made an ascender rig to climb an elevator cable and escape a collapsed building.

Modify laser

The smart bullet is aimed using a laser. Of course the bullet is only a little bit smart. It only aims towards the brightest laser. If you could make another laser that gets the attention of the bullet, you can get the bullet off course.

MacGyver takes the laser sight off a pistol. In order to increase the power output, he burns off a potentiometer. This could work on some lasers—like this.

Oh, DON’T DO THIS. You don’t want a powerful laser without knowing what it can do. These lasers can seriously damage your eyes in ways you wouldn’t be able to predict. Remember, you only have two eyes. Don’t mess them up.

So, they use this powerful laser to redirect a smart bullet. That part is plausible. It’s unlikely they could get a bullet to turn all the way around. They wouldn’t have time to move the laser dot and the bullet fins couldn’t make it turn that much.

Who cares. It was still a great episode.

# MacGyver Season 3 Episode 16 Science Notes: LIDAR + Rouges + Duty

What is LIDAR?

Again, this is not a MacGyver-hack. Well, I guess it sort of is a Mac-hack since he designed the LIDAR. So, what is LIDAR? At the most basic level, LIDAR uses a laser to determine the distance to an object. By scanning this laser over some area, you can get a very detailed distance map. If you know the location of the LIDAR (in the aircraft), you get a very nice map of the terrain below.

But how do you get distance with a laser? The laser produces a beam of light (that’s what the “L” stands for in “laser”) and this light travels at a speed of about $3 \times 10^8\text{ m/s}$. Yes, that is super fast. However, it’s not infinitely fast. So when this laser light travels and reflects off of something, it takes time to get back to the LIDAR. The longer it takes to return, the greater the distance. That’s the basic idea of LIDAR.

How do you start a jet engine?

I’m not an aeronautical engineer (in case you didn’t already figure that out). So here is my very simple explanation of a jet engine. The key to getting thrust is the same as a propeller driven aircraft: make the air coming in go faster as it leaves. This increase of air speed (into and out of the engine) means a change in momentum and thus a forward pushing force. For the jet engine, it increases the final speed of the outgoing air by also heating it by burning fuel.

So, how do you start a jet engine? It’s not the same as starting your car (but not completely different either). The main thing is that you need to get the jet turbines spinning first so that there is air moving through the engine. Then you can add the burning fuel to get the thing started. Here is a great video on how this works. Oh, this is why youtube is so nice—you can find a video on pretty much anything.

Pick lock with a paperclip

Oh, you missed this hack—didn’t you. When MacGyver gets into the old building, he has a paperclip in has hand. So, can you pick a lock with a paperclip? Maybe. You could use the paperclip to jiggle the lock pins, but you would need something to apply torque to the lock cylinder.

Here is a tutorial on lock picking—but don’t be a bad guy.

Break open door with a raft

MacGyver pushes open a locked door by filling a raft with water. Let’s start with the definition of pressure. Pressure is a force divided by an area.

Let’s start with the definition of pressure. Pressure is a force divided by an area.

$P=\frac{F}{A}$

You can solve this for the force.

$F=PA$

So, if you have a pressure (in the raft) it will produce a force equal to the product of the pressure and the contact area. The bigger the area, the greater the force. In fact, with just a small pressure you can get a pretty big force.

OK, this is from a previous episode but I still like it. Here is a demonstration in which I use the pressure from my lungs to lift myself. Yes, small pressure with a large area means a significant e force.

What about the water? Well, the water will give the raft more mass so that it doesn’t just push itself away from the door. If you want to open the door with air pressure, you would need to have something hold the raft agains the door.

Dart gun

I love this visual effect where MacGyver is looking around for stuff to build and it shows all the things he sees. In the end, he builds a dart gun that shoots morphine needles.

Really, I just want to talk about two parts of this build—the shooting and the injecting. MacGyver uses a propane tank to shoot the dart. This is the same as your basic potato gun. Compressed gas from the tank push the dart in the tube. The longer the distance of the tube, the greater the final speed of the dart.

For the injection, you can’t just shoot a needle into someone. You need to push that plunger on the back of the needle to get the drug into a body. That’s where the steel spacers come into play. When the front of the dart hits a person, it will stop. However, the mass on the back will want to keep going until a force slows it down. This force comes from the plunger—that means the plunger gets depressed and the bad guys get drugged.

Beam splitter

How do you make one laser look like many lasers? You need a beam splitter. This is exactly what MacGyver does to fool the baddies into thinking there are bunch of other good guys in the woods.

Basically, a beam splitter is a piece of glass. We like to think of glass as being transparent so that light goes right through it—and it does. That’s why we use glass for windows to see stuff outside. But light also reflects off glass. In fact, if the light (from the laser) hits the glass at an angle then you will get both transmission AND reflection.

It doesn’t even need to be glass. Here is a quick demonstration of a beam splitter with just a piece of clear plastic.

# MacGyver Season 3 Episode 15 Science Notes: K9 + Smugglers + New Recruit

Dog nose

Dog’s are pretty awesome for smelling stuff. They have noses that are much more sensitive than a human and they are smart enough to be trained. Oh, also they are dogs—so that’s an extra bonus. Dogs can detect more than guns. When trained, they can sniff out drugs or even some humans with particular medical conditions. Pretty awesome.

Here is a nice PBS article on the science of dog noses. Oh, this isn’t actually a MacGyver hack. I guess that’s clear though.

Wall climb

Again, not a MacGyver hack. Instead, there is a scene in which Desi (yes, Desi is the new recruit) runs and uses a corner of two walls to climb on top of a storage container.

So, how the heck do you run up a wall? The answer is “friction” and “momentum”. Let’s start with friction.

When two surfaces interact, there can be a frictional force. This force is parallel to the surfaces and proportional the perpendicular force that pushes the two surfaces together (we call this the normal force). If you put a book on a flat table, you can feel that frictional force as you try to slide the book. If you push DOWN on the book while trying to pull it, the frictional force will increase.

Since you have a vertical wall, it’s possible to have an upward frictional force to prevent Desi from falling down. However, there needs to be a force pushing Desi INTO the wall in order to have a significant perpendicular force. Actually, try this yourself. Take that same book you had on the table. Now put it on a vertical wall and let go. Yes. It falls. There is nothing pushing the book into the wall so there is no frictional force.

Now for momentum. Momentum (represented by “p”) is the product of an object’s (or human’s) mass and velocity where the velocity is a vector (depends on both the speed and the direction). Momentum is important in its relationship to the net force on an object. Here, we have the momentum principle:

$\vec{F}_\text{net} = \frac{\Delta \vec{p}}{\Delta t}$

So, what happens when Desi runs TOWARDS a wall and pushes off? The direction of her momentum changes from towards the wall to away from the wall. This change in momentum means there must be a force on her. Yes, this force comes from the wall. The faster she runs towards the wall, the greater her change in momentum and the larger the normal force.

This means a large normal force also produces a large frictional force. The frictional force is high enough to prevent Desi from falling while in contact with the wall. In fact, it’s a large enough force for her to move UP the wall. Of course, she is also now moving away from the wall. This is where the second wall comes into play. Now she just does the same this with that other corner wall. Physics.

Smoke screen

MacGyver needs a distraction. He takes some gun oil (used to trick the dog) and pours it into the engine of a forklift. When the fork lift starts, it is now running with extra oil in the fuel. This oil produces a blue-white smoke that comes out the exhaust. Yes, you have seen this with cars. It’s a bad sign that there is oil leaking into the engine cylinders.

The next thing that MacGyver does is to cut the fuel line. This pours extra diesel onto the hot engine. Theoretically, it could catch fire. Theoretically, this fire could cause an explosion. In theory.

DIY dog whistle

Yes, you can indeed make a whistle from a stick. Some sticks are easier than others—but still…

What makes a dog whistle different than a whistle? It’s really just the fundamental frequency that it blows. A normal whistle has a lower frequency that human ears are good at detecting. The dog whistle has a much higher frequency that most humans can’t hear.

Oh, what about the plastic bag? Yes, MacGyver gets a plastic bag and attaches this to the whistle. This makes an improvised bellows. The idea is that you can fill it up with air and then push the air out at a greater rate than just blowing. It makes the whistle louder than normal.

RFID detection

Cody (the dog) has an RFID chip in him. The basic idea behind a passive RFID is that you can excite it with a radio wave such that it transmits some data (like an ID). Oh, but you have to get pretty close for this to work. Here is a nice RFID tutorial.

Now for the MacGyver hack. In order to find Cody with his RFID, they need two things. First, they need a method to activate the passive RFID at a long range. To do this you need lots of power. That’s where the AM radio station comes in. If you use a nearby radio transmitter, it could activate a bunch of RFID tags. This is fairly plausible. No, you wouldn’t “hear” anything—it would just broadcast a particular frequency that the RFID uses.

The second thing—something to detect the RFID signal from a range. That’s why you need a satellite dish. The parabolic dish reflects weak radio signals into the detector. Of course this only works if you are pointing it in the right direction. So, you need to sweep this over some area until you get a signal. Once you find the dog you want, you have to use the dish to zero in on the location.

Disabling a car

What can you do to prevent a car from driving? Yes, there is the classic banana up a tail pipe trick (from Beverly Hills Cop), but how about something different?

OK, I admit this is a bit of a stretch. However, if you can make some sort of electromagnetic pulse device then it can interfere with the car’s electronic system.

That’s “essentially” what MacGyver does here. Let’s just leave it at that.

Foam fire extinguisher

How do you put out a fire? One way is to remove oxygen from the fire. Without oxygen, the fire can’t burn. This is essentially what a carbon dioxide fire extinguisher does. It shoots out carbon dioxide gas which displaces the oxygen and the fire goes out.

You can make a foam-based fire extinguisher that essentially does the same thing. The only difference is that the carbon dioxide is trapped in the foam. This means that you can cover some stuff with the foam and it should put out the fire.

Now for the fun part. You can make fire extinguishing foam with three things: vinegar, baking soda, liquid soap.

When you mix baking soda and vinegar, it produces carbon dioxide. If you add soap to the vinegar, then it also bubbles. This is not too difficult to try (but it can get messy).

# MacGyver Season 1 Episode 17 Science Notes: Ruler

Propane tank flame thrower

Take a propane tank and bicycle tube. Cut the bike tire to make it a hose and connect it to the propane tank. Use a road flare to light the gas—boom. There is your flame thrower.

Oh but wait. It’s just a dream. Bozer’s dream. The flame thrower wasn’t real anyway.

Listen in on a landline phone

Who uses a landline now anyway? Oh well. They want to use a landline then it’s possible to listen in. Actually, this isn’t even that difficult. Check it out.

Here is another version.

You just need a capacitor and maybe an inductor. You could grab these from a radio or something like that.

But wait. I made a mistake. While going over this hack, I said something like this:

“Yeah, this is pretty easy. Just get the capacitor and earpiece (or radio) and then tie it into the wiring box”

Here’s what that looks like.

I just want to point out this small mistake (that you would never notice) just in case you saw it. You don’t actually “tie” the lines—that’s just a term we use in circuits to mean “connect”.

There’s a bomb in the truck. Where should you park it so that no one gets hurt? Yeah, this is a tough calculation. However, tough has never stopped MacGyver before and it won’t stop him now.

Here is my rough calculation and explaination.

Bombs are complicated. But usually it is the pressure produced by the explosion that will get you. We can come up with some pretty useful models to calculate their impact. First, there is the Hopkinson-Cranz Scaling Law (this is a real thing). With this law, the acceptable distance can be calculated based on the explosive weight.

$\mathrm{Range} = (z)(\mathrm{weight})^(1/3)$

In this expression z is a factor that depends on the type of distance with 14.8 being the distance factor for a public traffic route. That means that 2 kilograms would need 18.6 meters (60 feet).

Infrared face jammer

OK, it doesn’t actually jam your face. That would be weird. MacGyver wants to prevent the security cameras from recognizing their faces. So he takes some infrared TV removes and pulls out the IR LED lights. Normally these flash on and off so that the sensor on the TV can “see them” but humans can’t.

He mounts these IR LED lights on some sun glasses with a battery to power them. When a security camera sees the face, it just gets blinded by the IR light since many video cameras can also detect IR.

If your phone camera doesn’t have an IR filter (most now do) then you can actually see the light flashing on a TV remote by pointing it at your phone.

Oh, so this could really work. It just depends on the type of video cameras. Some people even put stuff like this on their car license plate so that police cameras can’t see them.

Car jacking

How do you open a locked car door? One way is to jam a wedge into the door. This will pull the door out just a little (by bending it) so that you can get a stick in there. The stick then can be used to push the “lock” button.

In this case, MacGyver uses something for the wedge—maybe a shoe horn or a door stop. Then a monopod is extended to click the lock button.

DIY soldering iron

You might have missed this one. But as MacGyver is building his stuff for the last mission, he needs a soldering iron. He takes the heating element out of a hair dryer and connects it to some stuff. That works.

Fake noses

Need a disguise? How about DIY latex to make a nose? Yes, this seems plausible. Here’s how to do it.

MacGyver makes a quick circuit board that can crack a keypad by using a brute force method that goes through all the combinations. This is from a different episode, but it’s the same idea.

If you want to play with one yourself, here is an online version of the code.

Well, it’s just a radio. MacGyver needs a speaker and a transmitter. Really, a radio transmitter is essentially the same thing as a radio receiver—OK, not really but sort of.

Instead of going over the way MacGyver did it, how about a real actual radio you could build yourself? Here is a spark gap transmitter from simple parts (and awesome).

Here is a more detailed explanation of the spark gap transmitter from one of my WIRED posts.

# MacGyver Season 1 Episode 16 Science Notes: Hook

Quicksand

Yes, it’s true. You don’t really sink all the way down in quicksand—that’s because the density of the stuff is greater than the density of water. Essentially, you float.

Here is a nice video on quicksand.

Pool shot.

I. Love. This. So, MacGyver is there trying to score a nice shot in pool (the game, not the pool). He starts thinking about all the physics to get the perfect shot—one with some curve. Here is what goes through his mind.

That’s pretty awesome, right? Let’s go over some of the key equations.

First, why does the ball turn? If you want to turn, you have to have a sideways force. In this case, the sideways force is a frictional force on the ball as it spins and slides on the table.

Once you know the frictional force, you can use this to find the new vector velocity after some short time. This is basically the numerical version of the definition of acceleration. Here’s that equation.

$\vec{v}_3= \vec{v}_2+\frac{\vec{F}_f}{m}\Delta t$

Oh, vectors. Look at the vector notation. Winning.

Next there is the changing angular speed of the ball. Since the ball is spinning with a frictional force, the ball would slow down. We describe the change in angular motion by using the angular momentum principle. This states:

$\vec{\tau} = \frac{\Delta \vec{L}}{\Delta t}$

Where L is the angular momentum vector. For a rigid object, the angular momentum is the product of the moment of inertia and the angular velocity (for most cases).

$\vec{L}=I\vec{\omega}$

Where I is the moment of inertia (or as I like to call it, the rotational mass) for a sphere.

$I = \frac{2}{5}MR^2$

That’s pretty much all the equations you see.

Of course the amazing part is that humans can make these very complicated shots WITHOUT doing the calculations. I don’t know how that works.

Zip-tie nunchucks.

Two broken pieces of a pool stick and a towel. Boom. Nunchuck. But this is all I can think of.

Magnet phone tracker

How do you track a fleeing truck? You stick your smart phone on the bottom using a magnet. Oh, this works so well that Spider-Man used this same trick the following year in Spider-Man: Homecoming when he left his phone in the Vulture’s car.

There is a small problem with those car magnets. They are like refrigerator magnets in that they have weird magnetic domains. Actually, you should try this experiment.

• Grab a fridge magnet.
• Flip it around and put it on the fridge.
• Oh, it doesn’t work!

The magnetic domains in these flat magnets are such that they stick on one side but not the other. That makes it tough to use for a magnetic phone tracker.

A better method would be to run a wire (or zip tie) through the magnet and around the phone. Like this.

Stab pepper spray with a knife

Yes, if you poke a hole in a can of pepper spray it will get pepper spray all over the place.

Circuit board knife

MacGyver uses a broken circuit board to cut through zip ties. Zip ties aren’t that strong anyway—it seems very plausible that you could sharpen a circuit board to cut through one of these things.

Control a car remotely

Is it possible to control a car with a computer? Sadly, this is real.

Moonshine spray

MacGyver sprays 155 proof moonshine and threatens to light it. Yes, 155 proof can catch on fire.

# Electric Field due to a Uniformly Charged Ring

Hold on to your pants. Let’s do this.

Suppose I have an electrically charged ring. The radius of this ring is R and the total charge is Q. The axis of the ring is on the x-axis. What is the value of the electric field along this x-axis?

Analytical Calculation

You can’t directly find the electric field due to a charge distribution like this. Instead, you have to break the object into a bunch of tiny pieces and use the superposition principle. The super position principle says that the total electric field at some point is the vector sum of the electric field due to individual point charges.

Of course the electric field due to a single point change can be found as:

$\vec{E}=\frac{1}{4\pi \epsilon_0} \frac{q\hat{r}}{r^2}$

So, if I break this ring into a bunch of tiny points I can find the electric field due to each of these points and add them up. Yes, the smaller the points the better the answer. In fact, if I take the limit in which the point size goes to zero I will turn this into an integral. Calculus for the win (CFTW).

Let’s take a look at one of these pieces on the ring of charge. Here is a view of the ring from the side.

I can find the little bit of electric field from this little bit of charge at the top of the ring. This electric field would be:

$d\vec{E}=\frac{1}{4\pi\epsilon_0}\frac{dq\hat{r}}{r^2}$

Of course the direction of r and thus the electric field will change directions as you go around this ring and add up tiny electric fields. But WAIT! We can cheat. OK, it’s not cheating–it’s just being smart. What if you also consider the tiny piece of charge at the bottom of the ring? This would also make a tiny electric field at this same location. It would have the same magnitude as the electric from the top piece since it’s the same charge and distance. However, the y-components of these two electric fields would cancel and leave only an x-component of the field.

In fact, for every tiny piece on the ring there is a corresponding piece on the opposite side of the ring. The only surviving components of electric field will be in the x-direction. So that’s all we need to calculate.

Looking at the diagram above, I can find the x-component of this tiny electric field by using the angle θ (which I don’t explicitly know). However, I can still write down this new x-component of the tiny electric field.

$dE_x = \frac{1}{4 \pi \epsilon_0} \frac{dq}{r^2}\cos\theta$

Yes, this is no longer a vector. It’s the x-component of the electric field such that it’s just a scalar. But there’s still a problem. I want to add up (thus integrate) all these tiny electric fields due to the tiny charges. However, I have these two variables that I don’t like. There is θ and r. I need to replace those.

For the r, it’s clear that I can use R and x and the pythagorean triangle to get:

$r^2=R^2+x^2$

I can also replace the θ by again using the right triangle to write:

$\cos \theta = \frac{x}{\sqrt{R^2+x^2}}$

Updating the tiny x-electric field:

$dE_x = \frac{1}{4 \pi \epsilon_0}\frac{dq}{R^2+x^2}\frac{x}{\sqrt{R^2+x^2}}$

This simplifies to:

$dE_x = \frac{1}{4 \pi \epsilon_0}\frac{xdq}{(R^2+x^2)^{3/2}}$

Now we need to get a better integration variable—we can’t integrate over dq. Or can we? Yes, we can. Take a look at the equation above. As you move around the circle, which of those variables change? The answer: none of them.

As I integrate over dq, I just get the sum of the dq’s—which would be Q. Boom. That’s it. Here is my final expression for the x-component of the electric field along the x-axis of this ring.

$E_x = \frac{1}{4 \pi \epsilon_0}\frac{xQ}{(R^2+x^2)^{3/2}}$

Now for a couple of checks on this result. I will let you make sure these are ok.

• Does this expression have the correct units for electric field?
• What about the limit that x>>R? Does this expression look like the field due to a point charge?
• What is the electric field in the center of the ring?

One last thing to think about. What if you want to find the electric field at some location that is NOT on the x-axis? Then the above derivation wouldn’t work. Too bad.

Numerical Calculation

Let’s do this again. However, this time I am going to create a numerical calculation instead of an analytical calculation. What’s the difference?

• The analytical calculation takes the sum of charge pieces in the limit as the size of the pieces goes to zero.
• The numerical calculation uses numerical values for a finite number of pieces to calculate the electric field.

That’s really the only difference.

OK, let’s just get into this. I’m going to give you a link to the code and then I will go over every single important part of it. Honestly, you aren’t going to understand this code until you play with it and probably break it.

Here is the code on trinket.io. Sorry—I can’t embed the code in this wordpress blog (I wish I could).

This is where I start.

k=9e9
Q=10e-9
R=0.01


I like to start with some constants and stuff. Here I am using k for the constant. I also had to pick a value for the total charge and the radius of the ring. Remember, you can’t do a numerical calculation without numbers.

Now let’s make the ring.

Some notes.

• This isn’t really needed for the calculation—but it allows us to make a visualization of the thingy.
• “ring” is a built in object in VPython (glowscript).
• The important attributes of this object are the position (pos), the axis—which is a vector in the direction of the axis of the ring. Radius and thickness and color should make sense.

For the next part, I need to break this ring into pieces. If I use N pieces, then I can find the location of each of the tiny charges by using an angle to indicate the location. I also need to find the charge on each tiny piece. Here is the important code.

N=20
theta=0
dtheta=2*pi/N
dq=Q/N


The “dtheta” is the angular shift between one piece and the next. It’s like a clock. It’s a clock that only ticks N times and doesn’t really tell time. But each “tick” is another tiny charge. Maybe that’s a terrible analogy.

But how do we deal with all these tiny charges? What if N is equal to 50? I don’t want to make 50 variables for the 50 charges. I’m too lazy. So instead, I am going to make a list. Lists in python are super awesome.

I won’t go into all the details of lists (maybe I will make tutorial later), instead I will just show the code and explain it. Here’s where I make the tiny charge pieces.

points=[]

while theta<2*pi:
theta=theta+dtheta


Some notes.

• First, I made an empty list called “points”.
• Next I went through all the angular positions around the ring. That’s what the while loop does.
• Now I create a sphere at that angular position and add it to the points list.
• Update theta and repeat.
• In the end I have a list of points—the first one at points[0].

Next part—make the observation location. This is the spot at which I will calculate the electric field.

obs=sphere(pos=vector(.03,0.03,0), radius=R/10)
E=vector(0,0,0)


The “E” is the base electric field, it starts at the zero vector.

Now for the physics.

for p in points:
r=obs.pos-p.pos
dE=k*dq*norm(r)/mag(r)**2
E=E+dE

print("E = ",E," N/C")


Here you can see the full power of a list. Once I make the list of tiny charges, it is very simple to go through the list one tiny charge at a time—using the “for loop”.

Essentially, this loop does the following:

• Take a tiny charge piece.
• Find the vector from this piece to the observation location
• Find the tiny component of the electric field using the equation for a point charge.
• Add this tiny electric field to the total electric field and then move on to the next piece.

Boom. That’s it. Print that sucker out. Maybe you should compare this electric field to the analytical solution. Oh wait. There’s a bunch of homework questions. Actually, I was going to do some of these but this post is already longer than I anticipated.

Homework

• Pick a value of N = 10 and an observation location of x = 0.1 meters. How well does the analytical and numerical calculations agree? What if you change to N = 50? What about N = 100?
• Create a graph that shows the magnitude of the electric field as a function of x (along the ring axis). In this graph include the analytical solution and plots for N = 10, 30, 50, 100.

Actually, I wanted to make that last graph. It would be great.

Oh wait! I forgot about the most important thing. What if I want to calculate the electric field at a location that is NOT on the x-axis? Analytically, this is pretty much impossible. But it’s pretty easy with a numerical calculation. Here’s what that would look like.

Oh, if you like videos—here is the video version of this post.

# MacGyver Season 1 Episode 15 Science Notes: Magnifying Glass

It’s too late to change now—but I wish I had planned better for my titles for these science notes. I just don’t like the way it looks. Oh well. On to the science.

Jumping out of window with a TV cable

MacGyver yanks a TV cable from the wall and ties it around him. Then boom—he’s out of the second story window to catch a bad guy. As he falls, the cable gets pulled from the wall and sort of prevents him from a full force impact with the ground.

Electrostatic dust print lifter

Electrostatic dust print lifters are indeed real. Here is an example of a real one.

The basic idea is to take a conducting sheet and lay it on top of the area where you want to find a print (finger print or shoe print). When a large electric field is applied, the dust literally gets lifted and stuck to the conducting sheet. Boom. There is your print. Oh, you need about 800 volts to get a high enough electric field (according to one paper that is no longer online for some reason).

For the MacGyver version, he uses some mylar for the sheet. In order to create the large electric field, he can use the charging capacitor for the flash in a disposable camera. That might not get up to 800 volts, but it’s a good start. Yes, it’s also true that you can get fairly high voltages just by rubbing two different materials together—as long as the air is dry. This is exactly what happens when you rub your feet across a carpeted floor and then shock the bejeezus out of someone. Same idea.

One more thing. The official version of the electrostatic dust print lifter is pretty expensive. But someone made one for just 50 dollars using a stun gun. Here is the hackaday.com link, but it looks like the original post has link rotted.

Just to show you some more electrostatic stuff—here are some demos that you could try.

Open an envelope with steam from a radiator

Yup, this works.

Wifi wall detector

OK, it doesn’t detect walls. Instead, the wifi can find empty spaces behind walls. MacGyver takes a wifi router with a partially parabolic dish (using aluminum foil) over the antenna. He then connects the output to a speaker (for a cool effect).

Yes, wifi is essentially a radio wave (it is a radio wave). Radio waves mostly pass through walls—but you have wifi in your house and you know that sometimes you don’t get a great signal. This shows that wifi is at least partially blocked by walls. The wifi can also reflect off stuff.

It is this reflected wifi that MacGyver uses to find the hidden room. When there is nothing on the back side of a wall, you don’t get a good reflected signal and that changes the sound of the connected speaker.

OK, this probably wouldn’t work—but it’s still based on this idea that wifi can interact with walls in different ways. Anyway, MIT has created a tool to use wifi to see through walls. Note, this show came out before that. I’m not saying MIT based that wifi thing on this episodes. I’m just sayin.

Movie film roll for distracting fire

MacGyver takes one of those movie film rolls. Adds some stuff and then lights it on fire. When he rolls it down to the front of the movie theater—boom. Distracting explosion. Yeah, lots of stuff burns. No problem here.

But how do you make a model of a falling slinky? Remember, you don’t fully understand something until you model it.

Also, with a model you can quickly test different situations. What happens if you put a car on one end of the slinky (or massive spring). What kind of spring constant do you need? What if the two masses are different?

All of these questions can be investigated with a model.

Let’s get to it. Of course, I am building my model with python—because I like python (and so should you). Here is my code. This is what most of it looks like (sorry, I can’t embed here).

Here is a gif of the output.

Some notes:

• The balls wait a short time before dropping—just to make it dramatic.
• I have calculated the position of the bottom mass so that it starts in equilibrium. If you don’t do that, the bottom mass will just oscillate up and down and ruin the whole thing.
• I added two objects—a stick on the side and a free falling ball. That way you can see how the spring thingy falls.
• Oh, you should absolutely try changing things up and running the model.

Here is how the model works.

• There are two masses (the ball1 and ball2)—just ignore the other objects, they don’t matter.
• Once the top mass is let go, there are two forces on the two balls. The downward gravitational force and then the spring force. Whatever the spring force on the bottom ball is, the top ball has the opposite.
• The gravitational force is easy to calculate.
• For the spring force, you need to know the natural length of the spring and the distance between the masses. The spring force depends on the difference between the distance and the natural length—then just multiply by the spring constant. Yes, I often mess up the sign on this force so that the two objects get pushed away in a weird motion.
• After that, you are pretty much done. Use this force to update the momentum and then use the momentum to update the position.

Homework.

Here are some things for you to try.

• What if the top mass is 0.1 times the bottom mass? Does this still work?
• What if the bottom mass is 0.1 times the top mass?
• See if you can calculate and plot the vertical motion of the center of mass of the two ball system.
• What if the spring also has mass? There is a way to model this, but I’m going to make you think about it first.
• Suppose I want to do this with a 2000 kg car. What spring constant would I need? What natural length of a spring should I use?

# MacGyver Season 1 Episode 14 Science Notes: Fish Scaler

Isn’t it nice that I have written enough of these MacGyver science note posts that I no longer have to give some witty introductory comment? Oh, I guess that was an intro comment. OK—next time it’s just going to jump into the science.

Picture triangulation

MacGyver is trying to track down some dude. He finds a skyline picture that he drew and assumes the guy drew it from his apartment window (somewhere in Atlanta).

Oh wait! I think I can find out where this guy lives based on the drawing. True? Yes, this is true. If the guy drew a scale drawing, then yes—it’s entirely possible to find out where he drew it from. Oh, if he does an abstract drawing then all bets are off. Right?

There is a lot here, so let me go over two important ideas needed to backwards engineer this drawing.

First—angular size. You already know about angular size. The farther away something gets, the smaller it looks. If you like, you can make it so that someones head appears to be as big as your thumb. Yes, the human would have to be much farther away than your thumb (from your eye).

If the thumb covers up someone’s head, then the two objects would have the same angular size. How about a diagram to explain angular size? Suppose some object has a length of L and is a distance r away from an observer. It might look like this.

The blue circle is the observer and the red thing is the object. Yes, I drew it as an arc of a circle. If the object is far enough away, this is very good approximation. That means I can use the arc length equation. Remember that if you go all the way around a circle, then the total length is $2\pi r$. That means I get the following:

$L = r\theta$

Assuming the angle θ is in radians and not degrees. Oh, here is a more detailed explanation of the difference between radians and degrees. But in the end, if you know two of the things (angle, distance, size) you can find the third thing.

If MacGyver sees a building that he is familiar with, he knows the size of that building (or at least he could look it up). But he doesn’t know the distance or the angular size—bummer. If this was an actual photograph, it’s possible he could determine the angular size of the building based on the angular field of view for the camera. However, this is drawing, so the entire width of the picture could be just about anything.

Now for the next idea—triangulation. Suppose you know the angular position of two objects. From those angles, you can draw two lines at those angles. Where those two lines meet—that’s your location.

But you can see the problem, right? The triangulation depends on the angular size of the drawing and so does the distance to the objects. It looks like a dead end. But it’s not. Actually, you have enough information to math-it-out if you try (and boy did I try).

I’ll be honest. I worked on this problem for quite some time. Here is one of my earlier sketches for this calculation.

But yes, it does involve some trig.

Hot wire a car

Everyone wants to steal a car. Honestly, modern cars are fairly difficult to just take. There are four or three (depending on how you count) different classes of cars. Let me list them.

• Super old cars. These have a key that starts the car. That’s it. You can steal these—BUT YOU SHOULD NOT STEAL CARS.
• Just plain old cars. These are like super old cars, but they have a steering wheel lock. Sure, you can hot wire these—but you can’t turn the steering wheel.
• Modern cars. I think it’s cars after 1997. These cars have a chip in the key. No chip, no start. Well, you might be able to start it but the car’s computer won’t pump fuel or something like this.
• Even more modern. What about those cars with the key fob and you don’t even put the key in the car? You can’t really hot wire those either.

But check it out. This guy has a great video that goes over the different types of cars and how thieves would steal them (but don’t steal cars).

So, in this case MacGyver hot wires a car. It looks like an older model—so it’s at least plausible. What about the steering wheel lock? Maybe he just yanked on the steering wheel really hard and broke the steering wheel lock.

Cleaning bottle bolo

This is pretty straight forward. MacGyver uses a string to tie two bottles of cleaning solution together. He then swings these around and throws them at a baddies legs. The thing is a bolo. It wraps up his legs and he falls like an AT-AT on Hoth (but a lot faster).

Trip wire fan

MacGyver runs a fishing wire in a hallway and then back to the room. The wire then connects to the switch in an electrical fan. When someone steps on the fishing line, it connects the switch inside the fan and turns it on.

This should work.

Bump key

The bump key is a tool used to pick locks. The main goal in lock picking is to move lock pins up out of the lock cylinder so that you can turn the key. Here is a better explanation (I’m not really an expert here).

Light explosion

How do you make a distraction in a parking garage? One way might be to jam a charger for an electric car into a power box for the overhead lights. That’s what MacGyver did.

Would this work? It’s possible. Most car chargers run at 220-240 volts, but most overhead lights are fluorescent lights that expect 120 volts. If you double the voltage, then bad things can happen.

Basically, there is an electrical ballast inside the fluorescent light. This is a transformer that takes the 120 volts and ramps it up much higher (depending on the length of the tube) so that you can make light. If the voltage is too high, the ballast could go boom.

# MacGyver Season 3 Episode 14 Science Notes: Father + Bride + Betrayal

Hotel door break in with a coat hanger

MacGyver uses a series of coat hanger wires to build a device that opens a hotel door from the inside. It’s basically a long wire that goes under the door and pulls down on the handle from the inside. Here is a video of what that looks like.

Don’t break into other people’s hotel rooms. That’s illegal. You have been warned.

Oh, but that’s not the best part. MacGyver says this is really about torque. Yes, that’s true. You need to exert a torque on that inside handle to get it to turn.

Wait. The real best part is when Riley says “It means physics is awesome”. Yeah it does.

Thermite toothpaste

So the bad dude that is turning himself in has a special safe. If you try to break in—thermite melts the stuff inside. Yes. Thermite is real and thermite is awesome. In fact, here is an older video where we set off some thermite as a chemistry demo.

We need to do this again.

OK, but could you make thermite into a paste? You might be thinking “oh, if you put the thermite in toothpaste, it won’t get as much oxygen for the reaction.” Good idea—but surprise! Thermite has its own supply of oxygen. You can even get a thermite reaction to work underwater.

Really, the only issue with toothpaste is that you don’t want to get the thermite stuff (particles) too far apart so that they can still interact with nearby particles.

Spray can flame thrower with a bonus

Yes, we pretty much all know that if you get a spray can and shoot it into fire you get a mini flame thrower. Oh, I’ve never done this myself but I know a friend of a friend that did it that one time. I’m sure you’ve never tired this either.

But what about the bonus? If you get any type of fine powder, it also explodes (that’s the powdered sugar part that adds to the flame thrower). Yes, when particles are very small and very spread out—they can explode.

Here is an example from season 1.

Cyanide detection

It turns out that there is a fast method to test for cyanide poisoning (which can happen from certain fires—not just for spies).

Here is an article on how this works— https://phys.org/news/2015-03-cyanide-poisoning-seconds.html.

The basic idea is to get the cyanide the cyanide by mixing the blood with both an acid (muriatic acid and/or vinegar) and a base (like baking soda). Add this to a fluorescent agent like a detergent and then look at it with an ultraviolet light. If it glows—it’s cyanide. At least this is plausible.

Cyanide antidote

For the antidote, MacGyver is basically going to make sulfanegen—an experimental cyanide antidote. Yes, humans do indeed build up a sort of tolerance to cyanide since it’s a natural element in many fruits and stuff. Here is my half-plausible method.

• You need sulfur. You can get this from match heads. Yes, that’s true.
• Acid—cleaning supplies.
• Hydrogen peroxide
• Blood. Yes—that might be gross, but you do need that.
• Heat it up and filter it with a coffee filter.

Now, how do you get it to Riley? You could use an IV—but a nasal spray should work too. This is why they give some kids the flu vaccine with a nasal spray.

Don’t actually try to cure someone with this recipe.

Finding the real bad person with interference

MacGyver uses the interference sound from Riley’s radio when she is attacked to figure out that someone is the bad person. Basically, someone had a device that interfered with the radio.

If you had a mobile phone (we didn’t call them smart phones because they weren’t that smart back then) in 90s or early 2000s, then you know what happens when they get near a speaker.

It’s entirely plausible that a medical alert bracelet could do this. In fact, medical equipment often uses older technology because they don’t like to move to newer stuff until it’s been fully tested.

In fact, there could be some type of extra interference caused by the taser and the medical bracelet. That’s what MacGyver wants to reproduce and detect. All he needs to do is to reproduce the taser signal and create an audio output so that he can “test” different people and find the baddie.