EE107 Spring 2019 Lecture 1 Introduction Embedded Networked - - PowerPoint PPT Presentation

ee107 spring 2019 lecture 1 introduction
SMART_READER_LITE
LIVE PREVIEW

EE107 Spring 2019 Lecture 1 Introduction Embedded Networked - - PowerPoint PPT Presentation

EE107 Spring 2019 Lecture 1 Introduction Embedded Networked Systems Sachin Katti *slides adapted from Aaron Schulmans CSE190 EE107: Embedded Networked Systems Goal: Provide a hands on introduction to the design of wireless embedded


slide-1
SLIDE 1

Embedded Networked Systems

Sachin Katti

EE107 Spring 2019 Lecture 1 Introduction

*slides adapted from Aaron Schulman’s CSE190

slide-2
SLIDE 2

EE107: Embedded Networked Systems

Goal: Provide a hands on introduction to the design of wireless embedded systems. Class will focus broadly on how to design a fully functional wireless embedded system. By the end of the course, you should be able to operate in a team that is building a product around an embedded system.

slide-3
SLIDE 3

Logistics

  • Instructors: Sachin Katti
  • CA: Pan Hu
  • Lectures: Mon/Wed 4:30-5:20pm
  • Lab: Fri 4:30-5:20pm
  • Office hours:

– Sachin: TBD – Pan: TBD

  • Web:
  • Course website: http://web.stanford.edu/class/ee107/
  • Discussion Forum: https://piazza.com/stanford/spring2019/ee107/home#
slide-4
SLIDE 4

Lectures & Assignments

  • Lecture slides will be posted on the course website
  • Four assignments, submit via piazza

– Blinkenlight communication: GPIO, timer (Due Apr 15) – Interfacing with peripherals: I2C (Due Apr 26) – Making your battery to last a month: clocks (Due May 8) – BLE proximity detection: wireless (Due May 17)

  • Assignments will be based on programming

– Important to do them to keep pace in class

slide-5
SLIDE 5

Project & Exams

  • Final project: build a battery-powered embedded

sensor that transmits data to a smartphone.

– Project proposal due May 1 – Project demo at the end of quarter (June 5)

  • One midterm exam in class (second week of May)

– Exam: in class, date TBD – No final

5

slide-6
SLIDE 6

Grading Logistics

  • Overall Class Grade

– Exam: 30% – Four Assignments: 40% – End of quarter project: 30%

slide-7
SLIDE 7

Lab Safety

  • Carefully read lab safety training:

https://stanford.app.box.com/v/Basic-Lab-Safety – Being safe themselves and not endangering

  • thers by their actions
  • Register and complete EHS4200 AND

EHS 3400 (each takes about one hour):

– https://ehs.stanford.edu/training/ehs-4200- general-safety – https://ehs.stanford.edu/training/ehs-3400- ergonomics-computer-workstation

slide-8
SLIDE 8
  • Verify you’ve completed training in AXESS

Lab Safety

1 2 3 4

slide-9
SLIDE 9

What is a wireless embedded system?

9

  • Computing systems are everywhere
  • Most of us think of “desktop” computers

– PC’s – Laptops – Mainframes – Servers

  • But there’s another type of computing system

– They are far more common...

slide-10
SLIDE 10

1

Wireless embedded systems: the center of the next generation of computing (i.e., Internet of Things)

slide-11
SLIDE 11

1 1

Analog Systems Digital Systems

Inexpensive computation Tiny MEMS sensors Tiny RF Integrated Circuits

Embedded systems

Easy-to-use frameworks

The components of the IoT revolution

Programmable Microcontrollers Wireless networks Tiny sensors

slide-12
SLIDE 12

Wireless Embedded Systems

12

– Computing systems embedded within things/gadgets connected to the Internet – Hard to call out any one thing/gadget, nearly everything now has a chip and a radio in it – Billions of units produced yearly, versus millions of desktop/laptop units

slide-13
SLIDE 13

Examples of wireless embedded systems Amazon Echo (Alexa) – Voice Assistant

8x microphone array WiFi/Bluetooth Microcontroller/DSP

slide-14
SLIDE 14

14

Battery

Barometer Microcontroller Accelerometer Bluetooth Radio

Vibration Motor

Examples of wireless embedded systems Fitbit – Fitness Tracker

slide-15
SLIDE 15

15

Examples of wireless embedded systems Bird – Sharing Economy Scooter

Particle Board: Microcontroller + Bluetooth + GSM (Cellular)

slide-16
SLIDE 16

Typical Microcontroller

1 6

slide-17
SLIDE 17

YouSense: Your personal battery-powered sensor

  • Hardware

– MCU that collects vision data from sensors – Bluetooth Low-Energy to transmit data to a smartphone – Flash memory to persistently store data – Battery powered for several days to months.

  • Software in a smartphone

– Display sensor measurements – AI and machine learning for processing the sensor data – Connection to cloud services

slide-18
SLIDE 18

What will you take away from this project?

  • General knowledge of how an embedded system works

– GPIO, Clocks, Interrupts, DMA, ADC, SPI, I2C, UART

  • Low-level firmware development in C

– Device drivers – Digital signal processing

  • Hardware testing (and building)

– Reading circuit layout and schematics – Analog circuit measurement (Oscilloscope, Multimeter) – Digital logic observation (Digital Logic Analyzer)

slide-19
SLIDE 19

YouSense Hardware Platform

TinyZero (ARM Cortex M0+) Battery powered microcontroller, Bluetooth Low Energy, many sensors.

1 9

slide-20
SLIDE 20

Potential YouSense Projects

  • Your ideas are GREAT!

– Propose and implement a cool application – Propose and implement something to make the system faster, more reliable or more power-efficient

  • Anti spy-device shield

– Detect nearby Bluetooth devices that are spying on you (e.g., collecting personal data)… this is a real problem!

  • Lost item detector

– Attaches to an item (e.g., backpack) and tells any nearby smartphone when it thinks it is “lost”.

  • Think about what you could do with:

– Sensors: IMU, temperature, humidity, pressure, light, GPS – Actuators: motor, servo, LED, speaker – Communication: WiFi, Bluetooth, 2.4G/433MHz proprietary