TRANSCRIPTEnglish

LEGO SPIKE PRIME Out OF Order Delivery Cart Debugging Program

7m 41s1,137 words149 segmentsEnglish

FULL TRANSCRIPT

0:00

hi guys welcome to save our honey so we

0:02

build a delivery card which is out of

0:05

order

0:15

[Music]

0:20

happy Father's Day guys so my dad is

0:24

gonna show you how she all right so what

0:30

do we got here so we got up out of otter

0:33

Kart and you want to fix it so let's

0:36

look at the program all right so let's

0:41

start from the first block so the first

0:44

block says when you press the left

0:47

button on the hub which is this button

0:51

something should happen and let's see

0:53

what is that something the first thing

0:56

the see there is a sensor here either a

1:00

motor or probably a motor which is on

1:02

sensors see the speed for that murder is

1:05

will be set to 100% and the C will go at

1:09

the the motors motor directions or more

1:13

motor movement will change to the zero

1:15

position and then we'll set the movement

1:19

on motors a and E a and E are connectors

1:22

where two motors will be connected and

1:24

then it will basically set the movement

1:27

speed to 50% and then it will start

1:29

moving until it finds a a sensor which

1:34

is which we have connected to the V

1:36

connector on the hub and if a distance

1:40

is closer than zero centimeter which

1:41

technically means that it will it won't

1:43

stop it will keep on moving it will

1:46

never detect the zero centimeter and

1:48

will keep on moving and we won't be able

1:49

to stop it so first thing let's get

1:52

let's hit the initialize the program and

1:55

now we'll hit the left button and see

1:57

what happens alright nothing is

1:59

happening so we're gonna start debugging

2:00

it right now if you see the the section

2:04

here the group of blocks here are

2:07

highlighted in yellow which means that

2:09

the command the left command is picked

2:11

up by the first block here so now let's

2:14

see why the C speed is not set to 100%

2:18

so I'll click on the C here and I see

2:20

that there's nothing connected here on

2:22

the C however I have motors connected on

2:25

B D and F so I should be using one of

2:28

these motors so now we will see which

2:31

one

2:32

is actually the motor that you're gonna

2:34

replace at position C so I want this

2:37

this motor which is going to be our

2:40

directional motor with and that's the

2:43

one I want to first set the position for

2:46

the rotation for so I'll try to track

2:49

this cable and see what connector this

2:52

cable is connected to and in this case

2:56

it's the D so we'll change it from C to

3:00

D which is this guy alright I will

3:08

change the connector from C to D here as

3:14

well we will set the position to zero

3:16

which make sure that the cart will go

3:18

straight the next I'm gonna set the

3:20

positions

3:21

sorry movement on motor a and E which I

3:25

believe is also not accurate so we need

3:28

to select motor F and B so there's two

3:32

motor than F and B DB already selected

3:34

so F and B I'll quickly show this one is

3:37

the left side motor and it's connected

3:40

to the F and this is a right side motor

3:42

and the wire is connected to B so we'll

3:44

select F and B next we'll set the speed

3:49

to 50% I will start moving straight so

3:53

we'll know it straight there you go

3:57

alright and wait until B let's see what

4:00

is B B should be our distance sensor

4:03

which is this guy here and it's

4:06

connected to all the way towards a so

4:10

it's not connected to B it's connect to

4:11

a so we do change it so change it to a

4:14

and then we also need to give them

4:18

distance if you don't give any distance

4:19

it will basically keep on moving so I'll

4:21

say distance of 9 centimeters as soon as

4:24

oops sorry not 99 9 centimeters as soon

4:28

as it sees an object at night sent in 9

4:31

centimeters it should stop moving

4:33

so we'll start see if we debug the

4:37

program and fix the issue so this is my

4:39

stopper as soon as the modern age is 19

4:42

it should stop so let's press the left

4:44

button the left button is the one that's

4:46

going to trigger the the motors so here

4:49

we go one two three all right

4:57

oh all right let's do it one more time

5:04

as soon as this reaches ninths

5:06

centimetres distance it should

5:08

automatically stop all right next we

5:12

gonna fix the block which is responsible

5:15

for movement when we click the right

5:18

button this is this guy all right so

5:20

let's read it it's got a pretty

5:22

straightforward so we already know that

5:24

the motor for the directional motor

5:27

which is the back motor the bigger one

5:28

is on D so I'll move it to D and keep on

5:32

changing these two D as well the set

5:36

movement motors so if I wanna set these

5:39

models I know that en a and E does not

5:41

have any Morris I know F and B have the

5:43

motors from our left button program

5:46

we'll change it start moving straight a

5:49

wait for the sensor that B will check it

5:51

sensor is not at the B at B we got a

5:53

motor sensors on a so select a here

5:56

closer then we'll change it from 0 to 9

5:59

centimeters because we do want the car

6:01

to stop and after that I want it to stop

6:04

moving

6:05

now we set C shortest path C is same as

6:09

D this is our directional motor will set

6:14

it to D and then we are going to look at

6:21

the moment the moment it says this will

6:23

go forward 50 centimeters I will stop

6:26

then we also need to go back to D here

6:29

and it will set the position to zero and

6:32

then I want to make sure that it goes

6:35

back and then goes forward so I want to

6:37

change the direction from backward to

6:39

forward 50 centimeters 50 centimeters is

6:42

a lot of space on our you know

6:45

workstation or what desk here so I want

6:48

to make sure that doesn't fall off or

6:49

works what this so will make it go at

6:52

least 30 centimeters

6:55

so we make sure it won't fall off our

6:57

work table all right

7:00

I'm hoping this is gonna work let's hit

7:03

the start button all right it's

7:07

initialized we'll put our block here so

7:13

that it can detect the stop block I hit

7:16

the right button goes straight stops at

7:19

nine centimeters wait for one second

7:23

goes back and then stops again wait for

7:26

one second and goes forward and stops

7:28

again thank you guys

7:30

[Music]

UNLOCK MORE

Sign up free to access premium features

INTERACTIVE VIEWER

Watch the video with synced subtitles, adjustable overlay, and full playback control.

SIGN UP FREE TO UNLOCK

AI SUMMARY

Get an instant AI-generated summary of the video content, key points, and takeaways.

SIGN UP FREE TO UNLOCK

TRANSLATE

Translate the transcript to 100+ languages with one click. Download in any format.

SIGN UP FREE TO UNLOCK

MIND MAP

Visualize the transcript as an interactive mind map. Understand structure at a glance.

SIGN UP FREE TO UNLOCK

CHAT WITH TRANSCRIPT

Ask questions about the video content. Get answers powered by AI directly from the transcript.

SIGN UP FREE TO UNLOCK

GET MORE FROM YOUR TRANSCRIPTS

Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.