-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
68,345 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+139 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L13/Design template.pub
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+54.4 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L13/IPO worksheet.docx
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+57.8 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L13/Lesson_plan_13.docx
Binary file not shown.
Binary file added
BIN
+139 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L14/Design template.pub
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+54.4 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L14/IPO worksheet.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+57.9 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L15/Lesson_plan_15.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions
20
Autonomous Systems (13 to 24)/IoT and Robotics_L16/Lesson 16 LightFollower.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from microbit import * | ||
|
||
leftA = pin0 | ||
leftB = pin8 | ||
rightA = pin1 | ||
rightB = pin12 | ||
lightSensor = pin2 | ||
lightSelect = pin16 | ||
|
||
while True: | ||
lightSelect.write_digital(0) # select left sensor | ||
rval = lightSensor.read_analog() | ||
leftA.write_analog(rval) | ||
leftB.write_digital(0) | ||
sleep(1) | ||
lightSelect.write_digital(1) # select right sensor | ||
rval = lightSensor.read_analog() | ||
rightA.write_analog(rval) | ||
rightB.write_digital(0) | ||
sleep(1) |
58 changes: 58 additions & 0 deletions
58
Autonomous Systems (13 to 24)/IoT and Robotics_L16/Lesson 16 PWM_Python.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Add your Python code here. E.g. | ||
from microbit import * | ||
|
||
leftA = pin0 | ||
leftB = pin8 | ||
rightA = pin1 | ||
rightB = pin12 | ||
|
||
def forward (speedpct): | ||
speed = speedpct * 10.23 | ||
leftA.write_analog(speed) | ||
leftB.write_digital(0) | ||
rightA.write_analog(speed) | ||
rightB.write_digital(0) | ||
|
||
def reverse (speedpct): | ||
speed = speedpct * 10.23 | ||
leftA.write_analog(1023-speed) | ||
leftB.write_digital(1) | ||
rightA.write_analog(1023-speed) | ||
rightB.write_digital(1) | ||
|
||
def spinLeft (speedpct): | ||
speed = speedpct * 10.23 | ||
leftA.write_analog(1023-speed) | ||
leftB.write_digital(1) | ||
rightA.write_analog(speed) | ||
rightB.write_digital(0) | ||
|
||
def spinRight (speedpct): | ||
speed = speedpct * 10.23 | ||
leftA.write_analog(speed) | ||
leftB.write_digital(0) | ||
rightA.write_analog(1023-speed) | ||
rightB.write_digital(1) | ||
|
||
def stop(): | ||
leftA.write_analog(0) | ||
leftB.write_digital(0) | ||
rightA.write_analog(0) | ||
rightB.write_digital(0) | ||
|
||
while True: | ||
display.show(Image.ARROW_N) | ||
forward(50) | ||
sleep(3000) | ||
display.show(Image.ARROW_E) | ||
spinRight(50) | ||
sleep(3000) | ||
display.show(Image.ARROW_S) | ||
reverse(50) | ||
sleep(3000) | ||
display.show(Image.ARROW_W) | ||
spinLeft(50) | ||
sleep(3000) | ||
display.show(Image.HAPPY) | ||
stop() | ||
sleep(3000) |
24 changes: 24 additions & 0 deletions
24
Autonomous Systems (13 to 24)/IoT and Robotics_L16/Lesson 16 Pixels_Python.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from microbit import * | ||
import neopixel | ||
from random import randint | ||
|
||
np = neopixel.NeoPixel(pin13, 12) | ||
bright = 40 | ||
|
||
while True: | ||
for pixel_id in range(0, len(np)): | ||
np[pixel_id] = (bright,0,0) | ||
np.show() | ||
sleep(1000) | ||
for pixel_id in range(0, len(np)): | ||
np[pixel_id] = (0,bright,0) | ||
np.show() | ||
sleep(1000) | ||
for pixel_id in range(0, len(np)): | ||
np[pixel_id] = (0,0,bright) | ||
np.show() | ||
sleep(1000) | ||
for pixel_id in range(0, len(np)): | ||
np[pixel_id] = (bright,bright,bright) | ||
np.show() | ||
sleep(1000) |
Binary file added
BIN
+58.3 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L16/Lesson_plan_16.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+175 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L17/Lesson 17 Helicopter 2.pdf
Binary file not shown.
Binary file added
BIN
+61.8 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L17/Lesson 17 helicopter.pdf
Binary file not shown.
Binary file added
BIN
+976 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L17/Lesson 17 te-activity-clever-copters.pdf
Binary file not shown.
Binary file added
BIN
+57.9 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L17/Lesson_plan_17.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+57.8 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L18/Lesson_plan_18.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+57.7 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L19/Lesson_plan_19.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+58.3 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L20/Lesson_plan_20.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+58.1 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L21/Lesson_plan_21.docx
Binary file not shown.
Binary file added
BIN
+2.48 MB
Autonomous Systems (13 to 24)/IoT and Robotics_L22-23/G6-L22-23 AI-ML.pptx
Binary file not shown.
Binary file added
BIN
+61.9 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L22-23/L22-23 Activity.docx
Binary file not shown.
Binary file added
BIN
+58.6 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L22-23/Lesson_plan_22-23.docx
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+36.2 KB
Autonomous Systems (13 to 24)/IoT and Robotics_L24/Lesson 24 Evaluation worksheet.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.