SILO 6.2 (DRAFT)

Year 6, Term 2: Robotics

Focus: Robotics Scope and sequence: Machine learning

Learning intention: Students use coding and electric sensors to interact with electronic devices.

NSW Syllabus
Australian Curriculum (version 9.0)
"A student explains how digital systems represent data, connect together to form networks and transmit data." (ST3-11DI-T)
"Students learn to explain how electrical energy can be transformed into movement, sound or light in a product or system." (AC9TDE6K02)


Introduction to robotics

This unit extends the application of block-based coding through the use of sensors to explore robotics and artificial intelligence. The following video (2:57) explains four components which are common to all robots, namely:

  1. Mechanical parts
  2. Sensors
  3. Power supply
  4. Controller


Acceleration and accelerometers

This video (5:48) explains acceleration and accelerometers using examples from smartphones. An activity towards the end shows how this technology can be applied to making a digital dice using a micro:bit.


 

Light detection

A micro:bit can be used to measure light as shown in this video (5:17).



Using LEDs


 

Potentiometers

Note: This is an extension of an activity which was first introduced in SILO 4.3 'Sensors'.

By using the following code, the simulator will display the resistance on a scale of 0 to 1023 if you drag your cursor along Pin 0 on the bottom left-hand side.


Connect a pot to your micro:bit as follows (Image source for diagram https://www.teachwithict.com/potentiometer.html). Note: The photo shows a pot which is designed to be mounted onto a Printed Circuit Board (PCB) so there are three pins rather than rounded lugs but you can't see this through the black tape. The alligator clips had less metal to attach to so the wires have been soldered on to make it easier to use in a classroom. The wires also happened to be different colours to those in the diagram.



Diving the output number by 102 creates a scale of 0 to 10. (1023 divided by 10 is actually 102.3 and you could use 102.3 if you want to be increase your accuracy.)


Diving by 102 will give you a decimal number most of the time. By adding the 'Round' function to your code you can convert the output number to an integer (i.e., whole number).



Resistance and current are inversely proportional which means that as the resistance decreases the current increases. Accordingly, full volume is achieved when the resistance is lowest.The following interactive simulation is based on Ohm's law which you learned about in SILO 5.4 'Electronics'. Try moving the sliders to see this for yourself.


Based on your new understanding of resistance and current, how can you modify your code so that the current is increased when the resistance is decreased?



In a mockumentary movie about rock music from the 1980s, the guitarist insisted that his amplifier is the loudest because it goes up to 11 rather than 10. Full volume (i.e., lowest resistance) could be called any number, such as 327, but it would not affect the volume. However, as a challenge, see if you can calibrate your code accordingly to go up to 11. Hint: There are two changes which you will need to make.



Connecting two micro:bits together

The following video (8:30) includes extensive technical advice about browsers and firmware so feel free to skip ahead to focus on the pedagogical points about connectivity. In the end you will be able to measure and graph temperature in real time.


The following screenshot shows three ways in which a micro:bit can sense and display temperature.

Here are screenshots of the code from this video as it moves pretty fast.

1. LED screen

2. Stream over USB

3. Stream over radio - Remote

3. Stream over radio - Receiver

Using electric motors as generators to measure airflow

In SILO 5.4 'Electronics' there was an animation made by a student which showed how the components in an electric motor are basically the same as those used in an electrical generator. The screenshot from that animation below shows that an electric motor requires electric current to turn a shaft, but a generator uses mechanical energy to turn the shaft which then transforms the mechanical energy into electrical energy.

The following video (5:13) featuring students from Drummond Memorial School shows how electric motors can be used as generators to measure airflow when connected to a micro:bit.


Rotating shaft challenge

Turning the shaft of an electric motor can convert mechanical energy into electrical energy. This is an example of the motor functioning as a generator. You would need a multimeter to measure the current that a small motor can produce, but you can measure the voltage with a micro:bit.


  • Using items which are readily available in the classroom, create a handle mechanism to help you turn the shaft of an electric motor.

  • Use two wires to connect the terminals on an electric motor to pins 0 and GND on a micro:bit. The code for this is below.


Notes:

Artificial Intelligence (AI)

A key component of both natural and artificial intelligence is the ability to learn. The photo below involves an animal that is learning to adapt to its environment.


Can anyone tell what is happening in the photo below?



This photo show a possum hanging upside down in regional New South Wales, Australia. The possum is demonstrating its intelligence by adapting to the recent installation of security lights. The small white object on the left of the possum is a moth which is attracted to the light. The possum hangs upside down to activate the light which then attracts unsuspecting moths which fly towards the silently waiting possum. Similarly, AI finds structure and regularities in events to acquire and develop skills. A big part of this is machine learning.

Machine learning using the micro:bit

Connecting a micro:bit to a moving person or object can open up some interesting possibilities using machine learning. You could use string and/or tape but there are also commercial options available such as the micro:bit wearable. The following image provides instructions for the micro:bit wearable. 

The following video (6:23) titled Getting started with micro:bit CreateAI shows some examples of how this can be achieved in the classroom. Step by step instructions are available at https://createai.microbit.org/.




Moderated self-assessment

Discussions with students around the key components of conceptual topics and how they fit together can generate insights into student achievement.

Moderated self-assessment rubric

 

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Main menu