Upgrade to Pro — share decks privately, control downloads, hide ads and more …

IoT with JS (?!?!) - A Gentle Introduction to IoT - Joe Karlsson - Byteconf JavaScript 2019

IoT with JS (?!?!) - A Gentle Introduction to IoT - Joe Karlsson - Byteconf JavaScript 2019

In this talk, we will be getting our hands dirty the Raspberry Pi and Node.js. Together, we will be writing a program to visualize sound levels on the web in real time. With Node on a Raspberry Pi, we will listen to a sound sensor and then send that data to a webpage so we can visualize the data live! Sounds cool right? In this talk, we will cover

- How to setup Node.js on a Raspberry Pi
- Connecting sensors to a Raspberry Pi and reading the inputs with Node.

Joe Karlsson

March 23, 2019
Tweet

More Decks by Joe Karlsson

Other Decks in Programming

Transcript

  1. @JoeKarlsson1 A network of devices that have an IP address

    and can communicate with each other over the internet @JoeKarlsson1
  2. @JoeKarlsson1 A company is an association or collection of individuals,

    whether natural persons, legal persons, or a mixture of both. Company members share a common purpose and unite in order to focus their various talents and organize their collectively available skills or resources to achieve specific, declared goals. Collect Devices and sensors collect data @JoeKarlsson1
  3. @JoeKarlsson1 A company is an association or collection of individuals,

    whether natural persons, legal persons, or a mixture of both. Company members share a common purpose and unite in order to focus their various talents and organize their collectively available skills or resources to achieve specific, declared goals. Communicate Data and events sent through the network Data Center The Cloud Home Router @JoeKarlsson1
  4. @JoeKarlsson1 A company is an association or collection of individuals,

    whether natural persons, legal persons, or a mixture of both. Company members share a common purpose and unite in order to focus their various talents and organize their collectively available skills or resources to achieve specific, declared goals. Analyze Computers analyzes the incoming data Run Reports Home Router Machine Learning View Reports @JoeKarlsson1
  5. @JoeKarlsson1 A company is an association or collection of individuals,

    whether natural persons, legal persons, or a mixture of both. Company members share a common purpose and unite in order to focus their various talents and organize their collectively available skills or resources to achieve specific, declared goals. Act Taking action based on the data Send a notification Communicate with
 another machine Stream @JoeKarlsson1
  6. @JoeKarlsson1 JS is a great choice for new devs Other

    low level programming languages can be difficult to develop @JoeKarlsson1
  7. @JoeKarlsson1 Why Node? 58 percent of respondents that identified as

    IoT developers use Node Source: https://nodejs.org/en/blog/announcements/nodejs-foundation-survey/ @JoeKarlsson1
  8. @JoeKarlsson1 1 x Raspberry Pi 3 Model B 1 x

    Breadboard 1 x 68 Ohms Resistor What Materials Do We Need? 1 x LED 2 x Female to Male Wires
  9. @JoeKarlsson1 General Purpose Input/Output Pins [GPIO] Can be used to

    interact in with the real world @JoeKarlsson1
  10. @JoeKarlsson1 Input Pins Switches that you can turn on or

    off from the outside world @JoeKarlsson1
  11. @JoeKarlsson1 Great Overview of the GPIO Pins on Wikipedia @JoeKarlsson1

    Source: https://en.wikipedia.org/wiki/Raspberry_Pi#General_purpose_input-output_(GPIO)_connector
  12. @JoeKarlsson1 LED Resistors Resistors are used to reduce current, adjust

    signal levels, etc. A diode that emits light when a voltage is applied to it. @JoeKarlsson1
  13. @JoeKarlsson1 Smaller and more powerful devices \ Better Hardware support

    JS with a smaller footprint Batteries will become the bottleneck The Future of JS + IoT? @JoeKarlsson1
  14. @JoeKarlsson1 IoT is exploding Raspberry Pi’s use GPIO to interact

    with the real world JS is a great choice for IoT Easy to update apps Internet already speaks JS Great supporting libraries JS excels at event-driven apps Start with a small project and jump in and learn as you go!
  15. @JoeKarlsson1 •Code - https://github.com/JoeKarlsson/IoT-Morse-Code-Demo •Programming the Internet of Things Using

    Node.js* and HTML5 (PDF) - 6/23/2015 •Losant: Node.js and The Internet of Things - 1/30/2016 •Embedded JavaScript, HTML5 and the Internet of Things - Jesse Cravens •Creating the Internet of Things with JavaScript - Tom Hughes-Croucher •A language for the Internet: Why JavaScript and Node.js is right for Internet Applications - Tom Hughes-Croucher •Video: Realtime Hardware with Node.js - Emily Rose •Getting Physical: Networked Hardware with Node.js - Ted Hayes •Video: My Sensors Love Node.js - Ward Cunningham •How To Electrocute Yourself using the Internet - Alexander Roche A talk about the Internet of things, Arduino and JavaScript frameworks including BreakoutJS and Johnny-Five •An Internet Of Things System – How To Build It Faster - Matteo Collina •Hardware Hacking With JavaScript - Feb 26th •HTML5 Powered Internet Of Things Products - Clickside - 10/21/2014 Additional Resources @JoeKarlsson1