SlideShare a Scribd company logo
02 Raspberry Pi GPIO
Node-RED Control Hardware Interfaces
Raspberry Pi Interfaces
• One powerful feature of the Raspberry Pi is the row of GPIO
(general purpose input/output) pins along the edge of the
board, next to the yellow video out socket.
• These pins are a physical interface between the Pi and the
outside world.
• At the simplest level, you can think of them as switches that you
can turn on or off (input) or that the Pi can turn on or off (output)
Raspberry Pi Interfaces
• Seventeen of the 26 pins are GPIO pins; the
others are power or ground pins.
• It could be input from a sensor or a signal from
another computer or device
1
2
25
26
How GPIO Pins Work : Output
• When we use a GPIO pin as an output, pin can turn
on or off,or go HIGH or LOW in computing terms.
• When the pin is HIGH it outputs 3.3 volts (3v3).
• When the pin is LOW it outputs 0 volts (ground)
How GPIO Pins Work : Input
• When we use a GPIO pin as an input switch, pin
have to “pull up” or “pull down”.
pull up pull down
Node-RED Pi GPIO
• There are two main ways of interacting with a
Raspberry Pi using Node-RED
• rpi-gpio nodes, provided in the palette for
monitoring and controlling the GPIO pins. This is
the simplest and recommended way.
• wiring-pi module, this provides complete access
to the GPIO pins, and other devices, within
Function nodes.
Pin Map
Output Interface
Digital Output
Create Flow for Digital Out
• Add a inject, debug nodes and change parameter of
inject node, by double click
Create Flow for Digital Out
• Change the repeat into “interval” for every 1 second.
• Set Name to “tick every 1 sec”
Changed
Properties
Create Flow for Digital Out
• Add a function node and double click to edit
function.
Set function
name
Create Flow for Digital Out
• Add a rpi-gpio node (in part “Raspberry Pi”) and
double click to change pin number.
Pin 16
Digital Output Mode
Create Flow for Digital Out
Wiring node and click deploy
Create Flow for PWM Out
• Add 5 inject, 1 debug nodes and change parameter
of inject node, by double click
Create Flow for PWM Out
• Change inject node 1 properties
Changed
Properties
Create Flow for PWM Out
• Change inject node 2 properties
Changed
Properties
Create Flow for PWM Out
• Change inject node 3 properties
Changed
Properties
Create Flow for PWM Out
• Change inject node 4 properties
Changed
Properties
Create Flow for PWM Out
• Change inject node 5 properties
Changed
Properties
Create Flow for PWM Out
• Add a rpi-gpio node (in part “Raspberry Pi”) and
double click to change pin number and PWM.
Pin 16
PWM Output Mode
Create Flow for PWM Out
Wiring node and click deploy
Create Flow for PWM Out
Click on the each Inject button to change LED bright
Input Interface
Vcc
GND
Data Out
Digital Input
Create Flow for Binary Sensor Input
• Add a rpi-gpio node (in part “Raspberry Pi”) and
double click to change pin number and resistor.
Pin 11
no resistor
Create Flow for Binary Sensor Input
• Add a function node and double click to edit
function with 2 output.
Set function name
and output
Create Flow for Digital Out
• Add a rpi-gpio node (in part “Raspberry Pi”) and
double click to change pin number.
Pin 16
Digital Output Mode
Create Flow for Binary Sensor Input
Add debug node and
wiring node and click deploy
Special Input Interface
1-Wire
1-Wire bus
Special Input Interface
#Open new Putty to connect R-Pi 10.10.11.X using SSH!
User : pi!
Password : raspberry!
!
pi@thethingbox$ls /sys/bus/w1/devices!
!
!
!
!
!
- Copy the number (Sensor ID) in rectangular for use with Node-
RED!
!
pi@thethingbox$exit!
Create Flow for 1-Wire Bus
• Add a inject, debug nodes and change parameter of
inject node, by double click
Create Flow for 1-Wire Bus
• Change inject node properties
• Payload : blank, Topic : Sensor ID, Name : DS1820 , Repeat :
30 Second
Changed
Properties
Create Flow for 1-Wire Bus
• Add a 1-Wire and change node (in part “function”)
and double click on change node.
• Set retain last value of sensor data
Retain last
value
Create Flow for 1-Wire Bus
• Add a mqtt node (in part “output”) and double
click to change mqtt broker, and Topic.
Set mqtt broker
Create Flow for 1-Wire Bus
Wiring node and click deploy
Create Flow for 1-Wire Bus
Monitor
Temperature
with MyMQTT
App on
Android

More Related Content

PDF
Engage 2019: Introduction to Node-Red
PPT
PDF
Opinion – 5G Reality Check: Speeds
PDF
5G Network Architecture Options
PPT
PPT
Routing table
PDF
01 Node-RED Basic
Engage 2019: Introduction to Node-Red
Opinion – 5G Reality Check: Speeds
5G Network Architecture Options
Routing table
01 Node-RED Basic

What's hot (20)

PDF
Bonding Interface in MikroTik
PDF
ACI MultiFabric 소개
PPTX
Raspberry pi complete setup
PPT
Ipx protocol slide share
PPTX
OTV PPT by NETWORKERS HOME
PPTX
Multiprotocol label switching (mpls) - Networkshop44
PDF
Network Address Translation (NAT)
PDF
Node red for Raspberry Pi
PDF
Introduction to VoIP, RTP and SIP
PPTX
Node-RED
PDF
MQTT Protocol: IOT Technology
PPTX
Internet connectivity
PPTX
Introduction to Node-RED
PPT
User Datagram protocol For Msc CS
PPTX
PPP (Point to Point Protocol)
PPTX
Unit 3 Complete.pptx
PDF
Part 6: Standalone and Non-Standalone 5G - 5G for Absolute Beginners
PPSX
Hypertext Transfer Protocol
PPTX
Infrared lan's
Bonding Interface in MikroTik
ACI MultiFabric 소개
Raspberry pi complete setup
Ipx protocol slide share
OTV PPT by NETWORKERS HOME
Multiprotocol label switching (mpls) - Networkshop44
Network Address Translation (NAT)
Node red for Raspberry Pi
Introduction to VoIP, RTP and SIP
Node-RED
MQTT Protocol: IOT Technology
Internet connectivity
Introduction to Node-RED
User Datagram protocol For Msc CS
PPP (Point to Point Protocol)
Unit 3 Complete.pptx
Part 6: Standalone and Non-Standalone 5G - 5G for Absolute Beginners
Hypertext Transfer Protocol
Infrared lan's
Ad

Viewers also liked (20)

PDF
An introduction to workflow-based programming with Node-RED
PDF
Web of Things (wiring web objects with Node-RED)
PDF
Using Node-RED for building IoT workflows
PDF
Flow Base Programming with Node-RED and Functional Reactive Programming with ...
PDF
Wiring the Internet of Things with Node-RED, @IoTConf talk, September '14
PPTX
Introduction To Raspberry Pi with Simple GPIO pin Control
PDF
Mehr und schneller ist nicht automatisch besser - data2day, 06.10.16
PDF
Distributed Data Flow for the Web of Things: Distributed Node-RED
ODP
Introduction to Raspberry Pi and GPIO
PDF
Project Humix overview
PPT
Raspberry pi
PDF
03 Make Things Talk
PDF
Java fx on raspberry pi gerrit grunwald
PDF
Elausys : Products and company description
PDF
Using Bluemix and Node-RED for Fast Prototyping
PDF
Node-RED and getting started on the Internet of Things
PDF
Informix on ARM and informix Timeseries - producing an Internet-of-Things sol...
PDF
Node-RED Interoperability Test
PDF
FRED: A Hosted Data Flow Platform for the IoT
PDF
Simple Internet of Things (IoT) game with Bluemix and Node-Red
An introduction to workflow-based programming with Node-RED
Web of Things (wiring web objects with Node-RED)
Using Node-RED for building IoT workflows
Flow Base Programming with Node-RED and Functional Reactive Programming with ...
Wiring the Internet of Things with Node-RED, @IoTConf talk, September '14
Introduction To Raspberry Pi with Simple GPIO pin Control
Mehr und schneller ist nicht automatisch besser - data2day, 06.10.16
Distributed Data Flow for the Web of Things: Distributed Node-RED
Introduction to Raspberry Pi and GPIO
Project Humix overview
Raspberry pi
03 Make Things Talk
Java fx on raspberry pi gerrit grunwald
Elausys : Products and company description
Using Bluemix and Node-RED for Fast Prototyping
Node-RED and getting started on the Internet of Things
Informix on ARM and informix Timeseries - producing an Internet-of-Things sol...
Node-RED Interoperability Test
FRED: A Hosted Data Flow Platform for the IoT
Simple Internet of Things (IoT) game with Bluemix and Node-Red
Ad

Similar to 02 Raspberry Pi GPIO Interface on Node-RED (Some correction) (20)

PPTX
Raspberry pi led blink
PDF
IoT Physical Devices and End Points.pdf
PDF
Raspberry Pi GPIO Tutorial - Make Your Own Game Console
PDF
Raspberry Pi
PDF
4. GPIO Access
PDF
Embedded Systems: Lecture 9: The Pi Control ARM
PPTX
Building the Internet of Things with Raspberry Pi
PDF
Raspberry Pi - best friend for all your GPIO needs
PPTX
M.Tech Internet of Things Unit - III.pptx
PPTX
Raspberry Pi Introductory Lecture
PDF
Ins and Outs of GPIO Programming
 
PPTX
Raspberry pi
PDF
manual_2020_Cyber Physical System.pdf
PDF
Raspberry pi: Referencia de hardware de raspberry pi por warren gay
PPTX
Raspberry-Pi, Developing on Raspberry Pi, Difference between Arduino & Raspbe...
PDF
Interfacing the Raspberry Pi to the World
PPTX
Democratizing the Internet of Things
PPTX
Got Python I/O: IoT Develoment in Python via GPIO
PPTX
ScratchGPIO, Raspberry Pi & BerryClip
PDF
Baking a Raspberry PI with Chef Rob
Raspberry pi led blink
IoT Physical Devices and End Points.pdf
Raspberry Pi GPIO Tutorial - Make Your Own Game Console
Raspberry Pi
4. GPIO Access
Embedded Systems: Lecture 9: The Pi Control ARM
Building the Internet of Things with Raspberry Pi
Raspberry Pi - best friend for all your GPIO needs
M.Tech Internet of Things Unit - III.pptx
Raspberry Pi Introductory Lecture
Ins and Outs of GPIO Programming
 
Raspberry pi
manual_2020_Cyber Physical System.pdf
Raspberry pi: Referencia de hardware de raspberry pi por warren gay
Raspberry-Pi, Developing on Raspberry Pi, Difference between Arduino & Raspbe...
Interfacing the Raspberry Pi to the World
Democratizing the Internet of Things
Got Python I/O: IoT Develoment in Python via GPIO
ScratchGPIO, Raspberry Pi & BerryClip
Baking a Raspberry PI with Chef Rob

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
Teaching material agriculture food technology
PPTX
Tartificialntelligence_presentation.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
cuic standard and advanced reporting.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Spectroscopy.pptx food analysis technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
Tartificialntelligence_presentation.pptx
Encapsulation theory and applications.pdf
Approach and Philosophy of On baking technology
Digital-Transformation-Roadmap-for-Companies.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Group 1 Presentation -Planning and Decision Making .pptx
A comparative analysis of optical character recognition models for extracting...
Dropbox Q2 2025 Financial Results & Investor Presentation
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Programs and apps: productivity, graphics, security and other tools
Spectral efficient network and resource selection model in 5G networks
cuic standard and advanced reporting.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectroscopy.pptx food analysis technology

02 Raspberry Pi GPIO Interface on Node-RED (Some correction)

  • 1. 02 Raspberry Pi GPIO Node-RED Control Hardware Interfaces
  • 2. Raspberry Pi Interfaces • One powerful feature of the Raspberry Pi is the row of GPIO (general purpose input/output) pins along the edge of the board, next to the yellow video out socket. • These pins are a physical interface between the Pi and the outside world. • At the simplest level, you can think of them as switches that you can turn on or off (input) or that the Pi can turn on or off (output)
  • 3. Raspberry Pi Interfaces • Seventeen of the 26 pins are GPIO pins; the others are power or ground pins. • It could be input from a sensor or a signal from another computer or device 1 2 25 26
  • 4. How GPIO Pins Work : Output • When we use a GPIO pin as an output, pin can turn on or off,or go HIGH or LOW in computing terms. • When the pin is HIGH it outputs 3.3 volts (3v3). • When the pin is LOW it outputs 0 volts (ground)
  • 5. How GPIO Pins Work : Input • When we use a GPIO pin as an input switch, pin have to “pull up” or “pull down”. pull up pull down
  • 6. Node-RED Pi GPIO • There are two main ways of interacting with a Raspberry Pi using Node-RED • rpi-gpio nodes, provided in the palette for monitoring and controlling the GPIO pins. This is the simplest and recommended way. • wiring-pi module, this provides complete access to the GPIO pins, and other devices, within Function nodes.
  • 9. Create Flow for Digital Out • Add a inject, debug nodes and change parameter of inject node, by double click
  • 10. Create Flow for Digital Out • Change the repeat into “interval” for every 1 second. • Set Name to “tick every 1 sec” Changed Properties
  • 11. Create Flow for Digital Out • Add a function node and double click to edit function. Set function name
  • 12. Create Flow for Digital Out • Add a rpi-gpio node (in part “Raspberry Pi”) and double click to change pin number. Pin 16 Digital Output Mode
  • 13. Create Flow for Digital Out Wiring node and click deploy
  • 14. Create Flow for PWM Out • Add 5 inject, 1 debug nodes and change parameter of inject node, by double click
  • 15. Create Flow for PWM Out • Change inject node 1 properties Changed Properties
  • 16. Create Flow for PWM Out • Change inject node 2 properties Changed Properties
  • 17. Create Flow for PWM Out • Change inject node 3 properties Changed Properties
  • 18. Create Flow for PWM Out • Change inject node 4 properties Changed Properties
  • 19. Create Flow for PWM Out • Change inject node 5 properties Changed Properties
  • 20. Create Flow for PWM Out • Add a rpi-gpio node (in part “Raspberry Pi”) and double click to change pin number and PWM. Pin 16 PWM Output Mode
  • 21. Create Flow for PWM Out Wiring node and click deploy
  • 22. Create Flow for PWM Out Click on the each Inject button to change LED bright
  • 24. Create Flow for Binary Sensor Input • Add a rpi-gpio node (in part “Raspberry Pi”) and double click to change pin number and resistor. Pin 11 no resistor
  • 25. Create Flow for Binary Sensor Input • Add a function node and double click to edit function with 2 output. Set function name and output
  • 26. Create Flow for Digital Out • Add a rpi-gpio node (in part “Raspberry Pi”) and double click to change pin number. Pin 16 Digital Output Mode
  • 27. Create Flow for Binary Sensor Input Add debug node and wiring node and click deploy
  • 29. Special Input Interface #Open new Putty to connect R-Pi 10.10.11.X using SSH! User : pi! Password : raspberry! ! pi@thethingbox$ls /sys/bus/w1/devices! ! ! ! ! ! - Copy the number (Sensor ID) in rectangular for use with Node- RED! ! pi@thethingbox$exit!
  • 30. Create Flow for 1-Wire Bus • Add a inject, debug nodes and change parameter of inject node, by double click
  • 31. Create Flow for 1-Wire Bus • Change inject node properties • Payload : blank, Topic : Sensor ID, Name : DS1820 , Repeat : 30 Second Changed Properties
  • 32. Create Flow for 1-Wire Bus • Add a 1-Wire and change node (in part “function”) and double click on change node. • Set retain last value of sensor data Retain last value
  • 33. Create Flow for 1-Wire Bus • Add a mqtt node (in part “output”) and double click to change mqtt broker, and Topic. Set mqtt broker
  • 34. Create Flow for 1-Wire Bus Wiring node and click deploy
  • 35. Create Flow for 1-Wire Bus Monitor Temperature with MyMQTT App on Android