1 of 62

Session 1

2 of 62

3 of 62

Today’s Session

13:00 Welcome & Lesson 1: Introduction

An introduction to us, the grove board, microcontrollers and the XOD IDE

14:00 Break

14:20 Lessons 2 & 3: Getting Started & Explore XOD

Get started with using your board. We’ll start with some simple tasks like

flashing an LED, pressing a button and sounding a buzzer

Get to grips with some of the most useful nodes in XOD

15:50 Round-Up

4 of 62

5 of 62

6 of 62

Before we Start

1 Downloaded the XOD Software

www.xod.io

2 Downloaded the No-Code Programming Beginner’s Guide

www.biomaker.org/nocode-programming-for-biology-handbook

3 Installed USB Drivers (if required)

www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers

7 of 62

The Starter Kit

8 of 62

1 LED

2 Buzzer

3 OLED Screen

4 Button

7 Sound Sensor

8 Temperature

and Humidity

Sensor

10 3-Axis

Acceleration

Sensor

6 Light Sensor

9 Air Pressure Sensor

5 Rotary Potentiometer

11 Grove Seeeduino

Microcontroller

9 of 62

The Microcontroller

10 of 62

A0-A6 Analog

D0-D13 Digital

I2C I2C (require address)

11 of 62

12 of 62

The XOD IDE

13 of 62

1 Your Patch

2 Project

Browser:

Buttons

New

Patch

Add

Library

3 Project

Browser:

Project

Patches

4 Project

Browser:

Libraries

5 Inspector

Upload

Upload

And

Debug

7 Upload Buttons

6 Quick Help

14 of 62

Nodes

Pins

Links

15 of 62

Byte

String

Pins

Pulse

Boolean

Number

Port

16 of 62

Break

20min

17 of 62

Testing Your Board

18 of 62

Try it Yourself – 20min

1 Work in small groups (introduce yourselves if necessary)

2 Complete Task 1

3 Step-by-step instructions are in the Guide (p20-25)

4 Ask if you need help

19 of 62

Inputs and Outputs

20 of 62

Try it Yourself – 20min

1 Work through Task 2 in groups

2 Step-by-step instructions are in the Guide (p26-29)

3 Ask if you need help

21 of 62

Congratulations!

You can now programme

an Arduino Board!

22 of 62

Tweak and

Watch Nodes

23 of 62

24 of 62

25 of 62

Flip, Clock and

Count Nodes

26 of 62

27 of 62

28 of 62

Concat, Join and

Format-Number Nodes

29 of 62

30 of 62

31 of 62

Next Week’s Session

13:00 Welcome, Recap & Lesson 4: Building Devices

Learn how to make more complex programmes in XOD using logic nodes,

sequences and loops.

14:00 Break

14:20 Lesson 4 cont. & Lesson 5: Next Steps

Learn how to expand your programming and hardware building capabilities to start

building your own devices, and take a look at some previous projects.

15:55 Round-Up

32 of 62

Thank You

More info:

www.biomaker.org

33 of 62

Session 2

34 of 62

35 of 62

Today’s Session

13:00 Welcome, Recap & Lesson 4: Building Devices

Learn how to make more complex programmes in XOD using logic nodes,

sequences and loops.

14:00 Break

14:20 Lesson 4 cont. & Lesson 5: Next Steps

Learn how to expand your programming and hardware building capabilities to start

building your own devices, and take a look at some previous projects.

15:55 Round-Up

36 of 62

Last Week’s Session

1 The Grove Board (p6-7)

2 The Microcontroller (p8-11)

3 The XOD IDE (p12-15)

4 Turned the LED on using the button (p20-25)

5 Controlled the buzzer using the button and potentiometer (p26-29)

6 Learned about some useful nodes in XOD (p31-45)

Tweak, watch, flip, clock, count, concat, join and format-number

37 of 62

38 of 62

Creating New Nodes

39 of 62

40 of 62

Try it Yourself – 15min

1 Work though Task 6 in groups

2 Step-by-step instructions are in the Guide (p50-54)

3 Ask if you need help

41 of 62

Using Buses

42 of 62

43 of 62

Try it Yourself – 15min

1 Work though Task 7 in groups

2 Step-by-step instructions are in the Guide (p56-59)

3 Ask if you need help

44 of 62

Break

20min

45 of 62

Logic Programmes

46 of 62

47 of 62

Try it Yourself – 15min

1 Work though Task 8 in groups

2 Step-by-step instructions are in the Guide (p60-63)

3 Ask if you need help

48 of 62

Sequences and Loops

49 of 62

50 of 62

Try it Yourself – 15min

1 Work though Task 9 in groups

2 Step-by-step instructions are in the Guide (p64-70)

3 Ask if you need help

51 of 62

Case Studies

52 of 62

Open Source Microbial Bioreactor

Behavioural Chamber to Evaluate Rodent Forelimb Grasping

Camera for Monitoring Plant Pollination Events

eCO-SENSE: Soil Sensors Powered by Plant Photosynthesis

53 of 62

Discussion – 15min

1 Read through the case studies (p80-83)

2 Discuss in groups

3 Which of this devices is most relevant to your research?

4 What extra hardware or programming skills would you

need to create one of these devices?

54 of 62

Expanding

Your Capacity

55 of 62

Expanding Your Capacity

Wires

Shields

Breakout Boards

56 of 62

Plug-and-Play Components

Plug directly into white sockets

on the board

Plug into Open Smart Expansion Shield

(or use JST PH to JST XH cables)

Plug directly (STEMMA 4 pin)

Plug with JST PH to JST SH cable (STEMMA QT 4 pin)

57 of 62

Wired Breakout Boards

Connect using expansion shield or Grove-to-female wires (make sure pin labels match up)

Solder pins to board. Connect using Grove-to-female wires (make sure pin labels match up)

58 of 62

Finding XOD Nodes

Search using ‘reference designator’

e.g. BMP280 (barometer) or SSD1306 (OLED screen)

59 of 62

Arduino IDE

Arduino provides it’s own free IDE software, which uses C++ coding language to programme the board.

www.arduino.cc/en/software

Converting Arduino libraries for use in XOD

bit.ly/arduino-to-xod

Combining XOD and Arduino IDE

XOD menu > Deploy > ‘Show Code for Arduino’

More complex programming

www.arduino.cc/en/Tutorial/HomePage

60 of 62

What would you build?

?

61 of 62

Discussion – 10min

1 What instruments would be useful in your own research?

2 How would you go about building such a device?

3 What additional hardware/programming would you need?

4 Do some research – has something like this already been

done? Can you find the things you need?

Questions? Contact the Biomaker team: coordinator@synbio.cam.ac.uk

62 of 62

Thank You

More info:

www.biomaker.org