Note

Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.

Why Join?

  • Expert Support: Solve post-sale issues and technical challenges with help from our community and team.

  • Learn & Share: Exchange tips and tutorials to enhance your skills.

  • Exclusive Previews: Get early access to new product announcements and sneak peeks.

  • Special Discounts: Enjoy exclusive discounts on our newest products.

  • Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.

👉 Ready to explore and create with us? Click [here] and join today!

Configuring Your Raspberry Pi

I2C Configuration

To enable the I2C port on your Raspberry Pi, follow these steps (skip if already enabled; if unsure, proceed with the instructions).

  1. Log into your Raspberry Pi, open the Terminal, and enter the command below to access the Raspberry Pi Software Configuration Tool. (You can also access the terminal using SSH.)

    sudo raspi-config
    
    ../../_images/configuration_01.png

  2. Go to Interfacing options.

    Note

    Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the <Select> and <Finish> buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.

    ../../_images/configuration_02.png

  3. Select I2C.

    ../../_images/configuration_03.png

  4. Choose <Yes> to activate the I2C interface, then choose <Ok>.

    ../../_images/configuration_04.png

  5. Select <Finish> to exit the Raspberry Pi Software Configuration Tool.

    ../../_images/configuration_05.png

  6. Verify the address of the connected I2C device using the following command.

    i2cdetect -y 1
    
    ../../_images/configuration_06.png

    Addresses of any connected I2C devices will be shown.

    ../../_images/configuration_07.png

1-Wire Configuration

To enable the 1-Wire port on your Raspberry Pi, follow these steps (skip if already enabled; if unsure, proceed with the instructions).

  1. Log into your Raspberry Pi, open the Terminal, and enter this command to access the Raspberry Pi Software Configuration Tool. (You can also access the terminal using SSH.)

    sudo raspi-config
    
    ../../_images/configuration_08.png

  2. Go to Interfacing options.

    Note

    Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the <Select> and <Finish> buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.

    ../../_images/configuration_09.png

  3. Select 1-Wire.

    ../../_images/configuration_10.png

  4. Choose <Yes> to activate the 1-Wire interface, then choose <Ok>.

    ../../_images/configuration_11.png

  5. Select <Finish> to exit the Raspberry Pi Software Configuration Tool.

    ../../_images/configuration_12.png

  6. Select <yes> to reboot the Raspberry Pi.

    ../../_images/configuration_13.png