1 of 26

Internet of Things

Control a light over the Internet

Thomas Proffen

thomas@orcsgirls.org

2 of 26

Zoom information

  • No need to check in
  • Please rename yourself in Zoom to show your firstname and lastname initial (e.g. Katie B)
  • Volunteers - please rename yourself and add (Volunteer) to your name.

3 of 26

Rules

  • Treat each other and the volunteers with respect. Unruly behaviour will not be tolerated and you will be disconnected.
  • Please have your microphone muted unless you are speaking.
  • If you have a questions, please ask in the chat first and a volunteer will help.
  • Do not spam the chat.
  • Consider turning on captions.

4 of 26

Introductions

Welcome to our online class.

Today’s instructors and volunteers

Thomas Proffen

Antigoni Georgiadou

Bella Haden

Rinkle Juneja

Tomas Grejtak

Yvonne Dalschen

5 of 26

HAVE YOU ENCOUNTERED IOT?

6 of 26

IOT – SO WHAT IS IT?

7 of 26

LETS TRY IT!

  • Control the color of the light up front through the Internet.
  • Visit www.ocsgirls.org/class and click Control the color Light.

Internet

8 of 26

TODAY’S PROJECT

Web page controlled LED light

Build

Code firmware

Connect to Internet

9 of 26

MEET OUR DEVICE

  • Note the number of your device.
  • Connect LED and resistor.
  • Plug in USB for power.

Breadboard

Columns are connected

Photon

WiFi enabled controller

USB

Resistor

Protects LED from too high current

LED

Light emitting diode. Only works for current flowing in one direction.

10 of 26

FIRMWARE

  • The code running on the photo is called firmware.
  • New firmware is flashed onto the controller.
  • The Photon can be monitored, controlled and flashed over the Internet (if it is connected to Wi-Fi).

Watch

Your turn soon!

11 of 26

Pin the video with the device camera

1

2

6

7

12

13

18

19

24

25

12 of 26

Caution

Click skip for now on this screen!

13 of 26

YOUR TURN

  • Visit www.orcsgirls.org/class
  • Click the link Code the firmware.
  • Your login name is orcsgirlXX@orcsgirls.org where XX is the number on your box / assigned at check-in (e.g. if the number is 02, the login name is orcsgirl02@orcsgirls.org). Password is in the chat.
  • Click Show devices and check for yours
  • Click Show Code and find Blink an LED
  • Change code to make it blink faster
  • Press Check Code
  • If no errors press Flash code
  • You have flashed your first device !!

Flash to device

Check code

Save code

Show code

Show devices

Open console

14 of 26

Code - Blink the LED

15 of 26

HOOK IT UP TO THE CLOUD

Devices need to connect to the cloud that provides the connection to other services on the Internet and your device.

  • Step 1: Update the firmware to register functions of your particle in the cloud.

  • Step 2: Construct a web page to send user control commands to the cloud

Particle

Cloud

(Internet)

16 of 26

STEP 1

  • Make these changes to your code.
  • Verify the code
  • Flash the code
  • Open console and select your device
  • Look for the command ‘led’ you just added
  • Type in ‘on’ or ‘off’ your LED should respond.

Registers led command and if called executes routine ledToggle.

Nothing in the loop as we wait for commands.

This is the routine called and command will contain the value the user supplied.

Here

on

off

The value after return is sent back to the user

17 of 26

Code - Internet Controlled LED

18 of 26

STEP 2

  • Visit www.orcsgirl.og/class and click the link under step 3.
  • Find your device ID and access token. Hint, click on the links in the explanation.
  • Replace them in the HTML text where indicated.
  • Click Generate Web Page.
  • Control the LED.

Note! Everyone who knows the device ID and access token can control your device.

This is the webpage created from the HTML code above.

Links in the text above show where to find your device ID and access token values.

19 of 26

Let’s make a pattern - all together

  • What are the steps for everyone to follow?

Let’s

do

it!

20 of 26

Be creative

  • You can make letters or emojis
  • You can make animations

Use the pattern on the Jamboard to plan other patterns. Simply mark the order.

21 of 26

Time for a group photo

22 of 26

Find all our materials here

23 of 26

Want more?

Sign up for virtual classes

www.orcsgirls.org/classes

Virtual Classes

May 06

Crowd Sourcing ⭐

May 20

Code Some Chords ⭐⭐

May 27

Smart Apps ⭐

24 of 26

Want more?

Sign up for classes

www.orcsgirls.org/classes

Blount County Public Library, Maryville

Apr 22

Using the MicroBit for Biometrics ⭐⭐

May 13

MicroBit Powered Robots ⭐

Roane State Community College, Oak Ridge

Apr 29

Internet of Things ⭐⭐

25 of 26

ORCSGirls Summer Camps

July 17-20, 2023

Rising 2-4th graders, Virtual

Camp Directors

Katie Bates, Thomas Proffen

June 26-29, 2023

Rising 7-10th graders, Maryville, TN

Camp Directors

Katie Schuman, Amelie Nagle, Thomas Proffen

Smart Robot Camp

26 of 26

THANK YOU SO MUCH FOR ATTENDING

www.orcsgirls.org

contact@orcsgirls.org

Please complete the survey

techgirlz.org/survey

Big thank you to our

Volunteers, partners and sponsors.

@ORCSGirls

ORCSGirls

ORCSGirls