Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
teamrob authored Nov 22, 2021
1 parent 62ab123 commit 10c2c80
Show file tree
Hide file tree
Showing 94 changed files with 68,345 additions and 0 deletions.
Binary file added Assessments/Autonomous Systems Test 1.docx
Binary file not shown.
Binary file added Assessments/Autonomous Systems Test 2.docx
Binary file not shown.
Binary file added Assessments/Bitbot Test 1.docx
Binary file not shown.
Binary file added Assessments/Bitbot Test 2.docx
Binary file not shown.
Binary file added Assessments/Racecar Test 1.docx
Binary file not shown.
Binary file added Assessments/Racecar Test 2.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.
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)
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)
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 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.
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 added Bitbot (1 to 6)/IoT and Robotics_L1/G6-L1.pptx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Bitbot (1 to 6)/IoT and Robotics_L2/G6-L2.pptx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Bitbot (1 to 6)/IoT and Robotics_L3/G6-L3.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Bitbot (1 to 6)/IoT and Robotics_L4/G6-L4.pptx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Bitbot (1 to 6)/IoT and Robotics_L5/G6-L5.pptx
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 10c2c80

Please sign in to comment.