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

Nodebots, Frontend Masters

Cf7d992c02bfb3bee91c9e2ee982a00c?s=47 Steve Kinney
August 17, 2018
250

Nodebots, Frontend Masters

Cf7d992c02bfb3bee91c9e2ee982a00c?s=128

Steve Kinney

August 17, 2018
Tweet

Transcript

  1. Introduction to Nodebots Steve Kinney

  2. None
  3. About the Tessel 2

  4. None
  5. It’s time for a feature list! • 64MB of RAM

    • 32MB of flash storage • 802.11 b/g/n WiFi and an Ethernet port • 2 USB ports • A WiFi router • JavaScript as a first-class citizen!
  6. The Tessel 2 can be programmed via USB or over

    WiFi.
  7. While I generally prefer WiFi, we’re going to use USB

    primarily today—mostly because we’re in a workshop together with a dozen Tessels.
  8. None
  9. Ground 3v3 A0 A1 A2 A3 A4 A5 A6 A7

    Ground 3v3 B0 B1 B2 B3 B4 B5 B6 B7
  10. GPIO: General purpose input/output.

  11. Some Tasting Notes • All 16 pins can be used

    for GPIO. • Pins A4, A7, and all pins on the B port can be used for analog to digital input. • Pins A5, A6, B5, and B6 support pulse-width modulation. • Pins A0, A1, B0, and B1 support I2C serial communication. • UART is available on both A5 and B5 (TX) and A6 and B6 (RX). • Pin B7 supports digital-to-analog conversion.
  12. Ground 3v3 A0: I2C A1: I2C A2 A3 A4 A5:

    PWM, UART/TX A6: PWM, UART/RX A7 Ground 3v3 B0: ADC, I2C B1: ADC, I2C B2: ADC B3: ADC B4: ADC B5: ADC, PWM, UART/TX B6: ADC, PWM, UART/RX B7: ADC, DAC
  13. None
  14. How to Breadboard

  15. None
  16. Blinking an LED The “Hello World” of hardware.

  17. Source: https://pixabay.com/en/led-lamp-diode-electronics-light-543475/ Negative Positive

  18. Polarity TL;DR • Polarized components (LEDs, batteries) have a right

    and a wrong way. • Non-polarized components (resistors, buttons) can be installed either way.
  19. None
  20. Pulsing Not so easy when you’re working with 1s and

    0s.
  21. Turing an LED off and on is very gratifying, but

    can we make it fade in and out?
  22. Well, here’s the problem with digital: It’s all ones and

    zeroes, right?
  23. Pulse Width Modulation Source: https://commons.wikimedia.org/wiki/File:Pwm_5steps.gif

  24. Pins 5 and 6 on either port are capable of

    PWM.
  25. None
  26. Buttons It’s time to let the “real world” interact with

    our code.
  27. Act One: Button Meets LED

  28. None
  29. Act Two: Button Meets the Web

  30. None
  31. Rainbow LED What’s better than an LED that lights up

    in one color?
  32. None
  33. What’s the Weather? Collecting information from the outside world.

  34. None
  35. Light Me Up Sensing light and updating the web.

  36. None
  37. Intruder Alert Using Third-Party APIs and a Door Sensor

  38. None
  39. Water Me? Connecting with a soil moisture sensor.

  40. None
  41. LCDs Display text like you’re a printer from the early

    1990s.
  42. None