The robot will jump because stabilization (use of the IMU to keep the robot upright) is disabled when using Where positive is forward, negative is backward, and 0 is stopped. raw_motor ( left : int, right : int, duration : float ) ¶Ĭontrols the electrical power sent to the left and right motors independently, on a scale from -255 to 255 However, you can control the motors using Motor Power with raw_motor() when When stabilization is off you can’t use set_speed() to set a speed because it requires the control system Gyro: Programs like the Spinning Top where you want to to isolate the Gyroscope readings rather than having Jumping: Set Motor Power to max values and the robot will jump off the ground! ![]() Or even jumping if you set the power very high. The robot will not balance, resulting in possible unstable behaviors like wobbly driving, When set_stabilization(false) and you power the motors, Stabilization is normally on to keep the robot upright using the Inertial Measurement Unit (IMU),Ī combination of readings from the Accelerometer (directional acceleration), Gyroscope (rotation speed),Īnd Encoders (location and distance). Turns the stabilization system on and set_stabilization(false) turns it off. Note: Unlike official API, performance of spin is guaranteed, but may be longer than the specified duration. Use set_speed() prior to spin() to have the robot move in circle or an arc or circle. Spins the robot for a given number of degrees over time, with 360° being a single revolution.įor example, to spin the robot 360° over 1s, use: spin(360, 1). For example, use set_heading(90) to face right. set_heading ( heading : int ) ¶Īssuming you aim the robot with the blue tail light facing you, then 0° is forward, 90° is right,Ģ70° is left, and 180° is backward. Sets the speed to zero to stop the robot, effectively the same as the set_speed(0) command. stop_roll ( heading : Optional = None ) ¶ Per second reported by the motor encoders. You can also read the real-time velocity value in centimeters Which persists until you set a different speed. For example, use set_speed(188) to set the speed to 188 Ollie is almost three times faster than Sphero. Each robot type translates this value differently into a real world speed Sets the speed of the robot from -255 to 255, where positive speed is forward, negative speed is backward,Īnd 0 is stopped. SpheroEduAPI ¶ roll ( heading : int, speed : int, duration : float ) ¶Ĭombines heading(0-360°), speed(-255-255), and duration to make the robot roll with one line of code.įor example, to have the robot roll at 90°, at speed 200 for 2s, use roll(90, 200, 2) set_speed ( speed : int ) ¶ For example, if you set heading = 0°, speed = 60, duration = 3s, the robot would roll forward for 3s at a moderate speed. Sphero robots move with three basic instructions: heading, speed, and duration. You can use sequential movement commands by separating them with line breaks, like the Hello World! program. Movements control the robot’s motors and control system. set_main_led ( Color ( r = 0, g = 0, b = 255 )) droid. find_toy () with SpheroEduAPI ( toy ) as droid : droid. Import time from spherov2 import scanner from spherov2.sphero_edu import SpheroEduAPI from spherov2.types import Color toy = scanner. ![]() SpheroEduAPI.get_vertical_acceleration().To wake from Power Off, plug your Mini in, wait for the LED light to turn on, and then launch the application. Power Off - if you navigated to the setting page of the Sphero Play app and selected "Power Off", your Mini is powered off. To wake, simply launch the Sphero Play application next to your robot. Standby - if you simply closed the app and let Sphero Mini idly sit until the lights turned off, it's in standby mode. Depending on which one of these power modes your Mini is in, you'll have to turn it on differently. Sphero Mini has two different power modes, Power Off and Standby. To use Sphero Mini, you will need to install the Sphero Play app on either your Android or iOS device: A cable is provided in the packaging, simply remove Sphero Mini's shell, locate the small micro USB charging port, and plug Sphero Mini into a power source. ![]() How to charge: Sphero Mini charges via a Micro USB charging cable. Verifying your Child's Sphero Edu AccountĬhanging Text-To-Speech Settings for The "Speak" Block Important RVR/RVR+ Firmware Update - October 2022 Google Sign-In Changes for the macOS and Windows Versions of Sphero Edu (Legacy Issue) Sphero Edu and Location Services for Android and Chromebooks Important RVR Firmware Update - August 31, 2020Ĭhanging support for Android 5, 6, and 7 in February, 2022Ĭhanges to Community Programs in May 2022 Update: Sphero Compatibility with Chrome OS Changing Support for iOS 10 and 11 with Sphero Edu 6.3.0Ĭhanging support for iOS 9 in the Fall of 2020
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |