This Jump start assumes that you have a Raspberry Pi up and running and you are able to able to access the screen with the big Raspberry Pi showing on it and importantly it also has the Pi Store icon available on it as shown below:
If you have this skip down to the ‘Connect your Pi-Car up’ section. If not don’t worry there is loads of help you can start with our guide to getting up and running by clicking here.
If you do not really understand what a Pi-Car is then click here.
If you have the screen above showing but do not have the Pi Store logo showing on it, it is probably because you have a slightly older Operating System. To correct this double click on the LX Terminal icon and type in the following commands and press enter:
sudo apt-get update
This will get your Operating System up to date. This could take a few minutes and sometimes not much is printed to the screen but just wait for it. You now need to install the Pi Store on it:
sudo apt-get install pistore
Type in ‘Y’ when it asks you – it is telling you it is going to need some space to install the Pi-Store.
If you don’t want to use the Pi-Store you can try the Jump Start guide with four lines of Python.
Connect cable to radio controller – make sure that it is pushed in securely.
Connect cable to Raspberry Pi – make sure it is the right way round. On one side of the long black connector is a raised square this should be on the side facing the rest of the Raspberry Pi.
- Get what you need from the Pi Store
Next we need to use the Pi-Store which will download the Scratch and Python software needed to interact with the Pi-Car. Scratch is a tool that comes installed on the Raspberry Pi. It is a great way of learning programming without having to write lines of code as it is all done graphically.**
Double click on the Pi Store icon to bring up the Pi Store. This should show a screen like below:
Now you need to get hold of the Pi-Cars software. To do this type Pi-Cars in the search box at the top which should give you a Screen showing the Pi-Cars Software Tool Box like below.
Click on this and then click on the Free Download box as highlighted below:
You do need to have an account to download the application. If you already have a username and password for the Pi Store enter them here. If not don’t worry it is free to sign up – you do this by filling out a simple form.
You can either click on the register link on the Pi Store on the Raspberry Pi or sign up to the Pi-Store on your PC, phone or tablet if you find it easier as you it will send you an email that you have to confirm before your account is enabled.
Once you have signed in you can click on the Install link as highlighted in the screenshot below:
The Pi-Cars Software Tool Box should now download giving you a screen like below:
There may be a warning box that appears before this which you can click OK on. After the install you should have a screen like below:
If you click on Launch it will open up a document called a READ ME which explains what the Software Tool Box is. You can read this if you like, or ignore it as most people do and then come back to it later when you want to know more. Click on the cross at the top right to close the READ ME.
- Using the Scratchet to control your Pi-Car from Scratch
You should now see two new icons on the desktop:
Double click on the icon highlighted in the screen above which should launch Scratch and open up a file with some Scratch commands in it as shown in the screen below:
You should now be able to move your Pi-Car around by clicking on the arrow keys on your keyboard – space will stop the car moving. As you press the keys you will also see the numbers in the top right screen change from ’0′ to ’1′ as you press different arrows. All of them go to ’0′ as you press space. You should also see the blocks highlight as you press the arrow keys.
If you don’t understand what any of this means at the moment don’t worry you can start the Scratch Driving Lessons which will take you through what all the different steps mean.
Note that the Pi Store installs files into the following location: /usr/local/bin/indiecity/InstalledApps
Ed’s post note – when you shut down Scratch you will notice lots of text being printed out in a terminal window you can just shut this down.
PDF version of this article - Jump start – get your Pi-Car going with the Pi Store and Scratch _ Pi-Cars**Scratch makes it easy to program your own interactive stories, games, and animations — and share your creations on the web. As you create and share projects with Scratch, you learn to think creatively, reason systematically, and work collaboratively. Scratch is a project of the Lifelong Kindergarten group at the MIT Media Lab. It is available for free download from http://scratch.mit.edu