Camp Tenchov
  • About
  • Index
  • Python
  • Ozobot
  • Micro:bit
  • Minecraft

Latest

Obstacle Avoidance

This is a small program that allows Ozobot Evo to avoid obstacles in front of it, using the two front facing proximity sensors. import asyncio import pyozo FORWARD_SPEED = 0.05 TURN_SPEED = 0.03 TURN_DURATION = 200 MOVE_DURATION = 200 PROXIMITY_THRESHOLD = 80 async def main() -> None:

By Kaloyan Tenchov 20 Jul 2025

Chapter 3 - Main Ideas

* Python "operators" help code do things with values and variables: * assignment operator: * a = 5 * message = "hello" * addition operator: * x = 1 + 2 * y = x + 3 * message = "hello" + " world" * subtraction, multiplication, division, and modulus operators: * x = 1 - 2 * x = a * b * x = 16

By Kaloyan Tenchov 14 Jul 2025

Chapter 2 - Main Ideas

* Lines starting with # are called "comments" and Python skips them. * Like blank lines, comments help people understand code easier. * Functions can take "arguments". * Example: player.move_forward(5) * Example: player.collect("water") * Variables can be used to store values. They have different types. * Integer

By Kaloyan Tenchov 08 Jul 2025

Chapter 1 - Main Ideas

* Python programs are written in text. * Python programs execute line-by-line and similar to English from top to bottom and from left to right. * When Python finishes executing the last line of a program, it stops. * Empty lines are ignored. * The program is always executed as a whole. * If an error

By Kaloyan Tenchov 06 Jul 2025
Camp Tenchov
Powered by Ghost