KidsBlock(Scratch) Tutorial

1. About KidsBlock IDE

1.1. Download and Install the KidsBlock IDE

1.2. Select device

After the KidsBlock is installed,open KidsBlock to click<“Beetlebot”<“Connect”. Then the Beetlebot car is connected. Click “Go to Editor” to return the code editor. will change into. This means the Beetlebot car is connected to the COM port

If the equipment is chosen the and the car is connected, butdoesn’t change into

Just clickto connect the COM port.Click,then click“Connect”,after a while, if the “Connected” page pops up,the com port will be connected.

2. Projects:

Project 01: 6812 RGB

1. Description:

There are 4 RGB LEDs can be widely used in the decoration of buildings, bridges, roads, gardens, courtyards and so on by colors adjustment.

In this experiment, we will demonstrate different lighting effects with them.

2. Component Knowledge

SK6812RGB:

From the schematic diagram, we can see that these four pixel lighting beads are all connected in series. In fact, no matter how many they are, we can use a pin to control a light and let it display any color. The pixel point contains a data latch signal shaping amplifier drive circuit, a high-precision internal oscillator and a 12V high-voltage programmable constant current control part, which effectively ensures the color of the pixel point light is highly consistent.

The data protocol adopts a single-wire zero-code communication method. After the pixel is powered up and reset, the S terminal receives the data transmitted from the controller. The first 24bit data sent is extracted by the first pixel and sent to the data latch of the pixel.

3. Test Code:

The SK6812RGB on the PCB board is controlled by the GPIO 14 of the ESP32 board.

Img

4. Test Result

Upload the code to the ESP32 board(If the upload code is not successful, you can press and hold the Boot button on the ESP32 motherboard after clicking Img , and then release the Boot button when the upload progress percentage appears.

Power up with a USB cable, then 4 RGB LEDs will show different colors

Img

Project 02: Play Music

1. Description:

There is a power amplifier component on the expansion board, which is often used to play music and serve as an external amplifying device for music playback devices.

In this experiment, we use the speaker amplifier component to play music.

2. Knowledge:

Power amplifier modules(equivalent to a passive buzzer) don’t have internal oscillation circuits.

The power amplifier module can chime sounds with different frequency when power it up.

3. Test Code:

The speaker component on the PCB board is controlled by the GPIO 2 of the ESP32 board.

4. Test Result

Upload the code to the ESP32 board(if the code can’t be uploaded, you can click

Power up with a USB cable, then the speaker module on the PCB board will play a song.

Project 03: 8*8 Dot Matrix

1. Description:

Composed of LED emitting tube diodes, the 8*8 LED dot matrix are applied widely to public information display like advertisement screen and bulletin board, by controlling LED to show words, pictures and videos, etc.

2. Knowledge:

There are different types of matrices, including 4×4, 8×8 and 16×16 and etc. It contains 64 LEDs.

The inner structure of 8×8 dot matrix is shown below.

Every LED is installed on the cross point of row line and column line. When the voltage on a row line increases, and the voltage on the column line reduces, the LED on the cross point will light up. 8×8 dot matrix has 16 pins. Put the silk-screened side down and the numbers are 1, 8, 9 and 16 in anticlockwise order as marked below.

The definition inner pins are shown below:

For instance, to light up the LED on row 1 and column 1, you should increase the voltage of pin 9 and reduce the voltage of pin 13.

HT16K33 8X8 Dot Matrix

The HT16K33 is a memory mapping and multi-purpose LED controller driver. The max. Display segment numbers in the device is 128 patterns (16 segments and 8 commons) with a 13*3 (MAX.) matrix key scan circuit. The software configuration features of the HT16K33 makes it suitable for multiple LED applications including LED modules and display subsystems. The HT16K33 is compatible with most microcontrollers and communicates via a two-line bidirectional I2C-bus.

The picture below is the working schematic of HT16K33 chip

We design the drive module of 8*8 dot matrix based on the above principle. We could control the dot matrix by I2C communication and two pins of microcontroller, according to the above diagram.

Specification:

  • Input voltage: 5V

  • Rated input frequency: 400KHZ

  • Input power: 2.5W

  • Input current: 500mA

Introduction for Modulus Tool

The online version of dot matrix modulus tool: http://dotmatrixtool.com/

①Open the link to enter the following page.

②The dot matrix is 8*8 in this project. So set the height to 8, width to 8; as shown below.

③Click Endian to select Big Endian(MSB)

③ Generate hexadecimal data from the pattern

As shown below, the left button of the mouse is for selection while the right is for canceling. Thus you could use them to draw the pattern you want, then click Generate, to yield the hexadecimal data needed.

3. Wiring up:

8*8 Dot matrix display PCB Board
G G
5V 5V
SDA SDA
SCL SCL

4. Test Code:

The 8*8 dot matrix is controlled by GPIO21(SDA)and GPIO22(SCL)of the ESP32 board.

Img

5. Test Result

Upload the code to the ESP32 board(if the code can’t be uploaded, you can click

Power up by a USB cable, the 8*8 dot matrix display will show show patterns.

Project 04: Servo Rotation

1. Description:

There are two servos on the car. We take the servo connected to pin D9 as an example.

The servo is a motor that can rotate very accurately. It has been widely applied to toy cars, remote control helicopters, airplanes, robots and other fields. In this project, we will use the Nano motherboard to control the servo to spin.

2. Knowledge:

Img

Servo motor is a position control rotary actuator. It mainly consists of a housing, a circuit board, a core-less motor, a gear and a position sensor. Its working principle is that the servo receives the signal sent by MCU or receiver and produces a reference signal with a period of 20ms and width of 1.5ms, then compares the acquired DC bias voltage to the voltage of the potentiometer and obtain the voltage difference output.

When the motor speed is constant, the potentiometer is driven to rotate through the cascade reduction gear, which leads that the voltage difference is 0, and the motor stops rotating. Generally, the angle range of servo rotation is 0° –180 °

The rotation angle of servo motor is controlled by regulating the duty cycle of PWM (Pulse-Width Modulation) signal. The standard cycle of PWM signal is 20ms (50Hz). Theoretically, the width is distributed between 1ms-2ms, but in fact, it’s between 0.5ms-2.5ms. The width corresponds the rotation angle from 0° to 180°. But note that for different brand motors, the same signal may have different rotation angles.

In general, servo has three lines in brown, red and orange. The brown wire is grounded, the red one is a positive pole line and the orange one is a signal line.

3. Wire up:

Servo PCB Board
Brown G
Red 5V
Orange S1(GPIO4)

4. Test Code:

The servo for controlling the ultrasonic sensor is controlled by the GPIO4 of the ESP32 board.

Img

5. Test Result:

Upload the code to the ESP32 board(if the code can’t be uploaded, you can click

Power up with a USB cable, open the monitor and set baud rate to 115200. Then the arm of the servo will rotate to 0°, 45°, 90°, 135° and 180°

Project 05: Motor Driving and Speed Control

1. Description:

There are many ways to drive motors. This car uses the most commonly used DRV8833 motor driver chip, which provides a dual-channel bridge electric driver for toys, printers and other motor integration applications.

In this experiment, we use the DRV8833 motor driver chip on the expansion board to drive the two DC motors, and demonstrate the effect of forward, backward, left-turning, and right-turning.

2. Knowledge:

DRV8833 motor driver chip: Dual H-bridge motor driver with current control function, can drive two DC motors, one bipolar stepper motor, solenoid valve or other inductive loads. Each H-bridge includes circuitry to regulate or limit winding current.

An internal shutdown function with a fault output pin is used for over-current and short circuit protection, under-voltage lockout and over-temperature. A low-power sleep mode is also added. Let’s take a look at the schematic diagram of the DRV8833 motor driver chip driving two DC motors:

If you want to get insight to it, you can check the specification of this chip. Just browse it in the “Other_Important_Informations” folder.

Img

3. Specification:

  • Input voltage of logic part: DC 5V

  • Input voltage of driving part : DC 5V

  • Working current of logic part: <30mA

  • Operating current of driving part: <2A

  • Maximum power dissipation: 10W (T=80℃)

  • Motor speed: 5V 200 rpm / min

  • Motor drive form: dual H-bridge drive

  • Control signal input level: high level 2.3V<Vin<5V, low level -0.3V<Vin<1.5V

  • Working temperature: -25~130℃

4. Drive the car to move

From the above diagram, the direction pin of the left motor is GPIO33; the speed pin is GPIO26; GPIO32 is the direction pin of the right motor; and GPIO25 is speed pin.

PWM drives the robot car. The PWM value is in the range of 0-255. The more the PWM value is set, the faster the rotation of the motor.

Function GPIO33 GPIO26(PWM) Left motor GPIO32 GPIO25(PWM)(PWM) Right motor
forward LOW 200 clockwise LOW 200 clockwise
Go back HIGH 50 anticlockwise HIGH 50 anticlockwise
Turn left HIGH 200 anticlockwise LOW 200 clockwise
Turn right LOW 200 clockwise HIGH 200 anticlockwise
Stop LOW 0 stop LOW 0 stop

5. Test Code:

Img

6. Test Result

Upload the code to the ESP32 board(if the code can’t be uploaded, you can click

Place batteries in the car, and turn the power switch to ON end and power up. Then the car moves forward for 2s, backward for 2s, turns left for 2s and right for 2s, stops for 2s.

Project 06: Ultrasonic Sensor

1. Description:

There is an ultrasonic sensor on the car. It is a very affordable distance-measuring sensor.

The ultrasonic sensor sends a high-frequency ultrasonic signal that human hearing can’t hear. When encountering obstacles, these signals will be reflected back immediately. After receiving the returned information, the distance between the sensor and the obstacle will be calculated by judging the time difference between the transmitted signal and the received signal.

It is mainly used for object avoidance and ranging in various robotics projects.

In this experiment, we use an ultrasonic sensor to measure distance and print the data on a serial monitor.

2. Knowledge:

The HC-SR04 ultrasonic sensor uses sonar to determine distance to an object like what bats do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package. It comes complete with ultrasonic transmitter and receiver modules.

The HC-SR04 or the ultrasonic sensor is being used in a wide range of electronics projects for creating obstacle detection and distance measuring application as well as various other applications. Here we have brought the simple method to measure the distance with Arduino and ultrasonic sensor and how to use ultrasonic sensor with Arduino.

Use method and timing chart of ultrasonic module:

\1. Setting the delay time of Trig pin of SR04 to 10μs at least, which can trigger it to detect distance.

\2. After triggering, the module will automatically send eight 40KHz ultrasonic pulses and detect whether there is a signal return. This step will be completed automatically by the module.

\3. If the signal returns, the Echo pin will output a high level, and the duration of the high level is the time from the transmission of the ultrasonic wave to the return.

Time=Echo pulse width, unit: us

Distance(cm)=time/ 58

Distance(inch)=time/ 148

The HC-SR04 ultrasonic sensor has four pins: Vcc, Trig, Echo and GND.

The Vcc pin provides power generating ultrasonic pulses and is connected to Vcc/+5V. The GND pin is grounded/GND. The Trig pin is where the Arduino sends a signal to start the ultrasonic pulse. The Echo pin is where the ultrasonic sensor sends information about the duration of the ultrasonic pulse stroke to the Arduino control board.

3. Wiring Up

Ultrasonic Sensor PCB Board
Vcc 5V
Trig S2(GPIO5)
Echo S1(GPIO18)
Gnd G

4. Test Code:

The pin Trig and Echo of the ultrasonic sensor are controlled by the GPIO5 and GPIO18 of the ESP32 board.

Img

5. Test Result:

Upload the test code to the ESP32 board, power up with a USB cable, open the serial monitor to click and set baud rate to 115200.

When you move an object in front of the ultrasonic sensor, it will detect the distance and the serial monitor will show the distance value.

Project 07: Follow Me

1. Description:

In the above experiments, we have learned about the 8*8 dot matrix, motor drivers and speed regulation, ultrasonic sensors, servos and other hardware. In this experiment, we will combine them to create a follow car with the ultrasonic sensor. The car can follow an object to move through measuring distance.

2. Working Principle:

Img

3. Flow Chart:

4. Test Code

Img

5. Test Result

Upload the code to the ESP32 board(if the code can’t be uploaded, you can click

Place batteries in the car and turn the power switch to ON end and power up. Then the car will follow the obstacle to move.

Project 08: Avoid obstacles

1. Description:

In this project, we will take advantage of the ultrasonic sensor to detect the distance away from the obstacle so as to avoid them

2. Working Principle:

Img

3. Flow Chart:

4. Test Code

Img

5. Test Result:

Upload the test code to the ESP32 board, put batteries in the battery holder, turn the power switch to the ON end and power up. Then the car can automatically dodge obstacles

Project 09: Line Tracking Sensor

1. Description:

There are two IR line tracking sensors on the car. They are actually two pairs of ST188L3 infrared tubes and used to detect black and white lines. In this project, we will make a line tracking car

In this experiment, we use ST188L3 infrared tubes to detect black and white lines, then print the data on the serial monitor.

2. Knowledge:

Infrared line tracking:

The IR line tracking sensor boasts a pair of ST188L3 infrared tubes. ST188L3 tubes has an infrared emitting diode and a receiver tube. When the emitting diode emits an infrared signal then received by the receiving tube after being reflected by the white object. Once the receiving tube receives the signal, the output terminal will output a low level (0); when the infrared emitting diode emits an infrared signal, and the infrared signal is absorbed by the black object, a high level (1) will be output, thus realizing the function of detecting signals through infrared rays.

Warning: Reflective optical sensors (including IR line tracking sensors) shouldn’t be applied under sunlight as there is a lot of invisible light such as infrared and ultraviolet.

Values detected by the line tracking sensor are shown in the table.

The value will be 1 if detecting black or no objects and the value 0 will appear if detecting white objects.

he detected black object or no object represents 1, and the detected white object represents 0.

Left Right Value(Binary )
0 0 00
0 1 01
1 0 10
1 1 11

3. Test Code:

The line tracking sensors of the PCB board are controlled by GPIO17 and GPIO16 of the ESP32 baord.

4. Test Result:

Upload the test code to the ESP32 board, power up with a USB cable, open the serial monitor to click img and set baud rate to 115200.

Put a black thing under the line tracking sensor of the car and move it, you will see different indicators light up, and at the same time you will see the value on the serial monitor.

The sensitivity can be adjusted by rotating the potentiometer. When the indicator light is adjusted to the critical point of on and off state, the sensitivity is the highest.

Project 10: Line Tracking

1. Description:

We’ve introduced the knowledge of motor drivers, speed regulation, and infrared line tracking. In this experiment, the car will perform different actions according to the values transmitted by the infrared tracking.

2. Working Principle:

Left Right Value(Binary ) State
0 0 00 Stop
0 1 01 Turn right
1 0 10 Turn left
1 1 11 Move forward

3. Flow Chart:

4. Test Code:

Img

5. Test Result:

Upload the test code to the ESP32 board, put batteries in the battery holder, turn the power switch to the ON end, power up and put the car on a map we provide. Then it will perform different functions via values sent by line tracking sensors

Project 11: Photosensor

1. Description:

There are two photoresistors on the car. They can vary with the light intensity and send information to the Nano board to control the car.

Photoresistors can determine and conduct the car to move by detecting light.

In this experiment, we will learn the working principle of the photoresistor

2. Knowledge:

Photoresistor:

It mainly uses a photosensitive resistance element whose resistance varies from the light intensity. The signal terminal of the sensor is connected to the analog port of the microcontroller.

When the light is stronger, the analog value at the analog port will increase; on the contrary, when the light intensity is weaker, the analog value of the microcontroller will reduce. In this way, the corresponding analog value can reflect the ambient light intensity.

3. Wire up:

Through the wiring-up diagram, signal pins of two photoresistors are connected to A6 and A7 of the Nano board.

For the following experiment, we use the photoresistor connected to A6 to finish experiments. First, let’s read analog values.

Left photoresistor PCB board
G G
V V
S S(GPIO34)

4. Test Code:

The left photoresistor is controlled by the GPIO34 of the ESP32 board.

5. Test Result:

Upload the test code to the ESP32 board, power up with a USB cable, open the serial monitor to click and set baud to 115200.

When the light intensifies, the analog value will get increased; on the contrary, the analog value will get reduced.

Project 12: Light Following Car

1. Description:

We have learned the working principle of photoresistor, motor and speed regulation. In this experiment, we will use a photoresistor to detect the intensity of light as as to achieve the light following effect.

2. Working Principle:

Img

3. Wiring up:

Left Photoresistor

PCB

Board

Right photoresistor

PCB

Board

G G G G
V V V V
S S(GPIO34) S S(GPIO35)

4. Flow Chart:

5. Test Code:

The left and right photoresistors are controlled by GPIO34 and GPIO35 of the ESP32 board.

Img

6. Test Result:

Upload the test code to the ESP32 board, put batteries in the battery holder, turn the power switch to the ON end and power up. Then the car will follow the light to move.

Project 13: IR Remote Control

1. Description:

Infrared remote controls are everywhere in daily life. It is used to control various home appliances, such as TV, speakers, video recorders and satellite signal receivers.

The remote control is composed of an IR emitter, an IR receiver and a decoding MCU. In this project, we will make a IR remote control car.

In this experiment, we will combine the IR receiver and the IR remote control to read key values and show them on the serial monitor.

2. Knowledge:

IR Remote Control:

It is a device with buttons. When the key is pressed, IR signals will be sent.

Infrared remote control technology is widely used, such as TVs, air conditioners and so on. And it can control air conditioners and TVs

The infrared remote control adopts NEC coding, and the signal period is 110ms.

The remote control is shown below:

Infrared (IR) receiver:

It can receive infrared light and be used to detect the infrared signal emitted by the infrared remote control.

It can demodulate the received infrared light signal and convert it back to binary, and then transmit the information to the microcontroller.

NEC Infrared communication protocol:

NEC Protocol

To my knowledge the protocol I describe here was developed by NEC (Now Renesas). I’ve seen very similar protocol descriptions on the internet, and there the protocol is called Japanese Format.

I do admit that I don’t know exactly who developed it. What I do know is that it was used in my late VCR produced by Sanyo and was marketed under the name of Fisher. NEC manufactured the remote control IC.

This description was taken from my VCR’s service manual. Those were the days, when service manuals were filled with useful information!

Features

  • 8 bit address and 8 bit command length.

  • Extended mode available, doubling the address size.

  • Address and command are transmitted twice for reliability.

  • Pulse distance modulation.

  • Carrier frequency of 38kHz.

  • Bit time of 1.125ms or 2.25ms.

Modulation

The NEC protocol uses pulse distance encoding of the bits. Each pulse is a 560µs long 38kHz carrier burst (about 21 cycles). A logical “1” takes 2.25ms to transmit, while a logical “0” is only half of that, being 1.125ms. The recommended carrier duty-cycle is 1/4 or 1/3

Protocol

The picture above shows a typical pulse train of the NEC protocol. With this protocol the LSB is transmitted first. In this case Address \(59 and Command \)16 is transmitted. A message is started by a 9ms AGC burst, which was used to set the gain of the earlier IR receivers. This AGC burst is then followed by a 4.5ms space, which is then followed by the Address and Command. Address and Command are transmitted twice. The second time all bits are inverted and can be used for verification of the received message. The total transmission time is constant because every bit is repeated with its inverted length. If you’re not interested in this reliability you can ignore the inverted values, or you can expand the Address and Command to 16 bits each!

Keep in mind that one extra 560µs burst has to follow at the end of the message in order to be able to determine the value of the last bit.

A command is transmitted only once, even when the key on the remote control remains pressed. Every 110ms a repeat code is transmitted for as long as the key remains down. This repeat code is simply a 9ms AGC pulse followed by a 2.25ms space and a 560µs burst.

Extended NEC protocol

The NEC protocol is so widely used that soon all possible addresses were used up. By sacrificing the address redundancy the address range was extended from 256 possible values to approximately 65000 different values. This way the address range was extended from 8 bits to 16 bits without changing any other property of the protocol.

By extending the address range this way the total message time is no longer constant. It now depends on the total number of 1’s and 0’s in the message. If you want to keep the total message time constant you’ll have to make sure the number 1’s in the address field is 8 (it automatically means that the number of 0’s is also 8). This will reduce the maximum number of different addresses to just about 13000.

The command redundancy is still preserved. Therefore each address can still handle 256 different commands.

Keep in mind that 256 address values of the extended protocol are invalid because they are in fact normal NEC protocol addresses. Whenever the low byte is the exact inverse of the high byte it is not a valid extended address.

3. Test Code:

The IR receiver on the PCB board is controlled by GPIO19 of the ESP32 board.

Img

4. Test Result:

Upload the test code to the ESP32 board, power up with a USB cable, open the serial monitor to click and set to 115200.

Press a key on the IR remote control, you will view a code on the serial monitor. If FFFFFFFF shows up, just ignore it.

Code of each key

Project 14: IR Remote Control Car

1. Description:

In the above experiment, we have learned about the knowledge of the 8*8 dot matrix display, the motor driver and speed regulation, the infrared receiver and the infrared remote control. In this experiment, we will use the infrared remote control and the infrared receiver to control the car.

2. Working Principle:

Keys

Keys Code

Functions

img

FF629D

Go forward
Display “forward” pattern

img

FFA857

Go back
Display “back” pattern

img

FF22DD

Turn left
Show “left” pattern

img

FFC23D

Turn right
Show “right turning” pattern

img

FF02FD

stop
show “stop” pattern

3. Flow Chart:

44. Test Code:

Img

5. Test Result:

Upload the test code to the ESP32 motherboard, install batteries, turn the power switch to the ON end, power up and press a key of the IR remote control. Then the car will make the corresponding movement.

Project 15: Read APP Button String

1. Description:

In the previous experiments, we have learned about the three modes of ESP32: WIFI Station mode, WIFI AP mode and WIFI AP+Station mode. Then in this chapter, we will use the WIFI Station mode of ESP32 to control a multi-function car via app

In this experiment, we first use the WIFI Station mode of ESP32 to read the characters via app.

2. Components

image-20230505170459495

image-20230505170504241image-20230505170507293

USB cable x1

ESP32*1

Cellphone/iPad*1

3. Install APP

Android system:

Img

Transfer the file Beetlebot.apk to your cellphone or IPAD, click it to install, and click“ALLOW”→“INSTALL”→“OPEN”.

IOS system

Open App Store

Search Beetlebot,click“”to download Beetlebot.

The installation instructions are similar with Android system.

4. Test Code:

⚠️ATTENTION: Before uploading code, please replace the WiFi name(REPLACE_WITH_YOUR_SSID) in the code and the passwords(REPLACE_WITH_YOUR_PASSWORD) into yours.

Img

5. Test Result

Upload the code to the ESP32 board(if the code can’t be uploaded, you can click

Place batteries in the car, turn the power switch to ON end and power up.

Open the serial monitor and set baud rate to 115200; then the monitor will print detected WiFi IP address, open app to enter the detected Wifi IP address in the text box, as shown below;

For example, the following IP address is 192.168.1.137. Then click button img to connect wifi.

If the IP address 192.168.1.137 is shown in the test box, which means wifi is connected with app.

Click each key on app, then the monitor will receive corresponding characters

If the monitor doesn’t display anything, press reset button to reboot

Project 16: WiFi Control 8*8 Dot Matrix Display

1. Description:

In this experiment, we will use the WIFI Station mode to control the 8*8 dot matrix display on the car through APP and WIFI.

2. Install APP

⚠️Special note: If you have downloaded and installed the APP, this step is skipped; If not, please refer to the installation instructions of link: Project 15:Read WiFi APP Button String .

3. Test Code:

⚠️ATTENTION: Before uploading code, please replace the WiFi name(REPLACE_WITH_YOUR_SSID) in the code and the passwords(REPLACE_WITH_YOUR_PASSWORD) into yours.

Img

4. Test Result

Upload the code to the ESP32 board(if the code can’t be uploaded, you can click

Place batteries in the car, turn the power switch to ON end and power up.

Open app, click , then the 8*8 display will show the forward pattern; click , the display will show the stop pattern; click to show the backward pattern

If the monitor doesn’t display anything, press reset button to reboot

Project 17: WiFi Control Multi-purpose Car

1. Description

In this project we will demonstrate how to control the car with app

2. Install APP

⚠️Special note: If you have downloaded and installed the APP, this step is skipped; If not, please refer to the installation instructions of link: Project 15:Read WiFi APP Button String .

3. Test Code

⚠️ATTENTION: Before uploading code, please replace the WiFi name(REPLACE_WITH_YOUR_SSID) in the code and the passwords(REPLACE_WITH_YOUR_PASSWORD) into yours.

Img

4. Test Result

Upload the code to the ESP32 board(if the code can’t be uploaded, you can click

Place batteries in the car, turn the power switch to ON end and power up.

Operate the APP according to the figure below to control the WiFi multi-function car

If the monitor doesn’t display anything, press reset button to reboot