Unit 2: Setting Up the Raspberry Pi


After configuring the pre-registering the Raspberry Pi information in EnOS, you can start to set up the Raspberry Pi.

Prerequisites


  • Ensure that you have the following accessories.

    • A display with HDMI input. In this tutorial, a computer monitor is used.

    • A computer.

    • A keyboard and mouse.

    • An SD card and a USB SD card reader.


  • Ensure that you have the following Raspberry Pi hardware. Other than the Raspberry Pi Computer itself, the rest of the hardware can be found in the Grove Base Kit for Raspberry Pi.


Raspberry Pi Computer with Raspberry Pi Operation System

../../_images/hw_raspberry_pi_comp.jpg

Raspberry Pi Grove Base Hat

../../_images/hw_raspberry_pi_grove_base_hat.jpg

16x2 LCD Display

../../_images/hw_lcd_display.jpg

Red LED Button

../../_images/hw_led_button.jpg

Temperature & Humidity Sensor

../../_images/hw_temp_humidity_sensor.jpg

Light Intensity Sensor

../../_images/hw_light_sensor.jpg

Wire (x4)

../../_images/hw_wires.jpg

Step 1: Assemble the Hardware (Individual Components)


  1. Insert the Grove Base Hat onto the Raspberry Pi.


    ../../_images/install_grove_base_hat.jpg


  2. Connect the wires to their respective display, button, and sensors.


    ../../_images/install_connect_wires.jpg


  3. Connect the LCD Display to any of the I2C ports of the Grove Base Hat.


    ../../_images/install_connect_lcd_port.jpg


  4. Connect the LED Button to port D5 of the Grove Base Hat.


    ../../_images/install_connect_led_port.jpg


  5. Connect the Temperature and Humidity Sensor to port D16 of the Grove Base Hat.


    ../../_images/install_temp_sensor_port.jpg


  6. Connect the Light Intensity Sensor to port A0 of the Grove Base Hat.


    ../../_images/install_light_sensor_port.jpg

Step 2: Assemble the Hardware (Completed Assembly)


The completed Raspberry Pi would look like the below after connecting the 4 sensors to the Grove Base Hat.


../../_images/install_completed.jpg

Next Unit


Configuring and Connecting the Raspberry Pi to EnOS