Exploring raspberry pi serial port

Sudar Muthu
Sudar MuthuIndependent Consultant
Exploring Raspberry Pi’s Serial
Port
Sudar (@sudarmuthu)
http://hardwarefun.com
https://github.com/sudar
I am going to assume
• You know what is Raspberry Pi
• You know what is Arduino
• You know what is a serial Port
Raspberry Pi has a serial Port
Using Raspberry Pi’s Serial Port
• To login via serial console
• To communicate with other devices like
Arduino
Raspberry Pi’s pins or only 3.3V
compatible.
Don’t connect 5V directly
You will brick your Raspberry Pi
Using Serial port to log into RPi
•
•
•
•

You need a USB-to-serial adapter
If not 3.3V then you need a logic level convertor
Connect Tx of RPi to Tx of adapter and Rx to Rx
Power up RPi and you can login using the serial
console.
• If you don’t have a USB-to-Serial adapter, then
you can use Arduino http://hardwarefun.com/tutorials/using-arduinoas-a-bridge-to-connect-serial-devices-with-pc
Using RPi’s Serial Port to communicate
with devices
• By default this is disabled.
• You need to enable it.
Usehttps://github.com/lurch/rpi-serial-console
• Connect Rx of RPi to Tx of your device (Arduino) and Tx
of RPi to Rx of your device
• Use a simple serial echo program https://github.com/sudar/arduino-roboticsworkshop/tree/master/Serial/two_arduino_serial
• You can use screen in Rpi
• Profit 
Thank You
1 of 8

Recommended

Making arduino-talk-with-android-using-amarino by
Making arduino-talk-with-android-using-amarinoMaking arduino-talk-with-android-using-amarino
Making arduino-talk-with-android-using-amarinoSudar Muthu
3.8K views11 slides
Getting started with arduino workshop by
Getting started with arduino workshopGetting started with arduino workshop
Getting started with arduino workshopSudar Muthu
3.6K views31 slides
WordPress Developer Tools to increase productivity by
WordPress Developer Tools to increase productivityWordPress Developer Tools to increase productivity
WordPress Developer Tools to increase productivitySudar Muthu
2.1K views23 slides
Unit testing in php by
Unit testing in phpUnit testing in php
Unit testing in phpSudar Muthu
2.1K views19 slides
Using arduino and raspberry pi for internet of things by
Using arduino and raspberry pi for internet of thingsUsing arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsSudar Muthu
7.4K views69 slides
Having fun with hardware by
Having fun with hardwareHaving fun with hardware
Having fun with hardwareSudar Muthu
2.6K views12 slides

More Related Content

More from Sudar Muthu

Unit testing for WordPress by
Unit testing for WordPressUnit testing for WordPress
Unit testing for WordPressSudar Muthu
5.2K views27 slides
How arduino helped me in life by
How arduino helped me in lifeHow arduino helped me in life
How arduino helped me in lifeSudar Muthu
2.8K views16 slides
Python in raspberry pi by
Python in raspberry piPython in raspberry pi
Python in raspberry piSudar Muthu
8K views25 slides
Hack 101 at IIT Kanpur by
Hack 101 at IIT KanpurHack 101 at IIT Kanpur
Hack 101 at IIT KanpurSudar Muthu
1.7K views56 slides
PureCSS open hack 2013 by
PureCSS open hack 2013PureCSS open hack 2013
PureCSS open hack 2013Sudar Muthu
3.7K views23 slides
Pig workshop by
Pig workshopPig workshop
Pig workshopSudar Muthu
8.1K views79 slides

More from Sudar Muthu(20)

Unit testing for WordPress by Sudar Muthu
Unit testing for WordPressUnit testing for WordPress
Unit testing for WordPress
Sudar Muthu5.2K views
How arduino helped me in life by Sudar Muthu
How arduino helped me in lifeHow arduino helped me in life
How arduino helped me in life
Sudar Muthu2.8K views
Python in raspberry pi by Sudar Muthu
Python in raspberry piPython in raspberry pi
Python in raspberry pi
Sudar Muthu8K views
Hack 101 at IIT Kanpur by Sudar Muthu
Hack 101 at IIT KanpurHack 101 at IIT Kanpur
Hack 101 at IIT Kanpur
Sudar Muthu1.7K views
PureCSS open hack 2013 by Sudar Muthu
PureCSS open hack 2013PureCSS open hack 2013
PureCSS open hack 2013
Sudar Muthu3.7K views
Arduino Robotics workshop day2 by Sudar Muthu
Arduino Robotics workshop day2Arduino Robotics workshop day2
Arduino Robotics workshop day2
Sudar Muthu9.5K views
Arduino Robotics workshop Day1 by Sudar Muthu
Arduino Robotics workshop Day1Arduino Robotics workshop Day1
Arduino Robotics workshop Day1
Sudar Muthu12.8K views
Hands on Hadoop and pig by Sudar Muthu
Hands on Hadoop and pigHands on Hadoop and pig
Hands on Hadoop and pig
Sudar Muthu2.6K views
Lets make robots by Sudar Muthu
Lets make robotsLets make robots
Lets make robots
Sudar Muthu2.7K views
Capabilities of Arduino (including Due) by Sudar Muthu
Capabilities of Arduino (including Due)Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)
Sudar Muthu2.8K views
Controlling robots using javascript by Sudar Muthu
Controlling robots using javascriptControlling robots using javascript
Controlling robots using javascript
Sudar Muthu7K views
Picture perfect hacks with flickr API by Sudar Muthu
Picture perfect hacks with flickr APIPicture perfect hacks with flickr API
Picture perfect hacks with flickr API
Sudar Muthu2.7K views
Capabilities of Arduino by Sudar Muthu
Capabilities of ArduinoCapabilities of Arduino
Capabilities of Arduino
Sudar Muthu5.7K views
Introduction to node.js GDD by Sudar Muthu
Introduction to node.js GDDIntroduction to node.js GDD
Introduction to node.js GDD
Sudar Muthu7.3K views
Using Javascript in today's world by Sudar Muthu
Using Javascript in today's worldUsing Javascript in today's world
Using Javascript in today's world
Sudar Muthu2.3K views
Hack u yql-iit-delhi by Sudar Muthu
Hack u yql-iit-delhiHack u yql-iit-delhi
Hack u yql-iit-delhi
Sudar Muthu993 views
A slightly advanced introduction to node.js by Sudar Muthu
A slightly advanced introduction to node.jsA slightly advanced introduction to node.js
A slightly advanced introduction to node.js
Sudar Muthu10K views
YAP - HackU 2011 by Sudar Muthu
YAP - HackU 2011YAP - HackU 2011
YAP - HackU 2011
Sudar Muthu1.7K views

Recently uploaded

Attacking IoT Devices from a Web Perspective - Linux Day by
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day Simone Onofri
15 views68 slides
[2023] Putting the R! in R&D.pdf by
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdfEleanor McHugh
38 views127 slides
How the World's Leading Independent Automotive Distributor is Reinventing Its... by
How the World's Leading Independent Automotive Distributor is Reinventing Its...How the World's Leading Independent Automotive Distributor is Reinventing Its...
How the World's Leading Independent Automotive Distributor is Reinventing Its...NUS-ISS
15 views25 slides
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum... by
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...NUS-ISS
34 views35 slides
Data-centric AI and the convergence of data and model engineering: opportunit... by
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...Paolo Missier
34 views40 slides

Recently uploaded(20)

Attacking IoT Devices from a Web Perspective - Linux Day by Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri15 views
[2023] Putting the R! in R&D.pdf by Eleanor McHugh
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh38 views
How the World's Leading Independent Automotive Distributor is Reinventing Its... by NUS-ISS
How the World's Leading Independent Automotive Distributor is Reinventing Its...How the World's Leading Independent Automotive Distributor is Reinventing Its...
How the World's Leading Independent Automotive Distributor is Reinventing Its...
NUS-ISS15 views
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum... by NUS-ISS
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
NUS-ISS34 views
Data-centric AI and the convergence of data and model engineering: opportunit... by Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier34 views
Spesifikasi Lengkap ASUS Vivobook Go 14 by Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang35 views
Combining Orchestration and Choreography for a Clean Architecture by ThomasHeinrichs1
Combining Orchestration and Choreography for a Clean ArchitectureCombining Orchestration and Choreography for a Clean Architecture
Combining Orchestration and Choreography for a Clean Architecture
ThomasHeinrichs169 views
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors by sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab15 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software225 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi120 views
Black and White Modern Science Presentation.pptx by maryamkhalid2916
Black and White Modern Science Presentation.pptxBlack and White Modern Science Presentation.pptx
Black and White Modern Science Presentation.pptx
maryamkhalid291614 views
RADIUS-Omnichannel Interaction System by RADIUS
RADIUS-Omnichannel Interaction SystemRADIUS-Omnichannel Interaction System
RADIUS-Omnichannel Interaction System
RADIUS15 views
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb12 views
Perth MeetUp November 2023 by Michael Price
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023
Michael Price15 views
Special_edition_innovator_2023.pdf by WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2216 views
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze by NUS-ISS
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng TszeDigital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze
NUS-ISS19 views
Voice Logger - Telephony Integration Solution at Aegis by Nirmal Sharma
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma17 views
.conf Go 2023 - Data analysis as a routine by Splunk
.conf Go 2023 - Data analysis as a routine.conf Go 2023 - Data analysis as a routine
.conf Go 2023 - Data analysis as a routine
Splunk93 views

Exploring raspberry pi serial port

  • 1. Exploring Raspberry Pi’s Serial Port Sudar (@sudarmuthu) http://hardwarefun.com https://github.com/sudar
  • 2. I am going to assume • You know what is Raspberry Pi • You know what is Arduino • You know what is a serial Port
  • 3. Raspberry Pi has a serial Port
  • 4. Using Raspberry Pi’s Serial Port • To login via serial console • To communicate with other devices like Arduino
  • 5. Raspberry Pi’s pins or only 3.3V compatible. Don’t connect 5V directly You will brick your Raspberry Pi
  • 6. Using Serial port to log into RPi • • • • You need a USB-to-serial adapter If not 3.3V then you need a logic level convertor Connect Tx of RPi to Tx of adapter and Rx to Rx Power up RPi and you can login using the serial console. • If you don’t have a USB-to-Serial adapter, then you can use Arduino http://hardwarefun.com/tutorials/using-arduinoas-a-bridge-to-connect-serial-devices-with-pc
  • 7. Using RPi’s Serial Port to communicate with devices • By default this is disabled. • You need to enable it. Usehttps://github.com/lurch/rpi-serial-console • Connect Rx of RPi to Tx of your device (Arduino) and Tx of RPi to Rx of your device • Use a simple serial echo program https://github.com/sudar/arduino-roboticsworkshop/tree/master/Serial/two_arduino_serial • You can use screen in Rpi • Profit 