Skip to main content

Package for Kamibot

install

pip install pyserial==3.5

check version

import pyKamibot as kamibot

# check version
print(kamibot.__version__)

exmaple

  1. LED
from pyKamibot import Kamibot

kamibot = Kamibot('COM3', 57600)

# LED (r, g, b)
kamibot.turn_led(200, 0, 0)

# ---------------------------------------------------
# Move on mapboard
# ---------------------------------------------------
for i in range(0, 100):
    kamibot.turn_led(200, 0, 0)
    kamibot.delay(1)
    kamibot.turn_led(0, 200, 0)
    kamibot.delay(1)
  1. Mapboard
kamibot.move_forward(1)

while True:
    kamibot.move_forward(1)
    kamibot.turn_left()
  • turn_right()
  • turn_back()
  1. Control Mode
  • go_forward_with_speed(right=100, left=100)
kamibot.go_forward_with_speed(right=0, left=100)
kamibot.delay(1)
kamibot.stop()
  • go_backward_with_speed(right=0, left=100)
kamibot.go_backward_with_speed(right=100, left=100)
kamibot.delay(1)
kamibot.stop()
  • go_with_speed(right=100, left=100, r_dir=0, l_dir=0) 0 : forward, 1: backward, 2: stop
kamibot.go_with_speed(right=100, left=100, r_dir=0x00, l_dir=0x00)
kamibot.delay(1)
kamibot.stop()
  • set_server_motor(pos=90) pos : degree
for i in range(0, 10):
    kamibot.set_server_motor(0)
    kamibot.delay(1)
    kamibot.set_server_motor(90)
    kamibot.delay(1)
  • ultrasonic() unit is cm
while True:
    val = kamibot.ultrasonic()
    print('distance :', val)
    kamibot.delay(1)

  • ir()
while True:
    val = kamibot.ir()
    print('ir :', val)
    kamibot.delay(1)

Contact

Part of the MoyaLab project - http://moyalab.com Copyright (C) 2019 Moyalab (immoyalab@gmail.com)

Metadata

Release files for pyKamibot 0.15

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

Built distribution (wheel)

Table of built distributions (wheels) for pyKamibot 0.15
File Interpreter ABI Platform
pyKamibot-0.15-py3-none-any.whl Python 3 none any Details

Release files / pyKamibot-0.15-py3-none-any.whl

Download URL pyKamibot-0.15-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6da111f2961657b7197b24d2c0c5c0cb303104bbccfe1bc14e8c9b827dd8c2d9
BLAKE2b-256 checksum
How to use checksums
5ceac03aaa9d6224ad17c7c04565fde4d5aafba22a03998bbac4334ac2372e4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

Security for pyKamibot 0.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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