20
Coding For Disaster Relief

slides and script Coding for Disaster Relief RMIT

Embed Size (px)

Citation preview

Page 1: slides and script Coding for Disaster Relief RMIT

Coding For Disaster Relief

Page 2: slides and script Coding for Disaster Relief RMIT

We would like to acknowledge the Traditional Owners of this country, and the custodianship of their elders

past, present, and future.

Acknowledgement of Country

Page 3: slides and script Coding for Disaster Relief RMIT

EWB works in partnership with communities in Aus and overseas, helping them to access the

knowledge and appropriate engineering solutions that they need to give them more control of their lives.

Engineers Without Borders

Page 4: slides and script Coding for Disaster Relief RMIT

Coding + Engineering

Page 5: slides and script Coding for Disaster Relief RMIT

Coded Devices Around the World

Example: Farming

Page 6: slides and script Coding for Disaster Relief RMIT

Coding Language + Microcomputer + Electronics

Page 7: slides and script Coding for Disaster Relief RMIT

Connect your computer to Raspberry Pi: Gently connect the CAT cable (big silver box on the Pi) Then the microUSB cable for power (small silver plug on Pi) Check that small green, red, and two orange lights illuminate on the Raspberry Pi

Open an internet browser (ideally Google Chrome)

Type 192.168.1.1:8888 in the website address bar and press Enter

Opening our coding page

Page 8: slides and script Coding for Disaster Relief RMIT

The Notebook Homepage

Page 9: slides and script Coding for Disaster Relief RMIT

New Notebook

Page 10: slides and script Coding for Disaster Relief RMIT

Follow the worksheet instructions to learn the fundamentals of most mid to high-level coding languages.

Two things to remember about Python:

It is CaSE SenSItiVE, so copy the worksheet code exactly The code that follows statements & loops (if, while, for, etc) must be indented with the tab key or space bar

Coding Fundamentals

Page 11: slides and script Coding for Disaster Relief RMIT

Cyclone Aftermath

Page 12: slides and script Coding for Disaster Relief RMIT

Rescue Beacon

Page 13: slides and script Coding for Disaster Relief RMIT

Beacon Wiring: The Circuit

RESISTOR: gets rid of some power

LED Light: our beacon

WIRE

WIREPower

No Power

Page 14: slides and script Coding for Disaster Relief RMIT

6th pin (5 volts

= POWER)

This way round:

Beacon Wiring: Step 1 - Power

Page 15: slides and script Coding for Disaster Relief RMIT

Power

Longer leg connected on POWER side (because it’s the positive leg)

Beacon Wiring: Step 2 - Resistor + LED

Page 16: slides and script Coding for Disaster Relief RMIT

Power

3rd pin (0 volts

= NO POWER/’GROUND’)

Beacon Wiring: Step 3 - Ground Wire

Now use the code in the worksheet to get it flashin’

Page 17: slides and script Coding for Disaster Relief RMIT

Radio Message

Now use the code in the worksheet to transmit your

typed message

Page 18: slides and script Coding for Disaster Relief RMIT

Debrief Discussion

Page 19: slides and script Coding for Disaster Relief RMIT

Free learn-to-code websites:

Code Academy: http://www.codecademy.com/#!/exercises/0

Scratch: http://scratch.mit.edu/

Code Avengers: http://www.codeavengers.com/

Hackety Hack: http://hackety.com/

Continue the Journey

Page 20: slides and script Coding for Disaster Relief RMIT

Continue the Journey

The Raspberry Pi was designed for students and people who love doing electronics projects at home. They cost around $50 and can be bought online from within Aus.

The breadboard and other cables and electronics can all be bought online or from an electronics store like Jaycar.

Example Raspberry Pi project: 3D LED cube…