Turning on the Sensors

Concept summary and connections

Lesson Content

We need to get our bots to open their eyes, so to speak. We're going to run into some complications right away though (big surprise, right!?). The issue is that we want to have a bunch of active sensors sitting very close to each other, and it's very likely that they're going to interfere with each other if they're on at the same time. When light hits a surface in the real world, it scatters in a wide spray. That scattered IR light will most likely travel from the two sensors that see white into the one that's supposed to see black, making it think it's seeing white as well. This is now an engineering problem!

Multiplexing

The root of the issue here is that we have to share something between a lot of selfish devices. Each one wants to be the only one, but that's not an option. Our job is to figure out how to make them share!

There are two main ways we usually do this: space multiplexing and time multiplexing. Space multiplexing is where you arrange things so that they can do their jobs without being so close together that they mess with each other. In communications, they do this with frequency assignments - each channel gets a frequency that's different enough from the others that they don't have cross-talk. In our bot, this would mean either spreading the sensors apart, or making them each require less room. Since spreading them apart isn't going to work because of our needs for detecting a line, how could we make them take less room?

Okay, so our options for space multiplexing so far don't seem great. What about time multiplexing? How does that work?

In time multiplexing, you only give control of the space to one thing at a time, and you make them take turns. The idea is that you can make the turns fast enough that you don't risk any errors from having sensors disabled at times. If that's true, then time multiplexing is a good option. How could we do this?

This solution will probably be more reliable than the shrouds. Why is that?

Let's get these bots driving around on some lines! It's about time!

Media resources

Practice