Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Combining the Real World with the Virtual World |
Line: 1 to 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Combining the Real World with the Virtual World | |||||||||||||||||||||||||||||||||||||||||||||||||||
Line: 6 to 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Here is a photo of the hardware setup | |||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
In front you see the HC-SR04 ultra-sonic distance sensor (the one with the two cylinders sticking out) and the color sensor (the one with the black guard ring and the 4 LEDs). Behind the distance sensor you see an rgb LED on the left and a level converter on the right, converting the 5V TTL output signals from the distance and the color sensors to 3.3 V needed by the Raspberry Pi.
Here are the connections:
The HC-SR04 distance sensor:
| ||||||||||||||||||||||||||||||||||||||||||||||||||
-- Uli Raich - 2018-03-07
Comments | |||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||
> > | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Combining the Real World with the Virtual WorldBefore we have seen how to read out the color sensor and and how to determine the distance between the colored paper and the ultra-sonic distance sensor. We also saw how to create a virtual world with VPython. All that is left now is combing both parts. Here is a photo of the hardware setup -- Uli Raich - 2018-03-07Comments
|