SlideShare a Scribd company logo
1 of 3
Download to read offline
1© 2015 All Rights Reserved. iRobot, Roomba and Create are registered trademarks of iRobot Corporation.
Arduino is a trademark of Arduino SA. Raspberry Pi is a trademark of the Raspberry Pi Foundation.
1.	 Procure the following parts: 2.	 Plug the Create 2 into its charger, so that it will be ready for
experimentation one the Raspberry Pi is ready to go.
Raspberry Pi Tutorial
a.	 Raspberry Pi model A. With the camera, it turns
	 out there is just enough headroom in the on-board 		
	 thermal resettable fuse to run directly off the serial 		
	 connector. If you use a model B, you will have to get 		
	 power elsewhere. A model A+ or B+ should work, but
	 we haven’t tried, yet!
b.	 SD card (4GB or larger) with Raspbian installed.
Raspbian and directions for downloading are available
here: http://goo.gl/HXkl7. Alternatively, some vendors
sell SD cards with the operating system pre-installed.
c.	 Raspberry Pi camera board. This is optional.
d.	 USB to WiFi module. We have had luck with the D-Link
DWA-121, but others could work. Check the Raspberry
Pi verified peripherals list to be sure: http://goo.
gl/40Kvo
e.	 5V to 3.3V level converter. Since the Create®
2
communicates with 5V serial, and the Raspberry Pi
communicates at 3.3V, we need to convert levels so as
not to damage any hardware. If you haven’t already built
one, [[Create®
2 Serial to 3.3V Logic| please do so.]]
f.	 USB micro B male cable. We used an “up-angle” 		
	 connector to save space – for example, part number CAA-	
	 90UMICB-03M from L-com.
g.	 A switching DC to DC converter. The Raspberry Pi requires
a regulated 5V input, but the Create 2 serial port provides
battery voltage. We use a switching converter because
they are much more efficient than a linear converter. If you
use a linear converter, the thermal resettable fuse on the
robot’s serial port may trip. We used the UBEC DC/DC
Buck converter, part number 1385 from Adafruit. Any buck
converter will work, as long as it can supply at least 1A at
5V, and can handle up to 21V on its input.
h.	 Hook-up wire; 22 through 30 AWG should be fine.
i.	 Optional: 4-40 x 5/8” or M3 x 16 mm standoff to support
prototyping board if installing above Raspberry Pi.
j.	 Optional: at least three 4-40 x ¼” or M3 x 6 mm standoffs
to support the Raspberry Pi.
k.	 A powered USB hub, USB keyboard, USB mouse, and
monitor (HDMI or composite) for initial setup.
l.	 A program for connecting to your Raspberry Pi via SSH.
On Windows, we recommend PuTTY, which can be found
at http://goo.gl/uPmC .
3.	 Install the SD card with Raspbian into the Raspberry Pi.
4.	 Plug the keyboard, mouse, WiFi to USB dongle, and USB A
to Micro B cable into the powered hub.
5.	 Plug the powered hub into the Raspberry Pi USB A port.
6.	 Plug the Raspberry Pi into your monitor.
7.	 If you are using a Raspberry Pi Camera, install it now.
8.	 Finally, plug the micro B connector into the Raspberry Pi.
It should boot. If it does not boot, you may need a different
hub, or one that can supply more power to the Raspberry Pi.
9.	 If this is the first time booting the Raspberry Pi, raspi-config
will run. If not, log in and then run raspi-config.
10.	 Select the options you desire; we suggest expand rootfs,
configure_keyboard, change pass, change timezone,
enable SSH, and enable camera (if desired). When
complete, the Raspberry Pi may reboot. If so, log back
into the Raspberry Pi. The default username is pi and
the default password is raspberry.
11.	 Type “startx” (without quotes) to start an X-Windows
session. Double-click on the WiFi configuration tool and
get the Raspberry Pi on your network. Take note of its IP
address; you’ll need it later.
12.	 Log out of the X session by clicking the red logout button
in the bottom right hand corner of the interface, and then
select “Logout” again.
13.	 Disable the console port on the Raspberry Pi. This is so
that you can use the on-board serial port to control Create®
2. We used the following tutorial: http://goo.gl/cJCrc . If
you use that tutorial, skip the step at the end for testing;
we’ll get to that later.
14.	 We use Python to control Create 2 via the serial port.
To install the python serial module, type “sudo apt-get -y
install python-pip” (without quotes); once that completes,
then type “sudo pip install pyserial” (again, without quotes).
15.	 We will also take advantage of the general purpose
input and output pins (GPIO) with Python. To install this
capability, type “sudo apt-get -y install python-rpi”
(without quotes).
You will need access to the serial port connector; either remove the deco cover or perform the [[Create®
2 Deco Cover Modification]].
You will also need to modify the bin to hold the Raspberry Pi; see [[Create®
2 Bin Modification]] for instructions. This tutorial also
assumes that you have built a 5V to 3.3V logic level shifter as in [[Create ®
2 Serial to 3.3V Logic | this tutorial]].
2© 2015 All Rights Reserved. iRobot, Roomba and Create are registered trademarks of iRobot Corporation.
Arduino is a trademark of Arduino SA. Raspberry Pi is a trademark of the Raspberry Pi Foundation.
16.	 If you are interested in setting up the camera for remote
streaming over HTTP, we recommend the following tutorial:
http://goo.gl/vIB7xu
17.	 Time to get the rest of the hardware ready! First, power down
the Raspberry Pi by typing “sudo halt” (without quotes) and
wait until the machine tells you it is safe to remove power.
Then, disconnect all of the peripherals from the Raspberry
Pi. Leave the SD card in place. Remove the WiFi to USB
module from the hub and install it in the USB A slot in the
Raspberry Pi.
18.	 Connect the input wires of the buck converter as directed in
the level shifter tutorial.
19.	 Cut the USB A to USB Micro B cable in half and put aside
the A side for later projects. Cut away the insulation and
shield. You may also cut the white and green wires, as they
are not used to power the Raspberry Pi. Connect the red
wire to the positive voltage output from the buck converter,
and the black wire to the zero voltage (ground reference).
20.	 Connect the Raspberry Pi to the level shifting circuit, either
using a ribbon cable or 0.1” pitch pin header.
21.	 Re-install the Raspberry Pi camera. Optionally, plug the
Raspberry Pi back into the monitor.
22.	 Time to fire things up! Plug the mini-DIN cable into the
Create 2. Wait about a minute, and then SSH into the
IP address you wrote down in step 11. If you can’t seem
to connect to the Raspberry Pi, plugging it into the monitor
should help to figure out what is wrong.
23.	 Install minicom by typing “sudo apt-get install minicom”
(without quotes). To see if the serial port is working, type
the following command: “minicom -b 115200 -o -D /dev/
ttyAMA0” (without quotes). Text should begin scrolling
by regarding the charging state of the Create®
2. If not,
you may try a factory reset of the robot, which can be
performed by pressing and holding the “Spot” and “Dock”
buttons on the robot for ten seconds, and then releasing.
If no text appears after this, something is wrong with your
hardware (probably on the prototyping board). Once text
is scrolling, press {Control} + {A} and then {X} to exit
minicom.
24.	 Before installing the Raspberry Pi in the Create 2, let’s be
sure that both directions are working on the serial port.
Create a directory called “Roomba” by typing “mkdir
Roomba” and then change to that directory by typing
“cd Roomba” (without quotes in all examples). Create
keepalive.py and song_start.py, linked here. (To create
files, you’ll need to use an editor, like “nano”. For example,
to create keepalive.py, type “nano keepalive.py” (without
quotes), enter the contents of the file as linked above, and
then save and quit by pressing {Control} + {X}, then {Y},
then {Enter}.)
3© 2015 All Rights Reserved. iRobot, Roomba and Create are registered trademarks of iRobot Corporation.
Arduino is a trademark of Arduino SA. Raspberry Pi is a trademark of the Raspberry Pi Foundation.

More Related Content

What's hot

Getting Started with Embedded Python: MicroPython and CircuitPython
Getting Started with Embedded Python: MicroPython and CircuitPythonGetting Started with Embedded Python: MicroPython and CircuitPython
Getting Started with Embedded Python: MicroPython and CircuitPythonAyan Pahwa
 
Usb dongle z wave.me manual
Usb dongle z wave.me manualUsb dongle z wave.me manual
Usb dongle z wave.me manualDomotica daVinci
 
PyCon_India_2017_MicroPython_Ayan
PyCon_India_2017_MicroPython_AyanPyCon_India_2017_MicroPython_Ayan
PyCon_India_2017_MicroPython_AyanAyan Pahwa
 
DEVOXX Let's Get Physical: I/O Programming with Java on the Raspberry Pi usin...
DEVOXX Let's Get Physical: I/O Programming with Java on the Raspberry Pi usin...DEVOXX Let's Get Physical: I/O Programming with Java on the Raspberry Pi usin...
DEVOXX Let's Get Physical: I/O Programming with Java on the Raspberry Pi usin...savageautomate
 
Usb dongle z wave.me with windows software manual
Usb dongle z wave.me with windows software manualUsb dongle z wave.me with windows software manual
Usb dongle z wave.me with windows software manualDomotica daVinci
 
OzKFest 2015 - (Solid) State of the Nation
OzKFest 2015 - (Solid) State of the NationOzKFest 2015 - (Solid) State of the Nation
OzKFest 2015 - (Solid) State of the Nationapple2europlus
 
Controlling the internet of things using wearable tech - Design+Code Day; Ara...
Controlling the internet of things using wearable tech - Design+Code Day; Ara...Controlling the internet of things using wearable tech - Design+Code Day; Ara...
Controlling the internet of things using wearable tech - Design+Code Day; Ara...ArabNet ME
 
How to connect raspberry pi to laptop display: 4 steps
How to connect raspberry pi to laptop display: 4 stepsHow to connect raspberry pi to laptop display: 4 steps
How to connect raspberry pi to laptop display: 4 stepsArvind Arasu
 
Parallel Rendering of Webpages
Parallel Rendering of WebpagesParallel Rendering of Webpages
Parallel Rendering of WebpagesLangtech
 
Arm cross development_with_eclipse
Arm cross development_with_eclipseArm cross development_with_eclipse
Arm cross development_with_eclipseWalmar de Paula
 
[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218CAVEDU Education
 
Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !Dobrica Pavlinušić
 
Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101Pance Cavkovski
 
Using arduino and raspberry pi for internet of things
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
 
Tutorial1: mbed開發快速上手
Tutorial1: mbed開發快速上手Tutorial1: mbed開發快速上手
Tutorial1: mbed開發快速上手艾鍗科技
 
Products worked on
Products worked onProducts worked on
Products worked onprajwal_s
 
Interfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the WorldInterfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the WorldOmer Kilic
 
Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi
Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry PiAdafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi
Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry PiImad Rhali
 

What's hot (20)

Getting Started with Embedded Python: MicroPython and CircuitPython
Getting Started with Embedded Python: MicroPython and CircuitPythonGetting Started with Embedded Python: MicroPython and CircuitPython
Getting Started with Embedded Python: MicroPython and CircuitPython
 
Usb dongle z wave.me manual
Usb dongle z wave.me manualUsb dongle z wave.me manual
Usb dongle z wave.me manual
 
PyCon_India_2017_MicroPython_Ayan
PyCon_India_2017_MicroPython_AyanPyCon_India_2017_MicroPython_Ayan
PyCon_India_2017_MicroPython_Ayan
 
IPC2 - Block Diagram
IPC2 - Block DiagramIPC2 - Block Diagram
IPC2 - Block Diagram
 
DEVOXX Let's Get Physical: I/O Programming with Java on the Raspberry Pi usin...
DEVOXX Let's Get Physical: I/O Programming with Java on the Raspberry Pi usin...DEVOXX Let's Get Physical: I/O Programming with Java on the Raspberry Pi usin...
DEVOXX Let's Get Physical: I/O Programming with Java on the Raspberry Pi usin...
 
Usb dongle z wave.me with windows software manual
Usb dongle z wave.me with windows software manualUsb dongle z wave.me with windows software manual
Usb dongle z wave.me with windows software manual
 
OzKFest 2015 - (Solid) State of the Nation
OzKFest 2015 - (Solid) State of the NationOzKFest 2015 - (Solid) State of the Nation
OzKFest 2015 - (Solid) State of the Nation
 
Introduction to pi
Introduction to piIntroduction to pi
Introduction to pi
 
Controlling the internet of things using wearable tech - Design+Code Day; Ara...
Controlling the internet of things using wearable tech - Design+Code Day; Ara...Controlling the internet of things using wearable tech - Design+Code Day; Ara...
Controlling the internet of things using wearable tech - Design+Code Day; Ara...
 
How to connect raspberry pi to laptop display: 4 steps
How to connect raspberry pi to laptop display: 4 stepsHow to connect raspberry pi to laptop display: 4 steps
How to connect raspberry pi to laptop display: 4 steps
 
Parallel Rendering of Webpages
Parallel Rendering of WebpagesParallel Rendering of Webpages
Parallel Rendering of Webpages
 
Arm cross development_with_eclipse
Arm cross development_with_eclipseArm cross development_with_eclipse
Arm cross development_with_eclipse
 
[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218
 
Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !
 
Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101
 
Using arduino and raspberry pi for internet of things
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 things
 
Tutorial1: mbed開發快速上手
Tutorial1: mbed開發快速上手Tutorial1: mbed開發快速上手
Tutorial1: mbed開發快速上手
 
Products worked on
Products worked onProducts worked on
Products worked on
 
Interfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the WorldInterfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the World
 
Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi
Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry PiAdafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi
Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi
 

Similar to Raspberry pi tutorial

Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIDevelop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIEnablex io
 
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdfamrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdfamrapalibuildersreviews
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Mandeesh Singh
 
Raspberry with laptop
Raspberry with laptopRaspberry with laptop
Raspberry with laptopProf Kingstan
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Mandeesh Singh
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreBenjamin Moore
 
Bulb Control using Web App with Raspberry Pi
Bulb Control using Web App with Raspberry Pi Bulb Control using Web App with Raspberry Pi
Bulb Control using Web App with Raspberry Pi Sanjay Kumar
 
Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlPradip Bhandari
 
Banana pi bpi-m1 user manual
Banana pi  bpi-m1 user manualBanana pi  bpi-m1 user manual
Banana pi bpi-m1 user manualwang lion
 
Building your own RC Car with Raspberry Pi
Building your own RC Car with Raspberry PiBuilding your own RC Car with Raspberry Pi
Building your own RC Car with Raspberry PiJeff Prestes
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to RaspberrypiIheb Ben Salem
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureSyed Umaid Ahmed
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab fileNitesh Dubey
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PICliff Samuels Jr.
 
manual_2020_Cyber Physical System.pdf
manual_2020_Cyber Physical System.pdfmanual_2020_Cyber Physical System.pdf
manual_2020_Cyber Physical System.pdfssuserc5ee4c
 
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshRaspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshTE4P
 

Similar to Raspberry pi tutorial (20)

Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIDevelop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
 
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdfamrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014
 
Raspberry with laptop
Raspberry with laptopRaspberry with laptop
Raspberry with laptop
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMoore
 
Bulb Control using Web App with Raspberry Pi
Bulb Control using Web App with Raspberry Pi Bulb Control using Web App with Raspberry Pi
Bulb Control using Web App with Raspberry Pi
 
Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin Control
 
Banana pi bpi-m1 user manual
Banana pi  bpi-m1 user manualBanana pi  bpi-m1 user manual
Banana pi bpi-m1 user manual
 
Building your own RC Car with Raspberry Pi
Building your own RC Car with Raspberry PiBuilding your own RC Car with Raspberry Pi
Building your own RC Car with Raspberry Pi
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to Raspberrypi
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory Lecture
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab file
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
 
manual_2020_Cyber Physical System.pdf
manual_2020_Cyber Physical System.pdfmanual_2020_Cyber Physical System.pdf
manual_2020_Cyber Physical System.pdf
 
Pilot Raspeberry pi 3g user manual
Pilot Raspeberry pi 3g user manualPilot Raspeberry pi 3g user manual
Pilot Raspeberry pi 3g user manual
 
Capstone_Project.ppt
Capstone_Project.pptCapstone_Project.ppt
Capstone_Project.ppt
 
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshRaspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
 
Ex.no1
Ex.no1Ex.no1
Ex.no1
 

Recently uploaded

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Raspberry pi tutorial

  • 1. 1© 2015 All Rights Reserved. iRobot, Roomba and Create are registered trademarks of iRobot Corporation. Arduino is a trademark of Arduino SA. Raspberry Pi is a trademark of the Raspberry Pi Foundation. 1. Procure the following parts: 2. Plug the Create 2 into its charger, so that it will be ready for experimentation one the Raspberry Pi is ready to go. Raspberry Pi Tutorial a. Raspberry Pi model A. With the camera, it turns out there is just enough headroom in the on-board thermal resettable fuse to run directly off the serial connector. If you use a model B, you will have to get power elsewhere. A model A+ or B+ should work, but we haven’t tried, yet! b. SD card (4GB or larger) with Raspbian installed. Raspbian and directions for downloading are available here: http://goo.gl/HXkl7. Alternatively, some vendors sell SD cards with the operating system pre-installed. c. Raspberry Pi camera board. This is optional. d. USB to WiFi module. We have had luck with the D-Link DWA-121, but others could work. Check the Raspberry Pi verified peripherals list to be sure: http://goo. gl/40Kvo e. 5V to 3.3V level converter. Since the Create® 2 communicates with 5V serial, and the Raspberry Pi communicates at 3.3V, we need to convert levels so as not to damage any hardware. If you haven’t already built one, [[Create® 2 Serial to 3.3V Logic| please do so.]] f. USB micro B male cable. We used an “up-angle” connector to save space – for example, part number CAA- 90UMICB-03M from L-com. g. A switching DC to DC converter. The Raspberry Pi requires a regulated 5V input, but the Create 2 serial port provides battery voltage. We use a switching converter because they are much more efficient than a linear converter. If you use a linear converter, the thermal resettable fuse on the robot’s serial port may trip. We used the UBEC DC/DC Buck converter, part number 1385 from Adafruit. Any buck converter will work, as long as it can supply at least 1A at 5V, and can handle up to 21V on its input. h. Hook-up wire; 22 through 30 AWG should be fine. i. Optional: 4-40 x 5/8” or M3 x 16 mm standoff to support prototyping board if installing above Raspberry Pi. j. Optional: at least three 4-40 x ¼” or M3 x 6 mm standoffs to support the Raspberry Pi. k. A powered USB hub, USB keyboard, USB mouse, and monitor (HDMI or composite) for initial setup. l. A program for connecting to your Raspberry Pi via SSH. On Windows, we recommend PuTTY, which can be found at http://goo.gl/uPmC . 3. Install the SD card with Raspbian into the Raspberry Pi. 4. Plug the keyboard, mouse, WiFi to USB dongle, and USB A to Micro B cable into the powered hub. 5. Plug the powered hub into the Raspberry Pi USB A port. 6. Plug the Raspberry Pi into your monitor. 7. If you are using a Raspberry Pi Camera, install it now. 8. Finally, plug the micro B connector into the Raspberry Pi. It should boot. If it does not boot, you may need a different hub, or one that can supply more power to the Raspberry Pi. 9. If this is the first time booting the Raspberry Pi, raspi-config will run. If not, log in and then run raspi-config. 10. Select the options you desire; we suggest expand rootfs, configure_keyboard, change pass, change timezone, enable SSH, and enable camera (if desired). When complete, the Raspberry Pi may reboot. If so, log back into the Raspberry Pi. The default username is pi and the default password is raspberry. 11. Type “startx” (without quotes) to start an X-Windows session. Double-click on the WiFi configuration tool and get the Raspberry Pi on your network. Take note of its IP address; you’ll need it later. 12. Log out of the X session by clicking the red logout button in the bottom right hand corner of the interface, and then select “Logout” again. 13. Disable the console port on the Raspberry Pi. This is so that you can use the on-board serial port to control Create® 2. We used the following tutorial: http://goo.gl/cJCrc . If you use that tutorial, skip the step at the end for testing; we’ll get to that later. 14. We use Python to control Create 2 via the serial port. To install the python serial module, type “sudo apt-get -y install python-pip” (without quotes); once that completes, then type “sudo pip install pyserial” (again, without quotes). 15. We will also take advantage of the general purpose input and output pins (GPIO) with Python. To install this capability, type “sudo apt-get -y install python-rpi” (without quotes). You will need access to the serial port connector; either remove the deco cover or perform the [[Create® 2 Deco Cover Modification]]. You will also need to modify the bin to hold the Raspberry Pi; see [[Create® 2 Bin Modification]] for instructions. This tutorial also assumes that you have built a 5V to 3.3V logic level shifter as in [[Create ® 2 Serial to 3.3V Logic | this tutorial]].
  • 2. 2© 2015 All Rights Reserved. iRobot, Roomba and Create are registered trademarks of iRobot Corporation. Arduino is a trademark of Arduino SA. Raspberry Pi is a trademark of the Raspberry Pi Foundation. 16. If you are interested in setting up the camera for remote streaming over HTTP, we recommend the following tutorial: http://goo.gl/vIB7xu 17. Time to get the rest of the hardware ready! First, power down the Raspberry Pi by typing “sudo halt” (without quotes) and wait until the machine tells you it is safe to remove power. Then, disconnect all of the peripherals from the Raspberry Pi. Leave the SD card in place. Remove the WiFi to USB module from the hub and install it in the USB A slot in the Raspberry Pi. 18. Connect the input wires of the buck converter as directed in the level shifter tutorial. 19. Cut the USB A to USB Micro B cable in half and put aside the A side for later projects. Cut away the insulation and shield. You may also cut the white and green wires, as they are not used to power the Raspberry Pi. Connect the red wire to the positive voltage output from the buck converter, and the black wire to the zero voltage (ground reference). 20. Connect the Raspberry Pi to the level shifting circuit, either using a ribbon cable or 0.1” pitch pin header. 21. Re-install the Raspberry Pi camera. Optionally, plug the Raspberry Pi back into the monitor. 22. Time to fire things up! Plug the mini-DIN cable into the Create 2. Wait about a minute, and then SSH into the IP address you wrote down in step 11. If you can’t seem to connect to the Raspberry Pi, plugging it into the monitor should help to figure out what is wrong. 23. Install minicom by typing “sudo apt-get install minicom” (without quotes). To see if the serial port is working, type the following command: “minicom -b 115200 -o -D /dev/ ttyAMA0” (without quotes). Text should begin scrolling by regarding the charging state of the Create® 2. If not, you may try a factory reset of the robot, which can be performed by pressing and holding the “Spot” and “Dock” buttons on the robot for ten seconds, and then releasing. If no text appears after this, something is wrong with your hardware (probably on the prototyping board). Once text is scrolling, press {Control} + {A} and then {X} to exit minicom. 24. Before installing the Raspberry Pi in the Create 2, let’s be sure that both directions are working on the serial port. Create a directory called “Roomba” by typing “mkdir Roomba” and then change to that directory by typing “cd Roomba” (without quotes in all examples). Create keepalive.py and song_start.py, linked here. (To create files, you’ll need to use an editor, like “nano”. For example, to create keepalive.py, type “nano keepalive.py” (without quotes), enter the contents of the file as linked above, and then save and quit by pressing {Control} + {X}, then {Y}, then {Enter}.)
  • 3. 3© 2015 All Rights Reserved. iRobot, Roomba and Create are registered trademarks of iRobot Corporation. Arduino is a trademark of Arduino SA. Raspberry Pi is a trademark of the Raspberry Pi Foundation.