How to Run a 5V Device On a 3.3V System With Qwiic a learn.sparkfun.com tutorial

Available online at: http://sfe.io/t3738

Contents

Introduction

The SparkFun Qwiic AP3012K 5V Boost converts the logic-level and boost the voltage or power supply of the Qwiic connect system from 3.3V, to 5V on its PTH pins. This is handy for connecting any I2C device that requires a higher supply voltage, such as super bright LEDs or mechanisms like a DC fan on our air quality sensors. On the board, we also provide 3V3/5V jumpers, which can be used to configure the logic-levels of the I2C PTH pins. Therefore, this board can be utilized to connect an I2C device that requires any combination of 3.3V/5V for its power and/or signals.

SparkFun Qwiic 5V Boost - AP3012K

PRT-28203
$8.95

The boost circuit on this board is rated to source up to a 100mA at 5V output, with 90% efficiency. However, users should note that this limitation is not only dependent on the load being connected, but also the amount of current that is being sourced to the Qwiic connector system.

Attention: Soldering is required for this board.

In this guide we'll cover the hardware and how to utilize the Qwiic 5V Boost with the Sensirion SEN55 Sensor (but you can use the SEN54 or SPS30, instead). To follow along with this tutorial, users will need the following items:

SparkFun Qwiic Cable Kit

KIT-15081
$12.95

SparkFun Thing Plus - ESP32 WROOM (USB-C)

WRL-20168
$33.73

Sensirion Particle, VOC, Humidity, and Temperature Sensor - SEN55

SEN-23715
$36.95

SparkFun Qwiic 5V Boost - AP3012K

PRT-28203
$8.95

Attention: Again, soldering is required for this board.

Tip: The Sensirion SEN55 Sensor requires an extra GND connection to enable the I2C interface.

Note: The These other Sensirion particulate matter sensors, may also be used in place of the SEN55:

Topics

This guide contains two main sections: Hardware Assembly and Quickstart Guide sub-sections.

If you are looking for the full Hookup Guide for the SparkFun Qwiic 5V Boost - AP3012K, click the button bellow. This basic tutorial only covers utilizing this Qwiic AP3012K 5V Boost to attach a SEN55 sensor to our Qwiic connect system.

View the Full Hookup Guide

Hardware Assembly

Breakout Pins

The PTH pins on the Qwiic 5V Boost are broken out into six 0.1"-pitched pins on the edge of the board. These pins are used to connect a 5V I2C device to the Qwiic connect system.

Headers are versatile option testing and development. Users can also connect a device directly to the board.
Soldering headers to the Qwiic 5V Boost. Soldering wires to the Qwiic 5V Boost.
Soldering headers to the Qwiic 5V Boost. Soldering wires to the Qwiic 5V Boost.

Tip: If you have never soldered before or need a quick refresher, check out our How to Solder: Through-Hole Soldering guide.

How to Solder: Through-Hole Soldering

September 19, 2013
This tutorial covers everything you need to know about through-hole soldering.

Configuration Options: With the 3V3/5V jumpers to configure the logic-levels of the I2C PTH pins, users can convert the power and logic-levels of the Qwiic connector to any combination of 3.3V and/or 5V on the PTH pins. Users will have the following options for connecting a device to the Qwiic 5V Boost:

Output Power 5V 5V 3.3V
I2C Logic-Level 3.3V 5V 5V
Power Supply Logic-Level
Use either the 5V or the 3V3 PTH pins to supply 5V or 3.3V power to the device. Users can modify the 3V3/5V jumpers to configure the logic-level for the SDA and SCL PTH pins.
  • By default, the pins are configured to a 5V logic-level.
  • By default, the pins are configured to a 5V logic-level.

    Qwiic Connector

    The simplest method to connect the Qwiic 5V Boost board to a microcontroller and/or other Qwiic devices, is through the Qwiic connector.

    Connecting the Sensirion SEN55 sensor to the Qwiic 5V Boost

    The Qwiic 5V Boost with a SEN55 Sensor connected to its PTH pins and daisy-chained with Qwiic cables, though its Qwiic connectors

    Tip: The intended design of the Qwiic 5V Boost board was to be utilized with the Qwiic connector system. However, the Qwiic 5V Boost can also be utilized with other interfaces, similar to how the SparkFun Logic Level Converter - Single Supply operates. The only difference is its TTL conversion, which is push-pull and not open-drain.

    Project Setup

    Board Layout

    This is the basic layout of the Qwiic 5V Boost board.

    The basic layout of the Qwiic 5V Boost board

    Layout of the major components on the Qwiic 5V Boost.

    SEN55 Particle Sensor

    In this demo, we'll connect the Sensirion SEN55 particulate matter, VOC, NOx, humidity, and temperature sensor to the Qwiic 5V Boost board; and read data from it with an ESP32 Thing Plus development board, utilizing the Arduino IDE.

    Connect the Sensirion SEN55 Sensor

    Soldering is required to connect the SEN55 sensor to the Qwiic 5V Boost board. In the example below, we used headers and a Qwiic jumper cable to make the necessary pin connections shown in the tables.

    Qwiic 5V Boost Sensirion SEN55 Sensor
    GND 2
    5V 1
    SDA 3
    SCL 4
    GND 5

    SEN5x Pinout

    Hardware pins for the Sensirion SEN55 sensor.

    Once the sensor is attached, users will need to connect the Qwiic 5V Boost board to their development board with a Qwiic cable.

    Connecting the Sensirion SEN55 sensor to the Qwiic 5V Boost

    Connecting the Sensirion SEN55 sensor to the Qwiic 5V Boost.

    Tip: If you're not familiar with using breakout board or soldering, please refer to the Hardware Overview & Assembly sections in the full Hookup Guide for a detailed overview of the board along with instructions on soldering to the breakout.

    Example Code

    With the hardware assembled, users will need to program their development board to retrieve data from the SEN5X sensor. In the Arduino IDE, upload the exampleUsage example sketch from the Sensirion I2C SEN5X Arduino library. This example will read the particulate matter, VOC, NOx, humidity, and temperature values from the SEN5X sensor and output them in the Serial Monitor.

    Follow the steps below to upload the example code:

    Tip: If you're not familiar with using the Arduino IDE, refer to the Troubleshooting Tips section for related tutorials.

    Source Files

    Troubleshooting Tips

    Need Help?

    If you need technical assistance or more information on a product that is not working as you expected, we recommend heading over to the SparkFun Technical Assistance page for some initial troubleshooting.

    SparkFun Technical Assistance Page

    If you can't find what you need there, the SparkFun Forums is a great place to search product forums and ask questions.

    Account Registration Required: If this is your first visit to our forum, you'll need to create a Forum Account to post questions.

    Getting Started with the Arduino IDE

    This guide assumes users are utilizing the latest version of the Arduino IDE on your desktop. If this is your first time using Arduino IDE, library, or board add-on, please review the following tutorials:

    5V Power Limitation

    We recommend users limit the load current on the 5V output supply voltage to a maximum of ~100mA.

    This should not be considered as a limitation dictated by the junction temperature of the AP3012. The limitation is driven by the power supply for the Qwiic connect system and the load being placed on the boost circuit. In order to compensate for the increased current, the supply voltage from the AP3012 boost converter will begin to drop as the current draw increases.


    learn.sparkfun.com | CC BY-SA 3.0 | SparkFun Electronics | Niwot, Colorado