Coding, Applied Control and Mechatronics Wi-Fi Code QR Code - - PowerPoint PPT Presentation

coding applied control
SMART_READER_LITE
LIVE PREVIEW

Coding, Applied Control and Mechatronics Wi-Fi Code QR Code - - PowerPoint PPT Presentation

Problem solving through Coding, Applied Control and Mechatronics Wi-Fi Code QR Code Scanner Accessing supports to date Webinar CPD Workshops To keep up-to-date: Join our mailing List This evening we will Appreciate how


slide-1
SLIDE 1

Wi-Fi Code QR Code Scanner

Problem solving through Coding, Applied Control and Mechatronics

slide-2
SLIDE 2

Accessing supports to date

  • Webinar
  • CPD Workshops
  • To keep up-to-date:

Join our mailing List

slide-3
SLIDE 3

This evening we will…

  • Appreciate how emerging technology can support student learning
  • Consider an approach taken to problem solving coding tasks
  • Code a micro:bit to perform simple tasks using inputs and outputs
slide-4
SLIDE 4

Problem solving Creative thinking Curiosity Voice and ownership Engage with existing and emerging technologies Safe failure environment

How can we develop problem solving and creative thinking through Control Technology?

Systematic approach

How confident am I in using control technology for this purpose?

slide-5
SLIDE 5

Learning outcomes that are particularly relevant in this elective

3.2, 3.6, 3.8 2.1, 2.4, 2.8

Oth ther r lear learning out

  • utcomes may also

also be be su support rted

slide-6
SLIDE 6

Controlled system definition: A controlled system is where components are used to modify the behaviour of a system so it behaves in a specific way

(Applied Technology- Assessment Guidelines, page 9)

What is Control Technology?

slide-7
SLIDE 7

What is Control Technology?

(Engineering Specification- appendix D, page 27)

slide-8
SLIDE 8

Using Control Technology to solve problems

Easy build PCB kits Microcontroller board Simple circuit

slide-9
SLIDE 9

Explore the use of an emerging technology

Micro:bit microcontroller board

What is it?

  • Stimulus to drive learning
  • It is a pocket-sized computer
  • Pre-populated and pre-soldered
  • Multiple inputs/outputs
  • Options for break-out boards and

additional soldering

  • Free coding software
  • Many students will have prior knowledge

2

slide-10
SLIDE 10

Learning experiences through coding

Creativity and Innovation Cross-curricular links Student ownership Enjoyable Problem Solving Safe failure environment

slide-11
SLIDE 11

Exploring the micro:bit

2

slide-12
SLIDE 12

Using Breakout boards with a micro:bit

Why?

  • Ability to do more using a micro:bit

(access to all processing pins for additional functionality)

  • Limited power supply for output components

attached directly to a micro:bit.

  • Micro:bit can be reused in different breakout boards

Applied Technology 2019/2020 CPD Code Challenge: Open and close a barrier using a servo motor

slide-13
SLIDE 13

Micro:bit edge connector breakout board

  • 21 pins available from the edge of the micro:bit
  • External inputs/outputs can be soldered or

connected using jumper wires.

  • Additional expansion boards can be attached
  • Relatively low cost

https://youtu.be/bzm4zepbGAc

3

slide-14
SLIDE 14

Two Channel Motor Driver Board L9110S

  • Low cost motor driver board
  • 2.5V to 12V DC supply
  • drive either two DC motors or one 4 wire

2 phase stepper motor

  • Motors controlled using program code
  • Relatively low cost

https://youtu.be/atKICzzdzkA

3

slide-15
SLIDE 15

Edge connector pin description

4

slide-16
SLIDE 16

Using a Two Channel Motor Driver Board L9110S with a micro:bit

slide-17
SLIDE 17

Connecting the motor driver board to the edge connector board (one solution)

To pins for motor B (optional) To/from DC Motor + +V 0V To/from DC Motor +

micro:bit 5

slide-18
SLIDE 18

Pair Task:

  • Slot the micro:bit into the edge connector board
  • Connect the motor driver board to the edge connector board
  • Connect the micro:bit to your laptop

Let’s code - https://makecode.microbit.org/#

Coding with micro:bit

slide-19
SLIDE 19

Adding Extensions

6

slide-20
SLIDE 20

Adding Extensions

6

slide-21
SLIDE 21

Adding Extensions

6

slide-22
SLIDE 22

Introduction activity: Use pins to turn an LED on/off

Coding with Micro:bit

7

High output = 1 Low output = 0

slide-23
SLIDE 23

Transferring your HEX file to your micro:bit

Copy file from your download folder Paste file into micro:bit drive.

8

slide-24
SLIDE 24

Planning for coding skills development

8

Download your code to bring your solution to life

  • 4. Apply

Creative thinking? Problem Solving? Understand the problem/challenge- what information is needed to solve it?

  • 1. Plan

Using code blocks, create the sequence to solve the problem

  • 2. Code

Determine if the solution is effective. Can it be better? If so, how?

  • 3. Test
slide-25
SLIDE 25

A context for code challenges

‘More than 1 billion animals estimated dead in Australia wildfires’

(ABC News, Jan 2020)

9

slide-26
SLIDE 26

Coding Challenge 1:

10

A student has decided to make a model on an circulating fan to comfort people during extreme heat conditions. Design code to turn

  • n the fan (motor) for five seconds and then turn off the fan.

A planning process

slide-27
SLIDE 27

10

Coding Challenge 1:

Download your code to bring your solution to life

  • 4. Apply

Understand the problem/challenge- what information is needed to solve it?

  • 1. Plan

Using code blocks, create the sequence to solve the problem

  • 2. Code

Determine if the solution is effective. Can it be better? If so, how?

  • 3. Test

A student has decided to make a model on an circulating fan to comfort people during extreme heat conditions . Design code to turn on the fan (motor) for five seconds and then turn off the fan.

slide-28
SLIDE 28

10 Possible solution to the task.

Did you consider an alternative solution?

Coding Challenge 1:

A student has decided to make a model on an circulating fan to comfort people during extreme heat conditions . Design code to turn on the fan (motor) for five seconds and then turn off the fan.

slide-29
SLIDE 29

Pause and Reflect

How effective was this planning process in facilitating creative thinking and problem solving? How might this process support students?

10

A planning process

slide-30
SLIDE 30

11

An enclosure is to be used to care for wild animals affected by the

  • wildfires. Design code to open and close the enclosure door using

the motor with display LEDs.

Coding Challenge 2:

Download your code to bring your solution to life

  • 4. Apply

Understand the problem/challenge- what information is needed to solve it?

  • 1. Plan

Using code blocks, create the sequence to solve the problem

  • 2. Code

Determine if the solution is effective. Can it be better? If so, how?

  • 3. Test
slide-31
SLIDE 31

11

An enclosure is to be used to care for wild animals affected by the

  • wildfires. Design code to open and close the enclosure door using

the motor with display LEDs.

Coding Challenge 2:

Possible solution to the task.

Did you consider an alternative solution?

slide-32
SLIDE 32

Pause and Reflect

Future extension challenge: Limit switches are to be incorporated to stop the motor (door) when it is open and closed. What code solution would you propose?

11

slide-33
SLIDE 33

12

Introduction activity: Reading and digitally displaying the analogue value of a sensor.

Calibrating a sensor:

Digital value 0 = total darkness Digital value 1023 = total brightness Why is it important to know this value?

slide-34
SLIDE 34

12

Introduction activity: Using a light sensor to activate an output.

Using a sensor with a breakout board:

slide-35
SLIDE 35

Why?

  • Encourages creative thinking and problem solving
  • Safe failure experience for students

How?

  • Offering a high level of control
  • Continuous rotation or limited range- e.g., 180
  • Servo speed/angle can be changed through code modification

+ -

Signal

Using a servo motor

13

slide-36
SLIDE 36

Servos- Angular and Continuous

13

Angular Servo: Set range, e.g. 0 to 180 Continuous Servo: variable speed in both directions

slide-37
SLIDE 37

All-in-one Robotics Board

  • It can drive 4 motors (or 2 stepper motors) and 8 servos.
  • All the usable pins of the micro:bit are broken out to a

2.54mm link header.

  • The 17 available I/O pins allow other input devices,

such as sensors, or output devices, such as ZIP LEDs, to be added to the board.

  • Power is provided via either a terminal block or

servo-style connector

https://youtu.be/EVowN8RN8nU

14

slide-38
SLIDE 38

Using an all-in-one robotics board with a micro:bit

slide-39
SLIDE 39

Coding Challenge 3:

Group Task: In the context of the Australian wildfires, design a code solution that maximises the potential use of the robotics board.

Consider:

  • Your focus; e.g., water distribution system, alert/alarm system?
  • Which inputs and outputs to use?

14

slide-40
SLIDE 40

Ref: Bill Lucas, Teaching Creative Thinking

Discovery Learning Valuing Questions Setting Problems Co-Design Learning Tasks Transferring Knowledge & Skills

Problem based learning

How might this approach benefit students?

Having explored potential learning experiences through micro:bit have we engaged with problem-based learning?

16

slide-41
SLIDE 41

What do students think? 16

Our thanks to… Isabelle from

  • St. Leo’s College, Carlow
slide-42
SLIDE 42

Future Learning in Control Technology – Project realisation, expansion board opportunities

For further support visit: Senior Cycle micro:bit tutorials

slide-43
SLIDE 43

Opportunities for Future Learning

Using a micro:bit (or a similar stimulus) and with a focus on enhancing research skills: Consider where the learning could go next for your students?

15

Microcontroller board

slide-44
SLIDE 44

Next Steps

Back to school

  • What I must do…
  • What I could do…
  • What new strategies could I use in my classroom?

32

slide-45
SLIDE 45

Feedback form

http://jctregistration.ie/Feedback