Setup Raspberry Pi to Collect and Log Data from Arduino

Get Raspberry Pi Ready

  1. Download the operating system for RPi. I recommend a full version of Raspbian, like this here.
  2. Assume that you have a working computer running on Windows, download Rufus software to write an image to a SD card. Scroll down and get rufus 3.0 (June 2018).
  3. Writing to SD Card

  4. Unzip Raspbian file (4.6 GB), and carefully select your target SD card. It takes about 3 minutes to complete writing the image to the card.
  5. Insert the SD card the slot, plug in a power cable to the micro USB port, a Display with HDMI cable, a keyboard, a mouse is optional on Raspberry Pi.
  6. Wait until the RPi boots up and shows the desktop, then press the Window key, go to Accessories/Terminal and Enter to access the terminal. If a mouse is ready, click away.
  7. Configure RPi by typing:
  8. sudo raspi-config

  9. Change a couple of items in RPi configuration:
  10. Raspi-config
    • In 1. Change password
    • In 2. Network Option: Change hostname (something unique, mine is rpi1001), and the wifi SSID and password.
    • In 4. Localisation Options: Change Timezone, Keyboard, locale
    • In 5. Interfacing Options: Enable SSH (to log in via command line), Enable VNC (for desktop remote)
    • In 7: Advance Option: Expand Filesystems to use the entire the SD card space

  11. Reboot
  12. After booting up: note IP address by running
  13. sudo ifconfig

    If Ethernet is used, the IP should the be first block, if Wifi is used, the IP is on the third block, something like, run this command to update the Linux distro:

    sudo apt-get update && sudo apt-get upgrade –y && sudo poweroff

    The last one will power off the RPi after done with the update and upgrade.

  14. If you forgot the note down the IP of RPi, or it is changed recently, use PowerShell (type PowerShell to search box in Windows) to find IP.
  15. In PowerShell to ping the Rpi: ping rpi1001.local –4 get something like this rpi1001 is my hostname for my Rpi.

    Ping in PowerShell

  16. Install VNCViewer , this software works like TeamViewer or Desktop Remote on Windows (only Win 10 Pro has Desktop Remote feature).
  17. Install on your Windows machine, in the search box on the top of VNCViewer, type in the RPi’s IP ( or RPi’s hostname (mine is rpi1001.local) and Enter. Enter your name RPi’s password, select ‘Remember password’ if desired so. If everything went well, you should see the pop-up Rpi desktop like the photo below.

    Fire up with VNCViewer

  18. To transfer file from or to RPi, the simplest way to use built-in file transfer by VNCViewer
  19. And that it, you can use a Raspberry Pi to collect data for you, and log in to get data when needed.