ev3_dc
latest
Contents:
Introduction
Installation
Examples
EV3
Touch
Infrared
Ultrasonic
Color
Gyro
Sound
Jukebox
Voice
Motor
Two Wheel Vehicle
File System
PID Controller
API documentation
Index
ev3_dc
Docs
»
Examples
Edit on GitHub
Examples
¶
EV3
Connect with the EV3 device
USB
Bluetooth
WiFi
EV3’s properties
name
sleep
volume
battery
sensors
sensors_as_dict
system
network
memory
protocol
host
verbosity
sync_mode
Direct commands
The art of doing nothing
Tell your EV3 what to do
Reading data from EV3’s sensors
Moving motors
Touch
Asking for the current state
Multiple instances of class Touch
Bump-Mode
Infrared
Asking for the distance from a surface
Asking for a beacon’s position
Using up to four beacons
Using the beacon as a remote control
Reading multiple remote control channels simultaneously
Ultrasonic
Asking for the distance from a surface
Color
The reflected intensity of red light
Recognize colors
Red green blue Color Intensities
Balanced red green blue Color Intensities
Ambient light intensity
Gyro
Asking for the current orientation angle
Asking for the current rotation rate
Asking for the current state (angle and rate)
Reset the original orientation
Sound
Play a Tone
Play a Sound File
Play a Sound File as a Thread Task
Play a local Sound File
Jukebox
Change Color
Play Tone
Playing the EU-Antemn
Combine Happy Birthday with the Triad
Singing Canon with an EV3 brick
Voice
Get your EV3 Device Speaking
Use Voice for your User Interface
Combine Text to Speech with existing Sound Files
Motor
Properties of Class Motor
busy
motor_type
port
position
delta_time
speed
ramp_up and ramp_down
ramp_up_time and ramp_down_time
Precise and Smooth Motor Movements
move_to
move_by
start_move_to
start_move_by
Timed and Smooth Motor Movements
move_for
start_move_for
Unlimited Motor Movements
Two Wheel Vehicle
Calibration
Determine the wheel’s radius
Determine the wheel’s tread
Precise Driving
Define a Parcours
Sensor controlled Driving
Plotting the Energy Consumption
Tracking the vehicle’s Position and Orientation
Print Current Position
Visualize the Movement
Regulated Movements
File System
Method list_dir
Method create_dir
Method del_dir
Method read_file
Method write_file
Method copy_file
Method del_file
PID Controller
Background
Close but not too Close
Keep the Distance
Follow Me
Read the Docs
v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.