Skip to content

Latest commit

 

History

History
169 lines (117 loc) · 9.84 KB

How_to_install.md

File metadata and controls

169 lines (117 loc) · 9.84 KB
Logo

OpenA3XX Hardware Controller Board (inc MCDU)

Welcome to the 'Hardware Controller' for the OpenA3XX project.
If you're setting up our MCDU, or our standard controller board then you're in the right place!

Let's get started!

Ok, let's jump right into it!
You will need:

  • Raspberry Pi Zero W
    • We recommend the 'Pi Zero W' so you have the wifi feature. It will make the install much easier.
      If you can only get a 'Pi Zero WH' this is also ok. But you will either need to re-solder the headers, or rotate the board.
      But, if you can only get a 'Pi Zero' we will eventually release an image file that you can simply flash to the SD card.
    • A computer
    • A wireless internet connection
    • A power supply for the Raspbery Pi board
    • A MicroSD card. We recommend a 16GB Class 10.

    Step 1

    We are assuming you have a brand new board, and an empty SD card.

    If you already have some experience with Raspbery Pi boards, then setup Raspberry Pi OS Lite and move on to step 2 below.

    The first thing we need to do is set up the Raspberry Pi ready for use. So, head over to this Raspberry Pi website and scroll down until you see 'Download for xxx' where 'xxx' would be replaced with your operating system.

    Download and install this desktop application, then open it. It shouldn't take too long depending on your internet connection.
    With the application open you should see a simple screen with 3 options. Insert your SD card to your PC, ignore any prompts about formatting.

    1. Choose Raspbery Pi OS Lite
    2. Choose your inserted SD card
    3. Click 'Write' and wait for the process to finish.

    When the process is finished, remove the SD card from your computer and then reinsert it. Goto 'My Computer' and open the newly created 'Boot' drive. Download these two files:

    1. wpa_supplicant.conf
    2. ssh

    Open up 'wpa_supplicant.conf' in any text editor (NOT Microsoft word! Use Notepad or similar) and replace 'country code' with your country (GB, US, DE, etc), 'Wi-Fi Name' with your wifi network name. Lastly replace 'Wi-Fi Password' with the password for that wifi netork. Save the file.

    It is worth noting that we recommend using Notepad++ - but it is not essential to download this program if you ensure the file is correctly edited in another simple 'Notepad' application.

    Then, simply place these files into the 'Boot' drive see picture below.
    Remove the SD card, and the setup is complete!

    Congratulations! Let's move on to Step 2 below.

    Step 2

    Now that we have the Raspbery Pi setup, we need to connect to it and talk to it. For this, we are going to use what's called a 'Headless' connection. It is probably much easier, quicker and simple to do it this way, rather than having to try and connect a keyboard, mouse and screen directly to the Pi at this point.

    If you have never worked with command line before, please do not put off by this. We promise it is easy, and if you follow this guide, you really won't have to do much > at all. We really want this to be accessible to everyone, and although the command line can be a bit daunting and offputing for some people, we promise that you can do this!

    Now, let's go!

    Let's continue by downloading a program called PuTTY At the time of writting this, V0.76 is the latest release but it shouldn't matter which version you have. Simply download the relevant file for your operating system and run the installer. If you're using a recent windows copmuter then just download the one highlight in the picture.

    Ok, now we have that installed just open up the application and you'll see a screen that looks like this.
    We are only going to type ONE thing here, so ignore everything except this one text box!
    Here we need to type in the IP address of the raspberry pi. There are several ways of finding out what the IP address of the Raspbery Pi is, but the most straight forward way is to login into your home router and look at the devices connected to your network. Each router has a different method for this, so Google how to do this for your specific router.

    While you are here in your router, you should consider giving your Raspbery Pi a Static IP Address. You can do this within your router admin page, so might as well while you're there. Again, ask Google for specific instructions on how to do this for your router.

    It is also possible to download some apps on your phone that will scan your network and show you connected devices and their IP address.
    Once you have chosen your method, find the connection called 'raspberrypi' and find the corresponding IP address.
    It will be something similar to: <b>'192.168.0.30'</b>

    Once you have the IP address, type this into the text box in 'PuTTY' and hit 'Enter' on your keyboard.
    You will then see a 'Command Line' window pop open, with text saying login as and it will probably look something like this:

    Type pi and hit 'Enter'

    NOTE: When you type any password in the command line, you will not see ANYTHING appear on the screen. But the keys are being logged. You must type your password and then hit enter. Even though you can't see anything being typed on screen, it is. If you make a mistake, just hit 'Enter' and start typing again.

    Type raspberry (which is the default password) and hit enter.

    If everything has gone right, then you should see a screen that looks like this:

    If you're having problems getting to this stage, is is more than likely a connection issue. It's hard for us to diagnose potential problems in this document, and they are likely to be very rare. We would suggest Google and YouTube will have lots of examples of how to do this should you get stuck.

    Congratulations! That is the hardest part done!
    Let's move on to step 3 below.

    Step 3

    Now, all you have to do is type some commands everything will done automatically for you! Easy, right?
    Let's go!

    Type the following commands one-by-one and then hit enter. Wait for each one to finish before starting the next.
    You'll know when you can type the next one, because you will see the green text that says pi@raspberrypi ~ $.

    sudo apt update && sudo apt upgrade
    
    sudo apt install git
    
    sudo apt-get install python
    
    sudo apt install python3-pip
    
    git clone https://github.com/OpenA3XX/opena3xx.hardware.controller.git
    
    cd /home/pi/opena3xx.hardware.controller/setup
    
    sudo chmod +x setup.sh
    
    sudo ./setup.sh
    

    After running the last command you will notice the installer starts.
    You need to be patient with this, especially if your internet connection is slow.

    The first thing you will see is a prompt asking you Do you want to continue? [Y/n] - Type Y and then hit 'enter' to continue.
    Near the beginning of the install process, it will ask you to enter a 'Board ID Number'.
    As this will be our first board, we simply type 1 and then hit enter.
    Obviously, if we are adding additional boards, we enter the relevant number.

    When you see the Install Complete! message. Type the following command:
    sudo reboot now
    You will then see an error message saying the connection was lost, and this is to be expected as we have just restarted the Raspberry Pi.
    This is ok, as we have now finished with the command line anyway.

    Everytime you start up the Raspberry Pi, it will automatically run the program (and check for updates) so you won't need to connect to it via command line again. Phew!

    Because it will check for updates when it starts, we recommend powering it up a couple of minutes before starting the software.

    That's it! Congratulations!

    We hope that this guide is useful and clear. If you have any questions, or are unclear on anything please contact one of the team for assistance. If this document needs changing or clarifying in certain areas, please let us know so we can improve it.

    We hope you enjoy the product, and happy landings!


    Uninstall

    Should you ever need to uninstall the hardware controller, it is very simple.
    Just run this code:

    cd /home/pi/opena3xx.hardware.controller/setup
    
    sudo ./uninstall.sh
    

    And that's it! You will see a message when the uninstall is complete!