Lesson 1 – Introduction and Setup of the Raspberry Pi

Study Videos

Setup

  1. Before we get started with the Raspberry Pi and Sense HAT there’s a bit of setup work required.
  2. We would also recommend that you go through the videos listed above to understand a bit more about the Raspberry Pi and the Sense HAT.
  3. You will need to be comfortable working with Windows and formatting of drives. Familiarity with Linux will help (Since Raspbian is Linux based).
  4. You will need to download some software that allows us to connect to the Raspberry Pi from our desktop or laptop.
  5. Clicking on the each of the links above opens them up in a new window
  6. Here’s the steps you will need to follow to get setup for the rest of the tutorials –
    1. Step 1 – Read Up & familiarize
      1. We’ve provided a few tutorials which you might want to read to get your Raspberry Pi up and running.
        1. https://www.raspberrypi.org/documentation/installation/installing-images/README.md
        2. https://thepi.io/how-to-install-raspbian-on-the-raspberry-pi/
        3. https://www.lifehacker.com.au/2016/06/the-always-up-to-date-guide-to-setting-up-your-raspberry-pi/
    2. Step 2 – Download & Install
      1. Download the Raspberry Pi Operating System called Raspbian to your disk – Raspbian Download
      2. Consider using either of the following tools to write the Raspbian image to your SD card. –
        1. Win32 Disk Imager – https://sourceforge.net/projects/win32diskimager/
        2. Etcher – https://etcher.io/
    3. Step 3 – Setup the Pi, connect up the peripherals

      1. Connect up the Raspberry Pi to your monitor, connect up the keyboard and mouse as well.
      2. Connect up the Raspberry Pi to mains power using the 2.5 A power adaptor or using your USB cable connected to your desktop/laptop.
      3. Power on the Raspberry Pi, it should boot up and make sure you can login to the desktop.
      4. You can use the monitor to work on the Raspberry Pi using it as a replacement desktop or in our case an embedded programming platform.
      5. You can also work with the Pi in a headless mode (without a monitor). Steps below provide details on the approach.
    4. Step 4 – WiFi connectivity

      1. Configure your Raspberry Pi to connect to the wireless network.
      2. Use the wireless network icon on the right hand side top bar to configure it to the wireless network
    5. Step 5 – Remotely connecting to the Raspberry Pi

      1. Get the IP address of your Raspberry Pi by connecting it to the monitor.
      2. Open up a “Terminal” window. Run the command, “ipconfig” and obtain the IP address for your Raspberry Pi.
      3. You will need the IP address of the Raspberry Pi to if you are keen to work remotely and connect to it over the network.
    6. Step 6 – VNC into the Raspberry Pi

      1. Once you’ve got everything working let’s download the VNC client on your laptop/desktop to connect to the Raspberry Pi over the network – Download VNC Client
      2. Use the VNC client to connect to the Raspberry Pi via a graphical interface.
      3. With the VNC client you can now work on the Raspberry Pi remotely.
    7. Step 6 – SSH into the Raspberry Pi

      1. This step is optional. You can also enable the SSH (Secure Socket Shell) daemon on the Pi and connect to the Pi remotely using an SSH client.
      2. Once you’ve established a connection over the network you can remove the monitor from the Raspberry Pi and work in a headless mode.
    8. Step 7 – Install Edublocks on the Raspberry Pi
      1. Make sure your Raspberry Pi is setup and connected to the internet.
      2. Open up a Terminal window, this can be done by clicking on this icon in the top left hand corner of the Pi’s screen.
      3. Type this command to intall EduBlocks : bash# curl -sSL get.edublocks.org | bash
      4. You can also look up this guide to setting up Minecraft on your Raspberry Pi – https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi

About the Raspberry Pi

The Raspberry Pi is a series of small single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and in developing countries. It is a capable little computer which can be used in electronics projects, and for many of the things that your desktop PC does, like spreadsheets, word processing, browsing the internet, and playing games. The original model became far more popular than anticipated, selling outside its target market for uses such as robotics.

The Raspberry Pi does not include peripherals (such as keyboards, mice and cases). However, some accessories have been included in several official and unofficial bundles. According to the Raspberry Pi Foundation, over 5 million Raspberry Pis were sold by February 2015, making it the best-selling British computer. By November 2016 they had sold 11 million units, and 12.5m by March 2017, making it the third best-selling “general purpose computer”. In July 2017, sales reached nearly 15 million.In March 2018, sales reached 19 million. Most Pis are made in a Sony factory in Pencoed, Wales; some are made in China or Japan.

You can read more about the Raspberry Pi here – RaspberryPi.org.

About the Raspberry Pi Smart Car (PiCar V) for Raspberry Pi 3/2/B+

The PiCar-V is an smart car robot learning kit based on Raspberry Pi. The kit comes equipped with a wide-angle USB webcam, smart car platform with servos, wheel, wide angle camera, motor driver, battery holder, etc. The new version of the PiCar-V is designed with features, comes with three whole new circuit boards and simplified wiring setup. The smart car chassis is strong and built to be durable. It is a well-designed structure, solid, durable and shatterproof. You can program the car in Python or using block based programming language. Sample Python code to control the car is provided, and you can also program and debug it with Dragit, a block based graphical interface, by just simple dragging and dropping the code blocks for complex functions.

There are many ways to control the robot remotely. You could use the application on the PC (works on any OS) to control the car. You can control the camera’s direction including seeing the images through the camera in real time. You can also perform control the car and view the camera using either a web browser including from mobile devices i.e. phones, tablets, etc. The Raspberry Pi Smart Car (PiCar V) kit for the Raspberry Pi is a great way to dive into the awesome world of robotics and build on your own STEM (Science, Technology, Engineering, Math) learning journey.

Prerequisites

  1. This tutorial makes extensive use of the Raspberry Pi Smart Car (PiCar V) for Raspberry Pi 3/2/B+.
  2. If you haven’t purchased a Raspberry Pi 3B+ yet you might want to head over and pick one up now.
  3. You can pick up both the Raspberry Pi 3B+ and the Raspberry Pi Smart Car (PiCar V) for Raspberry Pi 3/2/B+ at https://www.oztoylib.com.au/.

Questions