Rapid Iteration for an Internet of Things€¦ · The one who cycles fastest succeeds Observe...

Preview:

Citation preview

Rapid Iteration for an Internet of Things

Jeff McAlvay, Tempo Automation

What is the Internet of Things?

As with any new field, there are many names, and concepts are still being formed

• Internet of things (Kevin Ashton at MIT)• Internet of everything (Cisco)• Industrial internet (GE)• Smarter planet (IBM)

A framework for understanding: John Boyd’s OODA Loop

The one who cycles fastest succeeds

Observe

Orient Decide

Act

Automating the OODA Loop

• Boyd came up with the OODA loop to describe effective human thought and action

• The internet has begun to automate it• The internet of things will finish automating it

Internet begins automating OODA

Enter

Orient Decide

Read

Observe Act

Machine learning

Human senses

Internet of Things completes OODA automation

Orient Decide

Observe Act

Machine learning

What is the internet of things?

• Connection of sensors and actuators to the internet– Observe (sensors) and Act (actuators) are

happening in devices– Orient (databases) and Decide (machine learning)

are happening in the cloud

Example: grocery store inventory management

Grocery inventory management:Internet

Enter

Orient Decide

Read

Observe Act

Algorithm decides whento purchase more

Employee countsinventory

Employee Enters count into handheld

Inventory is stored indatabase

Purchasing agent sees inventory on screen

Purchasing agent places order

Grocery inventory management: Internet of Things

Orient Decide

Observe ActRFID capturescurrent inventory

Inventory is stored indatabase

Algorithm decides whento purchase more

Algorithm automaticallyplaces order

What do you get from it?• Observation and action benefit from the ability to

happen – Sensing cost is lower -> can collect data at bigger scale

(temporally and spatially)– Allows you to be super-responsive (feedback loop is

tighter) -> accuracy/robustness increase– As sophisticated software lives in simplistic hardware (see

Twilio’s Jeff Lawson: http://www.slideshare.net/twilio/2013-02-software-people-10-minute-version slides 36-45), radical changes in functionality are possible through remote updates

• Orient and decide benefit from huge storage and computational power

Applications: Business

• Inventory/Logistics– Walmart’s RFID on inventory– Parlevel systems vending machines– UPS’s GPS tracking on trucks

• Maintenance (conveyor motors report health)• Energy (smart meters / power grid)

Applications: Consumer• Quantified self / predictive medicine

– Fit bit– Nike Fuel band

• Smart Home– Lockitron– Nest

• Tesla with smart dash board (can send updates to it)• Wearables / Augmented Reality?

– Watches (e.g., Pebble, MS, Apple, Samsung, etc.)– Glasses (e.g., Google, Epson)– UC Boulder Robotics: a shirt for folks who can’t hear well that

vibrates when there’s a loud noise (e.g., fire alarm, car horn)

Big opportunity

• Lots of devices: 31B devices connected by 2020 (Intel)

• Lots of money (Cisco):– $613B in 2013– $14.4T in 2023

What’s required for the Internet of Things?

• Necessary components that exist/are on the way– Software and hardware collaboration tools– Data science– Cheap sensors and actuators– Standardized interface between sensors/actuators and

internet– Software iteration: fast and free– Software scalability: effortless

• Limiting factors– Hardware iteration: glacial and expensive– Hardware scalability: tedious

Collaboration tools = open source modules + version control

Software Hardware

Data science = large scale, computer-aided inference

• Facebook/google – what ad does this person want to see?

• Pandora – what music does this person want to listen to?

• Netflix – what move does this person want to watch?

• Airbnb – what house will this person want to stay in?

Cheap sensors and actuators

• Developed for military, industrial plants• 3D Robotics’ Chris Anderson: Phones have

made them cheaper

Standardized interface between sensors/actuators and internet

Internet Microcontroller Sensors and actuators

Wireless:BluetoothZigbeeWiFiCell

Electrical:I2CSPIGPIO

Attempts at standardization

• Raspberry Pi

• Beagle Bone Black

• Pinoccio

• Sparkcore

Software iteration: fast and free

• Continuous deployment (e.g., IMVU deployed code 50 times per day); made possible by:– Single line deployment scripts– Automated testing

• Marginal cost per deployment is basically zero

Software scalability: effortless

• For small, medium, large traffic sites, trivial to add capacity on Amazon Web Services Elastic Compute Cloud

• Limit: when you have huge traffic (e.g., if you’re Google, Facebook), it makes sense to host yourself. Even there, you have lot’s of tools:– Rackspace OpenStack for software– Facebook Open Compute for hardware– Hadoop for distributed data storage/analysis

“With hardware, it’s a weeks-to-months iteration cycle, instead of the hours-to-days cycles that we enjoy in Web Development.”

–Sally CarsonPinoccio, Internet of Things Company

Hardware iteration: glacial

Why is hardware iteration glacial?

Hardware iteration: expensive

It’s as if pressing compile cost $1400.

Boards 3 days 1 week 2 weeks 1 month

1 $1872.53 $1387.31 $911.42 $801.27

10 $3348.60 $2366.40 $2109.30 $1728.55

100 $10,006 $6570.94 $4279.00 $3686.75

Hardware scaling: tedious

“Many hardware startups stumble when they try to go from prototype to large-scale manufacturing. There is no AWS-equivalent for hardware. To get manufacturing right, entrepreneurs often end up living in China for months and even years.”

-Chris Dixon, Andreessen Horowitz

What about Arduino?

Arduino benefits

• Great UI (simple programming language, one click firmware flashing; Banzi: “it’s users not megahertz”)

• Can prototype quickly (just unplug and replugwires into breadboard)

• Great community (open source blocks of code for using different sensors)

Why not Arduino• Not digital fabrication

– Changes in CAD still faster than changing wires– Can’t send picture of your breadboard to manufacturer

• Through hole vs. surface mount– Industry moved to surface mount in the 80s (except some big caps and

connectors) -> very basic selection of components (Sparkfun and Adafruit have tried to blunt this with breakout boards, but still can access only fraction of modern components)

– Big, fragile -> makes integration into IoT devices difficult (not in Pebble or Google Glass…)

– Can’t scale due to high raw component costs and manufacturing costs (through hole is handle assembled vs. machine assembled) -> will have to convert from through hole to surface mount when scaling (time consuming!—prototype should match production when possible)

What about hand surface mount assembly?

• Surface mount components are small and getting smaller. E.g., 0402 (roughly 0.04” x 0.02” = 10 hairs by 5 hairs)

• Requires fine motor control (can’t do after coffee)

• Should engineers be designing boards or training for a sweat shop?

• Not scalable

How can we get rapid, free iteration & effortless scalability with hardware?

• Where is hardware’s single line deploy script?• Where is hardware’s AWS EC2?

A model: desktop printing

It used to be slow, expensive, and not scalable…not unlike

electronics manufacturing today• Dozens of hours to typeset each page• Required $100k+ photo typesetters• Example of the process:

http://commfaculty.fullerton.edu/woverbeck/dtr5.htm

Now…

Document printing:hardware interaction

Document printing:software interaction

Print

How many?

Done!

“In 1987, my father bought a Macintosh SE and a LaserWriter IISC. With the help of the page layout program Aldus Pagemaker, he designed company letterhead, business cards, and product spec sheets for his small company (five employees total). With the Mac/LaserWriter combo, a small business like his could afford to design and produce professional quality literature on par with that of a major corporation.” – Benj Edwards

What if electronics manufacturing were like document printing?

Introducing

Electronics manufacturing: hardware interaction

Electronics manufacturing:software interaction

Make

How many?

Done!

How does it work?

PCB Fabrication Solder paste application

Pick and place Reflow Testing

Facebook Open Compute Hardware Hackathon: some steps automated,

some steps manual. When we’re done, all steps will be automated.

Example project: Centaur II

Plugs into a car’s diagnostic port (OBD II) and makes information about a car (e.g., braking, lights, locks) accessible on the web. Applications include collision detection.

PCB Fabrication

Solder paste application

Drilling

Pick and Place

https://www.facebook.com/groups/opencompute/permalink/568193126566004/

Reflow

Ready to go!

How can we get rapid, free iteration and effortless scalability for hardware?• Where is hardware’s single line deploy script?• Where is the hardware’s AWS EC2?

Follow us on:tempoautomation.comtwitter.com/TempoAutomationfacebook.com/tempo.automationhttp://bit.ly/172IWvs

Bay Area Factory Tours www.meetup.com/Bay-Area-Factory-Tours

Hardware Office Hourshttp://bit.ly/15chw4W

References and Resources• John Boyd http://www.amazon.com/Boyd-Fighter-Pilot-Who-

Changed/dp/0316796883/• GE http://www.gereports.com/meeting-of-minds-and-machines/• Cisco http://gigaom.com/2013/06/28/ciscos-internet-of-things-vision-is-

more-about-services-than-gear/• Intel http://newsroom.intel.com/docs/DOC-2297• http://postscapes.com/• IMVU http://www.startuplessonslearned.com/2009/06/why-continuous-

deployment.html• Advanced PCB required files http://www.4pcb.com/pcb-file-generation/• Screaming circuits required files

http://www.screamingcircuits.com/Home/HowItWorks#whatweneed• Contract manufacturing costs from Screaming Circuits / Sunstone• Apple LaserWriter

http://www.macworld.com/article/1150845/laserwriter.html

Recommended