LEGO SPIKE Prime Small Ball Contraption - Part2 Python coding: Learn how to count.
Clickable chapters and Dutch description + free building instructions & programs, see below.
In this second part of my SPIKE Prime SBC robot videos I show you how to count in the Python programming language. We will convert the Scratch code from the part 1 video step by step to Python code using the "Knowledge Base" built into the SPIKE app. Each part of the code is also tested with the Spike SBC robot.
First, we use the basic Scratch code to program a simple working and counting Python robot.
In the second part of the video, we add some more advanced code to make the operation more spectacular and to demonstrate the possibilities of the code and Spike robot.
Free building instructions, programs,... : https://legostudiovives.be/bouwideeen - SPIKE SBC
0:00 Intro: Falling brick building animation
0:12 Overview of the SPIKE SBC robot: New camera angles
0:49 How to build: Quick overview of the downloadable building instructions
1:00 How to start a SPIKE Pyhton program
2:00 How to show an arrow on the led matrix
2:35 How to light up the distance sensor
3:35 First test
3:50 When Distance is less then 8 cm event
4:54 Test distance sensor with print() instruction
5:40 If Distance is less then 8c m then...
5:47 Start motor
6:55 Second test
7:20 If Color = white event
8:47 Add counter
9:20 Play beep
9:58 Write counter value on led matrix
10:42 Test basic counter Python program
11:48 How to duplicate and rename a SPIKE program
12:22 Start programming advanced Python counter program
12:36 Let the distance sensor go out and light up again
12:59 Beep pitch increase with counter value
13:21 Change the status LED colour with counter value and a colour list
14:41 If counter is more than 9...
14:58 Reset counter
15:07 Stop motor and show arrow on LED matrix
15:30 Test advanced counter Python program
16:03 Problem: Ball can be counted multiple times
16:19 How to program a rising edge detection
17:40 Final test advanced counter Python program
18:26 LEGO STUDO VIVES.BE - SPIKE Prime SBC XL teaser
Note: the LEGO SPIKE Prime 45678 set is the educational version of the new LEGO MINDSTORMS Robot Inventor 51515 set.
_________________________________________________________
In dit 2de deel van mijn SPIKE Prime SBC robot video's toon ik hoe je kan tellen in de Python programmeertaal. We vormen de Scratch code van de deel 1 video sta voor stap om naar Python code en maken hiervoor gebruik van de "Knowledge Base" die in de SPIKE app zit ingebouwd. Ook wordt elk deeltje van de code getest met de Spike SBC robot.
Eerst programmeren we met de basis Scratch code een eenvoudige werkende en tellende Python robot.
In het 2de deel van de video voegen we nog wat geavanceerdere code toe om de werking wat spectaculairder te maken en de mogelijkheden van de code en Spike robot te demonstreren.
Видео LEGO SPIKE Prime Small Ball Contraption - Part2 Python coding: Learn how to count. канала Dimitri Dekyvere
In this second part of my SPIKE Prime SBC robot videos I show you how to count in the Python programming language. We will convert the Scratch code from the part 1 video step by step to Python code using the "Knowledge Base" built into the SPIKE app. Each part of the code is also tested with the Spike SBC robot.
First, we use the basic Scratch code to program a simple working and counting Python robot.
In the second part of the video, we add some more advanced code to make the operation more spectacular and to demonstrate the possibilities of the code and Spike robot.
Free building instructions, programs,... : https://legostudiovives.be/bouwideeen - SPIKE SBC
0:00 Intro: Falling brick building animation
0:12 Overview of the SPIKE SBC robot: New camera angles
0:49 How to build: Quick overview of the downloadable building instructions
1:00 How to start a SPIKE Pyhton program
2:00 How to show an arrow on the led matrix
2:35 How to light up the distance sensor
3:35 First test
3:50 When Distance is less then 8 cm event
4:54 Test distance sensor with print() instruction
5:40 If Distance is less then 8c m then...
5:47 Start motor
6:55 Second test
7:20 If Color = white event
8:47 Add counter
9:20 Play beep
9:58 Write counter value on led matrix
10:42 Test basic counter Python program
11:48 How to duplicate and rename a SPIKE program
12:22 Start programming advanced Python counter program
12:36 Let the distance sensor go out and light up again
12:59 Beep pitch increase with counter value
13:21 Change the status LED colour with counter value and a colour list
14:41 If counter is more than 9...
14:58 Reset counter
15:07 Stop motor and show arrow on LED matrix
15:30 Test advanced counter Python program
16:03 Problem: Ball can be counted multiple times
16:19 How to program a rising edge detection
17:40 Final test advanced counter Python program
18:26 LEGO STUDO VIVES.BE - SPIKE Prime SBC XL teaser
Note: the LEGO SPIKE Prime 45678 set is the educational version of the new LEGO MINDSTORMS Robot Inventor 51515 set.
_________________________________________________________
In dit 2de deel van mijn SPIKE Prime SBC robot video's toon ik hoe je kan tellen in de Python programmeertaal. We vormen de Scratch code van de deel 1 video sta voor stap om naar Python code en maken hiervoor gebruik van de "Knowledge Base" die in de SPIKE app zit ingebouwd. Ook wordt elk deeltje van de code getest met de Spike SBC robot.
Eerst programmeren we met de basis Scratch code een eenvoudige werkende en tellende Python robot.
In het 2de deel van de video voegen we nog wat geavanceerdere code toe om de werking wat spectaculairder te maken en de mogelijkheden van de code en Spike robot te demonstreren.
Видео LEGO SPIKE Prime Small Ball Contraption - Part2 Python coding: Learn how to count. канала Dimitri Dekyvere
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
DELTA EV3: a parallel LEGO manipulator robot - zenon challenge 2014 - VIVES AUTOMATION TEAMDidactical automatic assembly line (Design & Engineering)LEGO SPIKE Prime Parking Garage Part1: Basic program - Robotmak3rs SmartCity RemixNXT SegwayDistance controling (PI) LEGO Mindstorms EV3 Educational robotAutomated LEGO Super Mario Piranha Powerslide - Robotmak3rs MarioRemix: WeDo, Control+ & PybricksLEGO HAVEN STUDIO Prototypes (deel 1)EV3 workshop Coderdojo @ K in KortrijkDidactical automatic assembly line (Realisation)LEGO SPIKE Prime Parking Garage Part2: Advanced program with IoT - Robotmak3rs SmartCity RemixSPIKE Prime SwirlBot TeaserNXT Rotabot with OmniwheelsEV3 Segway line folower: a modification of Gyro Boy (Lego Mindstorms Education)LEGO SPIKE SwirlBot remote controlled by Pybricks EV3 Bluetooth JoystickLEGO OneMotorBuild Challenge: basic principleFLL Kortrijk 2013Vives world record: longest LEGO EV3 robot paradeLEGO Spike Prime Sumo-Bot Finals BigBang Wetenschapsbad WevelgemLEGO SPIKE Prime automated RollercoasterLEGO Mindstorms EV3 EduTankBot by Dimia new LEGO robot has landed: Spike Essential