Getting Started Suggested Reading
Total Page:16
File Type:pdf, Size:1020Kb
2/16/2016 Makeblock Academy | Getting started with Raspberry Pi Getting started Suggested Reading What 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 connect your Raspberry Pi to the internet via ethernet cable . Slide the Me Shield for Raspberry Pi on your Raspberry Pi, and connect the shield to Me Baseboard Port4(Leonardo) or Makeblock Orion Port5(Uno). Next, power on the Me Baseboard or Makeblock Orion with 12V power supply. (the shield already feed 5V voltage to raspberry, so it is not necessary to power raspberry seperately) http://learn.makeblock.cc/s4rpi/ 1/8 2/16/2016 Makeblock Academy | Getting started with Raspberry Pi Step 2, log into Raspberry If you are under windows, then you need to download a free SSH software(Windows) here. Then click button “Quick Connect” to log in. Type the IP, user name, password(user name:pi, passward:raspberry). http://learn.makeblock.cc/s4rpi/ 2/8 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 If you are on Mac or linux, then open a terminal with samba service installed on raspberry pi. Type the following command into the terminal window. ssh pi@<yourrpiip> more useful document http://www.raspberrypi.org/documentation/remote access/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 http://learn.makeblock.cc/s4rpi/ 4/8 2/16/2016 Makeblock Academy | Getting started with Raspberry Pi wait the process done. sudo aptget install pythonserial the raspberry occupied hardware serial ttyAMA0 for console, we need to disable this feature and use the serial to communicate with our baseboard follow the blog below to do 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 http://learn.makeblock.cc/s4rpi/ 5/8 2/16/2016 Makeblock Academy | Getting started with Raspberry Pi Step5, Upload an Arduino sketch to Me Baseboard or Makeblock Orion. More details http://app.makeblock.cc/firmware/ Step6, Connect a motor to port M1 on Makeblock Orion. make sure that baseboard is powered by dc adapter (the motor driver chip is powered by external power) http://learn.makeblock.cc/s4rpi/ 6/8 2/16/2016 Makeblock Academy | Getting started with Raspberry Pi Step7, Run the demo script on raspberry go to the directory where the demo script located and run the demodcmotor.py cd RaspberryShield cd serialdemo python demo_dcmotor.py http://learn.makeblock.cc/s4rpi/ 7/8 2/16/2016 Makeblock Academy | Getting started with Raspberry Pi Everything should be fine here, enjoy it! http://learn.makeblock.cc/s4rpi/ 8/8.