AS703xxB UG001014 1-00
AS703xxB UG001014 1-00
AS703xxB UG001014 1-00
Document
Published by
ams OSRAM Group
User Guide
UG001014
AS7030B/AS7038GB/
AS7038RB
Evaluation Kit
User Guide
v1-00 • 2021-May-06
Document Feedback AS7030B/AS7038GB/AS7038RB
Content Guide
Content Guide
1 Introduction
The AS7030B/AS7038GB/AS7038RB Evaluation Kit allows evaluation of all functions on the
AS7030B/AS7038GB/AS7038RB Biosensor and test them in various applications.
The initial Evaluation Kit works with USB connection to the PC and comes with a GUI, which enables
the user to change AS7030B/AS7038GB/AS7038RB register settings, see measurement results and
many more.
The Windows GUI software is part of the kit and currently shows the raw data from FIFO with AGC
(Automatic Gain Control) features only. The Evaluation kit also contains firmware. New versions of the
firmware can be flashed onto the ARGON wireless module with an nRF52480 MCU.
For full flexibility, the PCB of the evaluation kit has two parts: a controller boards and sensor board
(submodule or SMOD). The controller board has an accelerometer, three electrodes located and a
connector to interface with the submodule located on the breakout board. The break out part can be
re-connected to the Microcontroller part via an FPC cable if it is broken off.
AS7030B/AS7038GB/AS7038RB SMOD sensor board should be connected for the application
purposes. There is also an option to attach external electrodes. If an optional Wristband evaluation kit
is used, the AS7030B/AS7038GB/AS7038RB wristband needs to be connected to the Wristband Pico
Blade connector J502 on the Mainboard. As a result, the sensor part of the kit needs to be separated
from the Mainboard.
Any signals important for development are accessible for probing at pin headers.
2 Getting Started
The client software latest version is available for download at https://ams.com/as7030B#tab/tools or
https://ams.com/as7038GB#tab/tools or https://ams.com/as7038RB#tab/tools or the software is
possible to find on the USB stick as a part of the evaluation kit. To install, just double as shown in
Figure 2 (left to right, top to bottom)
Figure 2:
AS703x Software Installation
For updating the FW on the evaluation board over USB, please refer to chapter 5.3.1 for more details.
3 Hardware Description
Figure 4:
AS703x Controller Board – Bottom View
Current
Measurement
ADC ADS114
Connector for
External
Electrodes
Figure 5:
SMOD703xx – Top View
Internal
LEDs External External External
GREEN LEDs RED LEDs IR LEDs
AS7038RB
AS7038GB
AS7030B
Figure 6:
Fitting the SMOD703xx Sensor Board with the AS703x Controller Board
Push
Board is Ready
● The controller board supports AS7030B, AS7038GB & AS7038RB SMOD boards.
● The SMOD board should be mounted very carefully as shown in the Figure 6.
● During the mounting or changing of the SMOD board, the controller board should be turned off.
● Always mount the optical adapter on the top on the chip.
4 AS7030B/AS7038GB/AS7038RB Overview
Based on the optical filter and photodiode size, there are three types of AS703xxB sensors. AS7030B
& AS7038GB are most sensitive to green/IR light, and AS7038RB is most sensitive to red/IR light. On
the other hand, AS7030B has internal LEDs (two greens and one IR LED), but AS7038GB/RB
supports only external LEDs.
Information
The main architecture of the AS703xxB sensor series is the same except a LED configurations,
Figure 7:
Optical Front End
AS7030B
AS7038GB/RB
For AS7030B
Figure 8:
Photodiode Arrangement for AS7030B
Figure 9:
Photodiode Arrangement for AS7038GB and AS7038RB
AS7038GB
AS7038RB
Figure 10:
Trans-Impedance Amplifier
Figure 11:
Optical Signal Conditioning
Figure 12:
ECG Amplifier Circuit
1 .. 4 1 .. 12 1 G=1..128 ADC
0.33Hz
50 Hz 40-200 Hz 800Hz
800 Hz
Leads off SIGREF
detect Instrumentational Filter Gain
Amplifier
AS7030_ECG_INN
ecg_ref_en
AS7030_ECG_REF
SIGREF
to electrical
frontend
Figure 13:
Recommended ECG Frontend Filter
Electrodes
ECG
ECG_INP
ECG_INN
ECG_REF
Figure 14:
Electrical Analog Front End
Figure 15:
Light-to-Frequency Converter
4.5.1 ADC
The ADC is a 14-bit successive approximation register type with input clock of 1 MHz. A configurable
clock divider can reduce the input clock. One conversion takes 25 clock cycles plus configurable
number of ADC settling clock cycles (64 the default for ADC settling cycles).The ADC can be manually
triggered by register or automatically triggered by the built-in sampling sequencer. Two channel
selection registers ADC_CHANNEL_MASK_L and ADC_CHANNEL_MASK_H define the channels the
ADC will convert. The ADC will start with the channels in ADC_CHANNEL_MASK_L from the LS
asserted bit to the MS asserted bit, then continue with the channels in ADC_CHANNEL_MASK_H
register again from LS asserted bit to MS asserted bit. Then wraps back to the LS bit of
ADC_CHANNEL_MASK_L. Thus, the ADC will go through each channel in the order as shown in
Figure 16 with TIA being the first (smallest index), OFE1 second, SD1 third and so on to the GPIO2
being the last.
When triggered from the sequencer, the channel selection is always set to the smallest channel when
the sequencer starts for the first time. When sequencer starts, then stops and starts again, channel
selection will not reset, it will stay at the channel it was on when the sequencer stopped.
When triggered manually, the channel selection resets with every write to one of the channel selection
registers.
After each conversion, the sample goes to the FIFO and the channel selection automatically advances
to the next enabled channel. The current ADC output is also available in the ADC data register, but as
there is no latch mechanism, the data from this register can be inconsistent as the ADC might be
running at the time of ADC data register access.
Figure 16:
ADC Channels
4.5.2 FIFO
The AS7030B/AS7038GB/AS7038RB FIFO is 256 bytes long. ADC samples are 2 bytes each, which
means, FIFO can hold up to 128 samples. There is a FIFO length register, which indicates how much
samples are currently available in the FIFO. The FIFO can send an interrupt when the number of
available samples reaches a certain configurable threshold.
All four GPIO pins can be digitally controlled and can have pull up/down enabled. They can also be
used as analog input pins for the EAFE, GPIO2 and GPIO3 can additionally be used with the ADC.
4.6.2 Interrupts
An interrupt output pin INT is used to interrupt the host. Depending on the setting in register INTENAB
each of the interrupt source below can assert INT output pin (active low).
● irq_adc: End of ADC conversion
● irq_sequencer: End of sequencer sequence reached.
● irq_ltf: A light-to-frequency conversion is finished.
● irq_adc_threshold: ADC threshold triggered
● irq_fifothreshold: FIFO almost full (as defined in register fifo_threshold)
● irq_fifooverflow: FIFO overflow (error condition, data is lost)
● irq_clipdetect: TIA output and/or SD output exceeded threshold– see details in CLIPSTATUS
● irq_led_supply_low: LED supply low comparator triggered
The sequencer executes measurement cycles with a period defined by Equation 1 where SEQ_PER
and SEQ_DIV are registers of AS7030B/AS7038GB/AS7038RB having values from 0 to 255 (see in
the AS7030B/AS7038GB/AS7038RB datasheet):
Equation 1:
Figure 17:
Sequencer Block Diagram
Throughout this document, sampling rate refers to the rate at which the sequencer produces samples
of the same ADC channel. This depends on the number of enabled ADC channels and on
configuration of the subsampling feature of the sequencer.
Subsampling is used when the application requires lower sample rates than what is possible with the
configured SEQ_PER and SEQ_DIV values, and with the number of enabled ADC channels. Lower
sample rate can also be achieved by setting SEQ_PER and SEQ_DIV to large enough values, but this
is not advisable as SEQ_DIV is multiplied to all the timings of the sequencer, thus the LED pulses will
become very long, which is probably not desired. SEQ_DIV should be kept relatively small for finer
resolution of the times.
The register SEQ_CFG and SD_SUBS configure how subsampling will be executed:
● sd_subs field in SD_SUBS register defines if subsampling is enabled; when it is 0, no
subsampling is done – every sequencer cycle triggers an ADC measurement (Figure 18);
setting to N>0, enables subsampling and then for N sequencer cycles the sequencer will not
trigger the ADC, followed by one cycle with ADC conversion.
● sd_subs_always bit in SEQ_CFG register defines if all enabled ADC channels are subject to
subsampling. Using this only makes sense for more than one enabled ADC channel.
● sd_subs_always = 1: subsampling of all enabled ADC channels (Figure 19)
● sd_subs_always = 0: subsampling of the first enabled ADC channel only (Figure 20)
The following three figures below show how subsampling is executed by the sequencer. In all of them
ADC cycle means one ADC iteration through all the enabled channels.
Attention
ADC cycle is not the same as sequencer cycle. ADC_SEL is the ADC channel selection;
ADC_ACCESS is an ADC conversion of the currently selected ADC channel; tADC is the configured
ADC start time in the sequencer configuration; tSUB is the sequencer period given by Equation 1.
In Figure 18 three ADC channels are enabled --1 (OFE1), 6 (EAFE) and 11 (GPIO2). No subsampling
enabled (sd_subs=0).
In Figure 19 three ADC channels are enabled -- 0 (TIA), 4 (SD2) and 8 (ECGO). Subsampling is
enabled, every second sequencer cycle will trigger the ADC (sd_subs=2) and all enabled ADC
channels are subsampled.
In Figure 20 three ADC channels are enabled – 0 (TIA), 4 (SD2) and 8 (ECG0). Subsampling is
enabled, every third sequencer cycle will trigger ADC (sd_subs=3) and only the first enabled ADC
channel is subsampled.
Figure 18:
No Subsampling (sd_subs=0)
Figure 19:
Subsampling of All Enabled ADC Channels (sd_subs=2 and sd_subs_always=1)
Figure 20:
Subsampling of 1st Enabled ADC Channel Only (sd_subs=3 and sd_subs_always=0)
5 Software Description
AS703xxB
Information
5.2.1 Overview
Figure 22 shows the main window of the graphical user interface. To connect to the board the
connection control elements are used (1). The measured data is displayed in the main section of the
application (6). Applications such as HRM and SpO2 data are displayed (9).
Figure 22:
AS7030B/AS7038GB/AS7038RB Vital Sign Sensor - Graphical User Interface
1
2 8
7
9
3
10
11
4
5
6
12
1. Connect the sensor board and the mainboard via the 10-pin flat cable if you already broke the
board; otherwise, you can skip this step.
2. Connect the micro USB to USB cable to the Bluetooth module and plug it into your computer.
3. Afterwards, press the S1 button for 3 seconds to turn on the sensor board.
4. The green LED on the ARGON board will light up as soon as the board is powered.
5. Start the client software.
6. Select the appropriate COM port number from the drop-down menu.
Figure 23:
Starting a Measurement
The AS7030B/AS7038GB/AS7038RB configuration settings are located on the left of the evaluation
software (see Figure 22). At power-up, the board starts with the following default configuration:
● The two green LEDS - LED1(VD1) and LED2(VD2) are enabled, the LED current set to 1 mA
● Sequencer period set to 2000 µs
● Photodiode Trans-Impedance amplifier (TIA) is on and used
● All filters are on and used
● ADC is set to measure only the optical front end 1 after the gain stage (OFE1)
Figure 25:
Figure 24:
AS7030B/AS7038GB/AS7038RB Block Diagram Highlighted
Submenu Selection
Blocks are Configured in the According Submenus
2
4
1
2 3
3
4
5
6 6
7
8
5
9
10 1
AS7030B
11 AS7038GB/RB 1
LED Configuration
Attention
LED current, LED mode and LED state can be set in the “LEDs configuration” window. It is
recommended to configure the current only when the output is not active as there is no latch
implemented to keep the 10 bits consistent.
The LED current can be set via sliders in a range of 0.7 -100 mA. Using the Boost option the LED
current can be doubled. The LEDx on option is only active in manual mode. In all other cases the
LEDs will be controlled by the logic.
The textbox LEDs current (mA) shown in Figure 26 allows to enter a numeric value for LED current
which will be set to all LEDs.
● AS7030B/AS7038GB/AS7038RB Datasheet
Photodiodes Configuration
Select the photodiodes which are to be connected to TIA input. The offset current is optional, this
allows cancellation of constant light sources like sunlight. Default value for the input offset current is 0
for both – LEDs off and any LED on. By default the offset is controlled by the PD offset control
algorithm accessible via menu 11.
For an external photodiode or any other sensor with (low) current output, the pins GPIO0 and GPIO1
can be used as input.
The sequencer controls the diodes – see DIODE_CTRL described in register MAN_SEQ_CFG.
● AS7030B/AS7038GB/AS7038RB Datasheet
Figure 32:
TIA Suggestion
1 1…4 13 1 15 1 V/µA
2 1…4 7 1 15 2 V/µA
3 1…4 5 1 15 3 V/µA
1…2 2
4 0 15 5 V/µA
3…4 3
1…2 2
5 0 15 7 V/µA
3…4 3
1 1
6 0 15 10 V/µA
2…4 2
1…2 1
7 0 15 14 V/µA
3…4 2
5 1…4 31 3 15 7 V/µA
0 1…4 10 3 15 1 V/pQ
(1) pd1234 … number of active photodiodes (for example, pd1=1, pd2=0, pd3=1, pd4=0 -> pd1234=2)
● AS7030B/AS7038GB/AS7038RB Datasheet
In this window, the OFE blocks can be enabled and the filter chain is configured.
Check OFE1 and/or OFE2 check box to enable the corresponding OFE block.
To optimize signal quality adapt the OFE Gain setting to your application. The Bandwidth of HP and
LP can also be changed to suit your needs. The “SD negative initial polarity” switch will invert the
signal.
The “Prefilter” tab is used to configure the input filters of the two synchronous demodulators. For
reference, please see OFE_CFGA, OFE_CFGB, OFE_CFGC and OFE_CFGD register descriptions in
the AS7030B/AS7038GB/AS7038RB datasheet.
● AS7030B/AS7038GB/AS7038RB Datasheet
Sequencer Configuration
Figure 35:
Sequencer Configuration Submenu
The “Cycle period” field of the “Sequencer configuration” window (see Figure 35) holds the value of
the SEQ_PER register. The client software will automatically calculate its value from the user input for
Sample frequency/period entered in the fields “Frequency (Hz)” / “Period (µs)” of the “Sequencer
configuration” window (Figure 35). Sample period/frequency is the period/frequency between # of
samples of the same ADC channel and it depends on the number of enabled ADC channels. If the
calculation yields a value for the cycle period that is bigger than 255 - the maximum possible,
subsampling will be enabled1. Please refer to Sampling Rate and Subsampling for details on sampling
rate.
Any change in the values of the fields for sample frequency, sample period, cycle period and in the
ADC channel selection will cause a new calculation of the values for the rest of the fields.
● AS7030B/AS7038GB/AS7038RB Datasheet.
ADC Configuration
This window configures the clock divider of the 1 MHz ADC input clock and the ADC settling periods.
ADC channels are enabled in the Sequencer Configuration window. The selection is shown below.
● AS7030B/AS7038GB/AS7038RB Datasheet
1
For example, with one ADC channel enabled and desired sample rate of 200 Hz, the sequencer cycle period needs to be
5000 µs. If (SEQ_DIV+1) is 10, the SEQ_PER register should be 500, but as it is 8 bits, it cannot fit the value 500. It is also not
advisable to increase the clock divider as that will affect all the other timing settings, it is better to keep that small to give finer
granularity of the timing. To achieve the 200 Hz sample rate, the cycle period will be set to 250 and subsampling enabled with
subsampling ratio of 2 – meaning the ADC will be triggered every 2nd sequencer cycle. That will give a sample rate of 200 Hz /
5000 µs period.
The ECG (electro cardiogram) amplifier is a high impedance, low noise instrumentation amplifier with
analog circuitry to band pass filter the signal. Gain is distributed between 3 gain stages. The gain in
the first stage determines the tradeoff between achievable noise level and achievable input offset
voltage. With the highest gain of 4 at the first gain stage (G1) about 400 mV of offset can be managed.
This value scales up to a max of 1.6 V of offset at gain 1. An optional 50/60 Hz notch filter can be
enabled to attenuate unwanted noise from mains coupling.
The ECG signal can be used independently or together with PPG in further computation. (e.g. blood
pressure).
Figure 38:
ECG Amplifier Configuration Submenu
Figure 39:
ECG Amplifier Block Diagram
1 .. 4 1 .. 12 1 G=1..128 ADC
0.33Hz
50 Hz 40-200 Hz 800Hz
800 Hz
Leads off SIGREF
detect Instrumentational Filter Gain
Amplifier
AS7030_ECG_INN
ecg_ref_en
AS7030_ECG_REF
SIGREF
to electrical
frontend
Electrodes
ECG
ECG_INP
ECG_INN
ECG_REF
● AS7030B/AS7038GB/AS7038RB Datasheet.
The electrical analog front end consists of three identical signal paths with independent settings of
bias condition, gain and offset.
Here the EAF_CFG, EAF_GST, EAF_BIAS, EAF_DAC and EAF_DAC_CFG registers are set.
Figure 40:
Figure 41:
Electrical-Analog-Frontend Configuration
Electrical-Analog-Frontend Block Diagram
Submenu
● AS7030B/AS7038GB/AS7038RB Datasheet.
Light-to-Frequency Configuration
Light-to-frequency feature can be used to measure light input directly. Its main purpose is proximity
detection.
Attention
Do not use diodes that are connected to the TIA (register PD_A, PD_B, PD1...4) at the same time
when itf_en is enabled on the same diode.
For detailed information, please refer to the AS7030B/AS7038GB/AS7038RB datasheet.
The following registers can be shown/configured in the dialog: ITIME, LTF_CONFIG, LTF_SEL and
LTF_GAIN.
● AS7030B/AS7038GB/AS7038RB Datasheet
GPIOs Configuration
To set a GPIO to analog mode check the check box from the “GPIO mode” group box. If left
unchecked, then the GPIO is a digital output or input, depending on the state of the “GPIOx enable
output” check boxes - unchecked means the pin is digital input. If the pin is set as digital output, it’s
state can be set via the corresponding check box in the “Output state” group box.
● AS7030B/AS7038GB/AS7038RB Datasheet
This section describes the configurations of the firmware running on the microcontroller that
communicates with the AS7030B/AS7038GB/AS7038RB.
The PD offset and LED current control is an algorithmic approach to increase signal quality of PPG
signals. The algorithm continuously monitors the TIA and OFE1 outputs and if necessary reconfigures
the AS7030B/AS7038GB/AS7038RB while measuring to ensure ideal conditions.
Figure 46:
PD Offset & LED Current Control Submenu
Minimum amplitude of the controlled signal in ADC counts – If the amplitude of the ADC signal drops
below that value, LED current will be increased, if LED current control is enabled.
Maximum amplitude of the controlled signal in ADC counts– If the amplitude of the ADC signal grows
above that value, LED current will be decreased, if LED current control is enabled.
Number of samples to average – How many ADC samples are averaged before values go to FIFO.
AGC reset interval – The interval at which the min and max values are calculated over a moving
average are reset in order to keep a recent history and to avoid random spikes.
Minimum threshold of the controlled signal in ADC counts – If the amplitude of the ADC signal drops
below that value, LED current will be increased, if LED current control is enabled.
Maximum threshold of the controlled signal in ADC counts– If the amplitude of the ADC signal grows
above that value, LED current will be decreased, if LED current control is enabled.
AGC Algorithm selection – Based on the automatic gain control TIA2, TIA3 and OFE1 can be selected
or AGC algorithms can be disabled.
Minimum and maximum LED output current – Sets the range in which the LED current can move if
LED current control is enabled. If LED current control is disabled the LED have constant LED current
set in the LED Configuration window.
Application Settings
The “Application Settings” setting is located on the right side of the evaluation software (Figure 22).
This setting is mainly use to select and change the HRM and SpO2 configuration blocks and
parameters.
The “Signal Routing” which is PPG signal source configuration, window is used to select the PPG and
SpO2 blocks as shown in the Figure 47.
Figure 47:
Signal Routing
For AS7038RB
The “SpO2” is for configuring the SpO2 Parameters. These parameters associated with the specific
settings of the AS7038R must be entered in the SpO2 configuration settings. Because of production
and assembling tolerances, it is recommended that the below-mentioned factors for the photodiode
offset current compensation (𝑃𝐷𝑜𝑓𝑓_𝑓𝑎𝑐𝑡_𝑟𝑒𝑑 and 𝑃𝐷𝑜𝑓𝑓_𝑓𝑎𝑐𝑡_𝑖𝑟 ) are determined for the device under
development, after the sensor (AS7038R) has been integrated and the optical configuration is
finalized.
Figure 48:
SpO2 Configuration
● AS7038RB_SpO2_Calibration_Note
Register Map
The “Register Map” window is used to view/change the contents of the complete set of
AS7030B/AS7038GB/
AS7038RB user register. To open it, click on the “ Register Map” menu.
Changing a register value can be doe either by modifying its value in the relevant “Value” field or by
toggling a bit by clicking on the relevant bit cell. Changing a value in the register map will not update
the current selection in the configuration windows of the GUI. Also, a change in any of the
configuration windows will not trigger an automatic update of the already opened register map window.
To update the values, click on the refresh button marked with the orange rounded rectangle on the
“Register Map” picture on the right.
Figure 49:
Register Map Dialog
The current configuration settings can be exported to a file. To do this, click on the “File Save
Configuration” menu. This will open the “Save Configuration File” dialog box on the second picture on
the right. Enter file name and choose the file location, then click “Save”.
To load a previously exported configuration settings, click on the “File Load Configuration” menu.
This will open the “Select Configuration File” dialog box. Select the configuration file from which to
load settings and click “Open” button.
The settings imported from the file can be reviewed in the relevant configuration windows.
If the GUI is connected to the board, the newly imported settings will be applied immediately,
otherwise upon successful connection to the board.
Figure 50:
Figure 51:
Safe and Load Configuration Menu
Safe Configuration File Dialog
Entries
Before starting the measurement by clicking the “Start” button, click the “Record” button to save the raw
data from the AS703x. When a measurement is stopped with the “Stop” button, a pop-up window will
appear to select the file location and save the CSV file.
Figure 52:
Export Raw Data Menu
LED current has a direct impact on signal strength with minimal impact on noise. OFE gain will
increase overall signal strength but also increase noise. We recommend the following settings to begin
with and start experimenting from there:
Figure 53:
Useful Start Settings
Figure 54:
Switch ON/OFF & Mode Button
Mode Button
4. Check the right COM port name from the “Device Manager”
Figure 55:
Device Manager
Figure 56:
Firmware Folder
Figure 57:
Notepad++
Figure 58:
Firmware Update
8. The message "Device programmed" and the green LED switching on, means that programming
was successful.
Figure 59:
Update Successful
6 Revision Information
● Page and figure numbers for the previous version may differ from page and figure numbers in the current revision.
● Correction of typographical errors is not explicitly mentioned.
7 Legal Information
Copyrights & Disclaimer
Copyright ams AG, Tobelbader Strasse 30, 8141 Premstaetten, Austria-Europe. Trademarks Registered. All rights reserved.
The material herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the
copyright owner.
Demo Kits, Evaluation Kits and Reference Designs are provided to recipient on an “as is” basis for demonstration and
evaluation purposes only and are not considered to be finished end-products intended and fit for general consumer use,
commercial applications and applications with special requirements such as but not limited to medical equipment or automotive
applications. Demo Kits, Evaluation Kits and Reference Designs have not been tested for compliance with electromagnetic
compatibility (EMC) standards and directives, unless otherwise specified. Demo Kits, Evaluation Kits and Reference Designs
shall be used by qualified personnel only.
ams AG reserves the right to change functionality and price of Demo Kits, Evaluation Kits and Reference Designs at any time
and without notice.
Any express or implied warranties, including, but not limited to the implied warranties of merchantability and fitness for a
particular purpose are disclaimed. Any claims and demands and any direct, indirect, incidental, special, exemplary or
consequential damages arising from the inadequacy of the provided Demo Kits, Evaluation Kits and Reference Designs or
incurred losses of any kind (e.g. loss of use, data or profits or business interruption however caused) as a consequence of their
use are excluded.
ams AG shall not be liable to recipient or any third party for any damages, including but not limited to personal injury, property
damage, loss of profits, loss of use, interruption of business or indirect, special, incidental or consequential damages, of any
kind, in connection with or arising out of the furnishing, performance or use of the technical data herein. No obligation or liability
to recipient or any third party shall arise or flow out of ams AG rendering of technical or other services.