Arduino and Raspberry Pi
Arduino and Raspberry Pi
An Introduction
Goal
● Learn very basic programming
skills
● Learn to play with electronics
● Learn to connect devices through
the internet
● Get ideas for projects that you
can do with your students
Schedule
● Monday ● Friday
○ Introduction to Arduino ○ Build your final project
○ Basic programming ● Saturday
○ Build your first Arduino project ○ Finish your final project
● Tuesday ○ Wrap-up
○ Electronics basics
○ Continue building arduino projects
○ Build final Arduino project
● Thursday
○ Communicating over the internet
○ Getting started with the Raspberry Pi and
Node-red
○ Build your first network connected device
Arduino and Raspberry Pi
Microcontrollers and single-board computers
What contains microcontrollers?
What contains microcontrollers?
Original Arduino
Arduino clones
● Teensy
● Gizduino
● Sparkfun RedBoard
● Iduino
● Tinyduino
● Freeduino
● Nurduino
● etc
ESP8266 based chips
● Compared to Arduino Uno:
○ Integrated wifi
○ More memory
○ More processing power
● Various boards:
○ NodeMCU
○ ESP01
○ Adafruit HUZZAH
○ Wemos D1 Mini
Single-board computers
● Full computer
● Small size
● Energy efficient
● Not as powerful as a regular PC
● Many different brands/versions:
○ Raspberry PI (ARM Cortex A53 64bit quad-core)
○ Pine64 (ARM Cortex A53 64bit quad-core)
○ Beagle Bone Black (ARM Cortex A8 dual core)
○ etc
Back to microcontrollers and Arduino
NodeMCU Pinout
Digital Pins Analog Pins
● D1-D8 ● A0
● Digital=Binary ● Analog=Continuous range of
○ 1/0 numbers between a minimum
○ On/Off and maximum
○ High/Low ● With nodeMCU: A0 measures
○ True/False voltage between 0 and 3.3V
● Examples ● Examples
○ Light switch ○ Volume button
○ Door bell ○ Light sensor
○ Motion sensor ○ Scale (weight)
What do I have?
● Basic electronic components ● Arduino software
○ LED’s ○ Libraries
○ Breadboard ○ Examples
○ Wires ○ Upload button
○ Buttons ○ Error screen
○ Potentiometer
● Sensors
● NodeMCU
○ Micro-USB to connect to your PC
○ Pins fit it the breadboard