2/16/2016 Makeblock Academy | Getting started with Raspberry Pi
http://learn.makeblock.cc/s4rpi/ 1/8
Getting started
Suggested ReadingWhat is Raspberry Pi?How to install operating system images on Raspberry Pi?step 1. Wiring
Be sure you have installed operaring system images on Raspberry PI and connectyour Raspberry Pi to the internet via ethernet cable . Slide the Me Shield for RaspberryPi on your Raspberry Pi, and connect the shield to Me Baseboard Port4(Leonardo) orMakeblock Orion Port5(Uno). Next, power on the Me Baseboard or Makeblock Orionwith 12V power supply. (the shield already feed 5V voltage to raspberry, so it is notnecessary to power raspberry seperately)
2/16/2016 Makeblock Academy | Getting started with Raspberry Pi
http://learn.makeblock.cc/s4rpi/ 2/8
Step 2, log into Raspberry
If you are under windows, then you need to download a free SSHsoftware(Windows) here. Then click button “Quick Connect” to log in. Type the IP, username, password(user name:pi, passward:raspberry).
2/16/2016 Makeblock Academy | Getting started with Raspberry Pi
http://learn.makeblock.cc/s4rpi/ 3/8
2/16/2016 Makeblock Academy | Getting started with Raspberry Pi
http://learn.makeblock.cc/s4rpi/ 4/8
If you are on Mac or linux, then open a terminal with samba service installed onraspberry pi. Type the following command into the terminal window.
ssh pi@<yourrpiip>
more useful document http://www.raspberrypi.org/documentation/remoteaccess/ssh/unix.md.
Step3, Disable the occupied hardware serial ttyAMA0.
make sure that pyserial is installed on your rip, if not type the following command and
2/16/2016 Makeblock Academy | Getting started with Raspberry Pi
http://learn.makeblock.cc/s4rpi/ 5/8
wait the process done.
sudo aptget install pythonserial
the raspberry occupied hardware serial ttyAMA0 for console, we need to disable thisfeature and use the serial to communicate with our baseboard follow the blog below todo the work http://www.irrational.net/2012/04/19/usingtheraspberrypisserialport/
Step4, Clone the RaspberryShield Repository
Type the following command to clone the RaspberryShield repository
git clone https://github.com/Makeblockofficial/RaspberryShield.git
2/16/2016 Makeblock Academy | Getting started with Raspberry Pi
http://learn.makeblock.cc/s4rpi/ 6/8
Step5, Upload an Arduino sketch to Me Baseboard or Makeblock Orion. Moredetails http://app.makeblock.cc/firmware/
Step6, Connect a motor to port M1 on Makeblock Orion. make sure that baseboardis powered by dc adapter (the motor driver chip is powered by external power)
2/16/2016 Makeblock Academy | Getting started with Raspberry Pi
http://learn.makeblock.cc/s4rpi/ 7/8
Step7, Run the demo script on raspberry
go to the directory where the demo script located and run the demodcmotor.pycd RaspberryShieldcd serialdemopython demo_dcmotor.py
2/16/2016 Makeblock Academy | Getting started with Raspberry Pi
http://learn.makeblock.cc/s4rpi/ 8/8
Everything should be fine here, enjoy it!