290 likes | 305 Views
Class 1: Building a Raspberry Pi LED Flasher. Building Raspberry Pi Devices and Data Displays for the Internet of Things. March 21, 2016 Don Wilcher. Building a Raspberry Pi LED Flasher. Today’s Agenda The State of Internet of Things Industrial Internet of Things impact on Manufacturing
E N D
Class 1: Building a Raspberry Pi LED Flasher Building Raspberry Pi Devices and Data Displays for the Internet of Things March 21, 2016Don Wilcher
Building a Raspberry Pi LED Flasher Today’s Agenda • The State of Internet of Things • Industrial Internet of Things impact on Manufacturing • Arduino and Raspberry Pi IoT Development platforms • Building a Raspberry Pi LED Flasher
The State of the Internet of Things Verizon: The Internet of Things (IoT) impacts business. “ With a billion-plus connected smart devices and machines worldwide, the IoT provides vast amounts of actionable data in realtime.” Source: http://www.verizonenterprise.com/state-of-the-market-internet-of-things/
The State of the Internet of Things… Cisco: What Is the IoT? • The IoT links smart objects to the Internet. • It can enable an exchange of data never available before, and bring users information in a more secure way. • Estimates the IoT will consist of 50 billion devices connected to the Internet by 2020. Source: http://www.cisco.com/c/en/us/solutions/internet-of-things/overview.html
The State of the Internet of Things… The Business Impact of IoT: Source: http://www.verizonenterprise.com/state-of-the-market-internet-of-things
Industrial Internet of Things impact on Manufacturing The Manufacturing Revolution • The 1st Industrial Revolution- Introduction to factories, mills, steam engines, and railroads allow us to do more with less. • The 2nd Industrial Revolution- The assembly line allow new manufacturing techniques to be developed. The assembly marked another significant quickening of our productive output and capacity.
Industrial Internet of Things impact on Manufacturing… The Manufacturing Revolution… • The 3rd Industrial Revolution- The digital of computers and programmable industrial controls and robotics speared the age of Automation. • The 4th Industrial Revolution- Wireless Connectivity. • Industrial Internet of Things commonly known as Industry 4.0. • Machines and processes are monitored with electronic sensors. • Electronic sensor data is aggregated to cloud servers.
Industrial Internet of Things impact on Manufacturing… The Manufacturing Revolution… • The 4th Industrial Revolution- Wireless Connectivity. • Aggregated data allows manufacturing business to maintain plant process through smart devices like phones and tablets • Machine process adjustments can be changed through Predictive Maintenance techniques utilizing the aggregated data.
Arduino and Raspberry Pi IoT Developmentplatforms A variety of Arduino and Raspberry Pi platforms to investigate IoT. GearBest http://www.gearbest.com/kits/pp_244836.html?currency=USD&gclid=CjwKEAiApOq2BRDoo8SVjZHV7TkSJABLe2iD4DgsjN846wILhI9IthzYFzO5RSuIJeo-WlMjreugFhoC3GDw_wcB
Arduino and Raspberry Pi IoT Developmentplatforms… Avnet BCM4343W IoT Starter Kit (Arduino form factor board) http://www.em.avnet.com/en-us/design/drc/Pages/Avnet-BCM4343W-IoT-Starter-Kit.aspx
Question 1 What is the commonly used name for IIoT?
Arduino and Raspberry Pi IoT Developmentplatforms… Adafruit -Microsoft Windows 10 Raspberry Pi 2 IoT Starter Pack https://www.adafruit.com/products/2733
Building a Raspberry Pi LED Flasher Lab Project Objectives: • To build an interactive LED Flasher using a Raspberry Pi. • To write Python code for the interactive LED Flasher. • To experiment with the flashing rate of the interactive LED Flasher by modifying the Python code.
Building a Raspberry Pi LED Flasher Parts List: Parts list of components required for the RPi LED flasher: • Raspberry Pi (Model A+, B, B+, or the Pi 2) • CNY74- 4H-ND opto-isolator [16pin DIP package] • Tactile pushbutton switch • (2) 330 ohm resistors (orange, orange, brown, gold), ¼W, 5% • LED (any color) • Raspberry Pi cobbler • solderless breadboard
Building a Raspberry Pi LED Flasher Raspberry Pi LED Flasher Block Diagram
Question 2 Besides using female to female jumper wires, what other prototyping part can be used to connect external circuits to the Raspberry Pi’s GPIO pins?
Building a Raspberry Pi LED Flasher… A Pictorial Diagram of the Raspberry Pi LED Flasher
Building a Raspberry Pi LED Flasher… Electrical Wiring Assembly of the Raspberry Pi LED Flasher on a solderless breadboard.
Building a Raspberry Pi LED Flasher… The Raspberry Pi LED Flasher circuit schematic diagram.
Building a Raspberry Pi LED Flasher… Pinout for optoisolator IC
Building a Raspberry Pi LED Flasher… Close up of wiring optoisolator IC to Raspberry Pi
Question 3 The GPIO pins of the Raspberry Pi are 3.3V compliant. What external component can used to separate +5V from the 3.3V GPIO pins?
Building a Raspberry Pi LED Flasher… Assembled Raspberry Pi LED Flasher
Building a Raspberry Pi LED Flasher… Python Code. • Open a LXTerminal session • Type sudo nano pbswitch_flasher.py after ~ prompt • Type in the following code
Question 4 What version of Raspberry Pi is the instructor using for his LED Flasher? • Model A • Model B+ version 2 • The Pi 2 • Model B version 2
Building a Raspberry Pi LED Flasher… Python Code.
Building a Raspberry Pi LED Flasher… Python Code. • Once Python code has been entered into the nano editor, save it and exit from the editor. • Execute the code using the following Linux command:
Question 5 What Linux command allows full administrative rights to the Raspberry Pi?
Building a Raspberry Pi LED Flasher… Congratulations!!! You now have a working Raspberry Pi LED Flasher.