Skip to main content

robot_kit

Having fun with the Freenove 4WD Smart Car Kit

Install

SSH to your Raspberry Pi and install the Python module for Python 3.

$ sudo pip3 install robot_kit

Examples

See the Examples directory for all the code, here is the code listing for examples/robot_start.py

from robot_kit.leds import NeoPixelStrip
from robot_kit.wheels import Wheels
from robot_kit.ultrasonic import Ultrasonic
import time

if __name__ == '__main__':
    """Run some of the basic commands for robot_kit"""

    """Test for the NeoPixelStrip class"""
    led_strip = NeoPixelStrip()

    # Turn the LEDs Yellow and then Green
    led_strip.on(128, 128, 0)
    time.sleep(1.0)
    led_strip.on(0, 255, 0)
    time.sleep(1.0)
    led_strip.off()

    # Turn the wheels
    wheels = Wheels()
    wheels.all(0.25)
    time.sleep(1.0)
    wheels.stop()

    # Get the distance from the Ultrasonic sensor
    dis_sensor = Ultrasonic()
    for i in range(50):
        print(dis_sensor.get_distance())
        time.sleep(0.5)

Note: Yon order to run this code you'll need to be sudo as the LED library requires it.

$ sudo python3 robot_start.py

Release files for robot-kit 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robot-kit 0.1.5
File Size Uploaded
robot_kit-0.1.5.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robot-kit 0.1.5
File Interpreter ABI Platform
robot_kit-0.1.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 20.6 kB

Release files / robot_kit-0.1.5.tar.gz

Download URL robot_kit-0.1.5.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0c00668aea2ed2631fa191697964ff99456e1e350d5854ef8951fb33ee9bcbee
BLAKE2b-256 checksum
How to use checksums
5d9f56fd7748aea1db43612bc0476edc0bca74eb4d653962e4f1824ec0d5f641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release files / robot_kit-0.1.5-py2.py3-none-any.whl

Download URL robot_kit-0.1.5-py2.py3-none-any.whl
Size 13.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b8e407389f8f8f03835fa5a581d51bfd7c00860a0547baa77cbb48b2f66765be
BLAKE2b-256 checksum
How to use checksums
14422976e536e932f5dcf80d45d6df504c93c250e87df5fc0514cf1f7875f9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page