SlideShare a Scribd company logo
Izradio: Noa Turk
MICRO:BIT
ŠALABAHTER
1.Na radionicama Code Club-a MS spajate se na WIFI4EU
2.Poveznica za programiranje micro:bita u MakeCode: makecode.microbit.org
3.Poveznica za programiranje micro:bita u digitalnoj učionici: microbit.org/join
4.Poveznica za povezivanje na kahoot kviz: kahoot.it
5.Tijekom prijava unesite svoje ime i prvo slovo prezimena: _________ __
Program koji programiramo u MakeCode slažemo kao puzzle, da bi nam program radio
funkcije nam NE smiju biti sive. Slika prikazuje sučelje MakeCode u kojem programiramo:
pr1.
a) Izradite program kojim će micro:bit prikazati smješka onda kada pritisnete tipkalo A, i plačka kada
pritisnete tipkalo B.
Iz grupe naredbi Input odaberite blok on button A pressed.
Sve naredbe koje se nalaze unutar tog bloka će se izvršavati
tek onda kada pritisnete tipkalo A.
Unutar bloka on button A(ili B) pressed postavite naredbu show leds
b) Nadobradi da se svaki simbol pojavi 4 puta (petlja)i da se simbol pojavljuje svakih 200 milisekundi (0.2 sekunde).
(pauza i clear screen)
Unutar bloka on button A/B pressed stavljamo petlju
repeat __ times iz grupe Loops koja će se ponavljati __ puta
(sve naredbe/funkcije koje stavimo unutar te petlje ponoviti
se 4 puta kad stisnemo gumb.
Brišemo show leds i stavljamo show icon za smajlića/tužnića
Stavljamo blok clear screen kako bi nakon smajlića ekran
bio
prazan.Stavimo blok pause (ms) ___ kako bi imali razmak
između
simbola i čistog ekrana
pr2.a) Izradite program koji će brojati korake.
Unutar bloka on start postavite naredbu show string te u nju upišite Broj koraka.
Napravite varijablu klikom na Make a variable unutar Variables kategorije naredbi.
Otvorit će vam se novi prozor u kojem ćete napisati naziv varijable, u ovom
slučaju Broj
koraka.
Unutar bloka on shake postavite naredbu change __ by 1 te u argument te naredbe
postavite varijablu Brojkoraka.
Broj koraka prikažite naredbom show number te unutar nje postavite varijablu Broj
koraka. Blokom forever ste učinili da se ta varijabla prikazuje cijelo vrijeme na zaslonu.
pr3.a) Izradite novi program koji bude svaki put kada se micro:bit
protrese prikazao broj od 1 do 6.
Kako na kockici postoje brojevi od 1 do 6, u prvo polje naredbe pick
random upišite broj 1, a u drugo upišite broj 6.
b) Izradite novi programkoji bude kada pritisnemo gumb A nasumično prikazao broj od 5 do 40.
c) Izradite novi programkoji bude kada pritisnemo gumb B nasumično 5 puta prikazao broj od 1 do 5.
pr4. a) Izradite novi program koji bude cijelo vrijeme prikazivao temperaturu,nakon prikaza
temperature treba obrisati zaslon i malo usporiti program. /trajanje pauze sami odlučite
pr5. Napravit ćete dva programa. Prvi program je za micro:bit koji šalje poruke (broj 0 ili 1), a drugi
za micro:bit na kojem će biti prikazane slike.
PREBACIVANJE:
1. Da biste prbacili program učinili, kliknite "Preuzmi" na izborniku s lijeve strane zaslona.
Ovo će stvoriti i preuzeti .hex datoteku koja će se pokretati na vašem
micro:bit-u
2. Upotrijebite USB kabel da biste mikro:bit priključili na računalo.
3. Tada biste trebali vidjeti kako se vaš micro: bit u upravitelju datotekama vašeg računala pojavljuje
kao USB.
4. .hex datoteku moramo kopirati ili prebaciti u micro:bit
5. Možete kliknuti strelicu nakon preuzete datoteke i odabrati "Prikaži u mapi", a zatim povući istaknutu
datoteku na micro: bit pogon:
6. Svjetlo (žuto) na stražnjoj strani vašeg micro: bita će treptati dok se datoteka kopira. Kad se ovo
zaustavi, možete kliknuti gumb za resetiranje na stražnjoj strani mikro: bita da biste ponovno
pokrenuli program.

More Related Content

Featured

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

MicroBit šalabahter

  • 1. Izradio: Noa Turk MICRO:BIT ŠALABAHTER 1.Na radionicama Code Club-a MS spajate se na WIFI4EU 2.Poveznica za programiranje micro:bita u MakeCode: makecode.microbit.org 3.Poveznica za programiranje micro:bita u digitalnoj učionici: microbit.org/join 4.Poveznica za povezivanje na kahoot kviz: kahoot.it 5.Tijekom prijava unesite svoje ime i prvo slovo prezimena: _________ __
  • 2. Program koji programiramo u MakeCode slažemo kao puzzle, da bi nam program radio funkcije nam NE smiju biti sive. Slika prikazuje sučelje MakeCode u kojem programiramo: pr1. a) Izradite program kojim će micro:bit prikazati smješka onda kada pritisnete tipkalo A, i plačka kada pritisnete tipkalo B. Iz grupe naredbi Input odaberite blok on button A pressed. Sve naredbe koje se nalaze unutar tog bloka će se izvršavati tek onda kada pritisnete tipkalo A. Unutar bloka on button A(ili B) pressed postavite naredbu show leds b) Nadobradi da se svaki simbol pojavi 4 puta (petlja)i da se simbol pojavljuje svakih 200 milisekundi (0.2 sekunde). (pauza i clear screen)
  • 3. Unutar bloka on button A/B pressed stavljamo petlju repeat __ times iz grupe Loops koja će se ponavljati __ puta (sve naredbe/funkcije koje stavimo unutar te petlje ponoviti se 4 puta kad stisnemo gumb. Brišemo show leds i stavljamo show icon za smajlića/tužnića Stavljamo blok clear screen kako bi nakon smajlića ekran bio prazan.Stavimo blok pause (ms) ___ kako bi imali razmak između simbola i čistog ekrana pr2.a) Izradite program koji će brojati korake. Unutar bloka on start postavite naredbu show string te u nju upišite Broj koraka. Napravite varijablu klikom na Make a variable unutar Variables kategorije naredbi. Otvorit će vam se novi prozor u kojem ćete napisati naziv varijable, u ovom slučaju Broj koraka. Unutar bloka on shake postavite naredbu change __ by 1 te u argument te naredbe postavite varijablu Brojkoraka. Broj koraka prikažite naredbom show number te unutar nje postavite varijablu Broj koraka. Blokom forever ste učinili da se ta varijabla prikazuje cijelo vrijeme na zaslonu. pr3.a) Izradite novi program koji bude svaki put kada se micro:bit protrese prikazao broj od 1 do 6. Kako na kockici postoje brojevi od 1 do 6, u prvo polje naredbe pick random upišite broj 1, a u drugo upišite broj 6. b) Izradite novi programkoji bude kada pritisnemo gumb A nasumično prikazao broj od 5 do 40. c) Izradite novi programkoji bude kada pritisnemo gumb B nasumično 5 puta prikazao broj od 1 do 5. pr4. a) Izradite novi program koji bude cijelo vrijeme prikazivao temperaturu,nakon prikaza temperature treba obrisati zaslon i malo usporiti program. /trajanje pauze sami odlučite pr5. Napravit ćete dva programa. Prvi program je za micro:bit koji šalje poruke (broj 0 ili 1), a drugi za micro:bit na kojem će biti prikazane slike.
  • 4. PREBACIVANJE: 1. Da biste prbacili program učinili, kliknite "Preuzmi" na izborniku s lijeve strane zaslona. Ovo će stvoriti i preuzeti .hex datoteku koja će se pokretati na vašem micro:bit-u 2. Upotrijebite USB kabel da biste mikro:bit priključili na računalo. 3. Tada biste trebali vidjeti kako se vaš micro: bit u upravitelju datotekama vašeg računala pojavljuje kao USB. 4. .hex datoteku moramo kopirati ili prebaciti u micro:bit 5. Možete kliknuti strelicu nakon preuzete datoteke i odabrati "Prikaži u mapi", a zatim povući istaknutu datoteku na micro: bit pogon: 6. Svjetlo (žuto) na stražnjoj strani vašeg micro: bita će treptati dok se datoteka kopira. Kad se ovo zaustavi, možete kliknuti gumb za resetiranje na stražnjoj strani mikro: bita da biste ponovno pokrenuli program.