Tags:
&60;a href=https://tutarchive.
accounting assignment help acc
Assignment Help USA
C Homework Help
C++ Homework Help
ChandigarhEscorts ChandigarhCa
COmputer Software
Computer Software
Dead Animal Removal Melbourne
DIgital Marketing Software De
Economics Assignment Help
Economics Homework Help
escortindelhi
hltaid004 first aid
how to get verified on tiktok
https://scholaron.com/subjects
https://www.anushkadelhi.com/
IVF Treatment
Java Homework Help
Kerosene Suppliers In Dubai
Off-Site Curtain Cleaning Sydn
Onsite Curtain Cleaning Sydney
Prime Curtain Cleaning Sydney
Programming Coursework Help
Programming Homework Help
Python homework help
Riyamodelgirl
Test
tag this topic
create new tag
view all tags
---+ The virtual world example ---++ Introduction The virtual world example uses a TCS3200 color sensor and a HC-SR04 ultrasonic distance meter. When a colored paper is placed in front of the color sensor, the rgb (red, green, blue) components of the paper color are acquired. Then the HC-SR04 is used to measure the distance between the paper and the setup. <img alt="hc_sr04.png" src="%ATTACHURL%/hc_sr04.png" title="hc_sr04.png" /> The photo shows the HC-SR04 distance meter on the left and the TCS3200 color sensor with its illumination LEDs on the right. The TCS3200 is mounted on top of the CPU board. The color and distance information is used to create a virtual world, showing the sensors and the paper with its correct color. When the paper is moved away from the setup, this is reflected in the virtual world. When a paper with a different color is inserted, this also changes the color of the virtual paper in the virtual world. ---++ The color sensor A TCS3200 color sensor is used to determine the paper color. You find a description of it on the [[TCS3200]] page. A driver for the color sensor as well as a few test programs are available. ---++ The HC-SR04 ultrasonic distance meter The HC-SR04 distance measurement is described on the [[HC-SR04]] page. ---++ Creating of the virtual world using vpython [[https://www.glowscriphttps://www.glowscript.org/docs/VPythonDocs/index.htmlt.org/docs/VPythonDocs/index.html][vpython]] allows to easily create 3d images with basic geometrical objects like * boxes * spheres * cylinders * and many more We use vpython to create 2 objects that represent the HC-SR04 and the TCS3200 sensors and the paper in front of them. The virtual world is implemented as a TCP servef, which reads sensor data from a TCP client running on the ESP32. The data are used to select the color of the virtual paper as well as the distance to the sensors. <img alt="virtualWorld.png" height="622" src="%ATTACHURL%/virtualWorld.png" title="virtualWorld.png" width="802" /> vpython v7 did not work out of the box with Ubunttu 22.04. Specific versions of the python modules: * autobahn and * txaio must be installed. First uninstall those two modules: <verbatim>pip uninstall autobahn pip uninstall txaio</verbatim> then install the required versions: <verbatim>pip install autobahn==21.11.1</verbatim> This will also install the correct version of txaio. -- %USERSIG{UliRaich - 2022-05-30}% ---++ Comments %COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
hc_sr04.png
r1
manage
546.4 K
2022-05-30 - 18:56
UliRaich
png
virtualWorld.png
r1
manage
17.2 K
2022-05-30 - 19:50
UliRaich
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2022-05-31
-
UliRaich
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
IoT_Course_English Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback