Upload
olivia-mccombe
View
119
Download
0
Embed Size (px)
Citation preview
Coding For Disaster Relief
We would like to acknowledge the Traditional Owners of this country, and the custodianship of their elders
past, present, and future.
Acknowledgement of Country
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
Coding + Engineering
Coded Devices Around the World
Example: Farming
Coding Language + Microcomputer + Electronics
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
The Notebook Homepage
New Notebook
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
Cyclone Aftermath
Rescue Beacon
Beacon Wiring: The Circuit
RESISTOR: gets rid of some power
LED Light: our beacon
WIRE
WIREPower
No Power
6th pin (5 volts
= POWER)
This way round:
Beacon Wiring: Step 1 - Power
Power
Longer leg connected on POWER side (because it’s the positive leg)
Beacon Wiring: Step 2 - Resistor + LED
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’
Radio Message
Now use the code in the worksheet to transmit your
typed message
Debrief Discussion
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
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…