SlideShare a Scribd company logo
1 of 12
KS3 Computing (Physical Computing)
Created by: Dr Anwar Bashir
This introductory lesson is set to get learners
acquainted with the micro:pi. They will explore some
of its components so that they develop an awareness
of its capabilities. They will also execute their first
Python programs.
Learning Outcomes.
1. You will connect to the micro:pi remotely and then
run the programs from an integrated development
environment called Mu.
2. You will familiarize yourself with the process of
loading and running Python programs.
3. By checking that the buzzer(1), leds(2), buttons(3)
and oled(4) are all working you will gain an
understanding of how the programs work.
(There will be a short quiz at the end)
Create a WiFi Hotspot
Using Windows 10 on a Laptop or a PC (fitted
with a WiFi dongle), in the search start typing
mobile hotspot and select 'mobile hotspot
settings’.
On the Mobile hotspot page click on 'Edit'
and enter:
Network name: imagineer
Network password: 123456789
(save the settings, and then switch the
hotspot ON)
Power-up
Connect the micro:pi to a USB 5V power
supply and move the switch to the ON
position. After about 25 seconds the laptop
will provide an IP address, and this will be
displayed on the OLED.
Remote
connection
There are several ways to connect,
SSH, VNC or RDP. RDP is available on
Windows, to connect enter the IP
address
Xrdp
The micro:pi responds to RDP with an
authentication request:
username: pi
password: imagineer
(you may be asked to confirm proceeding
without a certificate, just press yes to confirm)
Graphical
Desktop
The connection will open a new window
and display a graphical desktop. Under
programming there are several choices,
select mu.
Running a program
Load the tryBuzzer.py program that is in
the micropi folder, then press Run. The
buzzer will play a tune.
Finally, Load and Run the tryLED.py. In
tryOLED.py change the “Hello World” to
some other value and Run it again.
Python programming
# the micropi library that contains ‘things’. E.g. Buzzer or * to import all
from micropi import Buzzer
# time is a library that contains ‘things’ such as sleep.
from time import sleep
# assign any ‘thing’ available to a variable
buzzer = Buzzer()
# this will make the buzzer start to ‘beep’.
buzzer.start(freq, duty)
# provides a delay in program execution
sleep(delay)
# causes the buzzer to stop ‘beeping’.
buzzer.stop()
Quiz
Click the Quiz button to edit this object
In the next lesson
Well done, in the next lesson you will make
the RGB LED’s sparkle and develop a sound-
to-light system.

More Related Content

Similar to Ks3 computing-l1

Encode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in MotokoEncode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in Motoko
KlaraOrban
 

Similar to Ks3 computing-l1 (20)

Eclipse Kura Shoot a-pi
Eclipse Kura Shoot a-piEclipse Kura Shoot a-pi
Eclipse Kura Shoot a-pi
 
Raspberry with laptop
Raspberry with laptopRaspberry with laptop
Raspberry with laptop
 
maXbox starter30 Web of Things
maXbox starter30 Web of ThingsmaXbox starter30 Web of Things
maXbox starter30 Web of Things
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory Lecture
 
Survey_Paper
Survey_PaperSurvey_Paper
Survey_Paper
 
introduction to Raspberry pi
introduction to Raspberry pi introduction to Raspberry pi
introduction to Raspberry pi
 
Zach Murray CEIS 106 Project
Zach Murray CEIS 106 ProjectZach Murray CEIS 106 Project
Zach Murray CEIS 106 Project
 
Making apps for the Apple TV
Making apps for the Apple TVMaking apps for the Apple TV
Making apps for the Apple TV
 
Bare metal Javascript & GPIO programming in Linux
Bare metal Javascript & GPIO programming in LinuxBare metal Javascript & GPIO programming in Linux
Bare metal Javascript & GPIO programming in Linux
 
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
 
Iot bootcamp abridged - part 2
Iot bootcamp   abridged - part 2Iot bootcamp   abridged - part 2
Iot bootcamp abridged - part 2
 
Encode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in MotokoEncode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in Motoko
 
Introduction of ShinoBOT (Black Hat USA 2013 Arsenal)
Introduction of ShinoBOT (Black Hat USA 2013 Arsenal)Introduction of ShinoBOT (Black Hat USA 2013 Arsenal)
Introduction of ShinoBOT (Black Hat USA 2013 Arsenal)
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
5.Playtime
5.Playtime5.Playtime
5.Playtime
 
pcDuino Presentation at SparkFun
pcDuino Presentation at SparkFunpcDuino Presentation at SparkFun
pcDuino Presentation at SparkFun
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
 
Complete MPICH2 Clustering Manual in Ubuntu
Complete MPICH2 Clustering Manual in UbuntuComplete MPICH2 Clustering Manual in Ubuntu
Complete MPICH2 Clustering Manual in Ubuntu
 
Fast Scalable Easy Machine Learning with OpenPOWER, GPUs and Docker
Fast Scalable Easy Machine Learning with OpenPOWER, GPUs and DockerFast Scalable Easy Machine Learning with OpenPOWER, GPUs and Docker
Fast Scalable Easy Machine Learning with OpenPOWER, GPUs and Docker
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 

Ks3 computing-l1

  • 1. KS3 Computing (Physical Computing) Created by: Dr Anwar Bashir This introductory lesson is set to get learners acquainted with the micro:pi. They will explore some of its components so that they develop an awareness of its capabilities. They will also execute their first Python programs.
  • 2. Learning Outcomes. 1. You will connect to the micro:pi remotely and then run the programs from an integrated development environment called Mu. 2. You will familiarize yourself with the process of loading and running Python programs. 3. By checking that the buzzer(1), leds(2), buttons(3) and oled(4) are all working you will gain an understanding of how the programs work. (There will be a short quiz at the end)
  • 3.
  • 4. Create a WiFi Hotspot Using Windows 10 on a Laptop or a PC (fitted with a WiFi dongle), in the search start typing mobile hotspot and select 'mobile hotspot settings’. On the Mobile hotspot page click on 'Edit' and enter: Network name: imagineer Network password: 123456789 (save the settings, and then switch the hotspot ON)
  • 5. Power-up Connect the micro:pi to a USB 5V power supply and move the switch to the ON position. After about 25 seconds the laptop will provide an IP address, and this will be displayed on the OLED.
  • 6. Remote connection There are several ways to connect, SSH, VNC or RDP. RDP is available on Windows, to connect enter the IP address
  • 7. Xrdp The micro:pi responds to RDP with an authentication request: username: pi password: imagineer (you may be asked to confirm proceeding without a certificate, just press yes to confirm)
  • 8. Graphical Desktop The connection will open a new window and display a graphical desktop. Under programming there are several choices, select mu.
  • 9. Running a program Load the tryBuzzer.py program that is in the micropi folder, then press Run. The buzzer will play a tune. Finally, Load and Run the tryLED.py. In tryOLED.py change the “Hello World” to some other value and Run it again.
  • 10. Python programming # the micropi library that contains ‘things’. E.g. Buzzer or * to import all from micropi import Buzzer # time is a library that contains ‘things’ such as sleep. from time import sleep # assign any ‘thing’ available to a variable buzzer = Buzzer() # this will make the buzzer start to ‘beep’. buzzer.start(freq, duty) # provides a delay in program execution sleep(delay) # causes the buzzer to stop ‘beeping’. buzzer.stop()
  • 11. Quiz Click the Quiz button to edit this object
  • 12. In the next lesson Well done, in the next lesson you will make the RGB LED’s sparkle and develop a sound- to-light system.