polarity detection and correction, link status change wake-up detection,
vendor specific register functions, support for the reduced pin count RMII
interface, and much more.
It allows mikromedia 4 to connect to an Ethernet network over its shield as
TX and RX lines are routed to the 1x26 pin headers (2). mikromedia 4 is
equipped with two LED indicators, which are located on the front side. They
are used to signal status and data traffic.
12
Figure 10: 1x26 pins-header view
P A G E 19
mikromedia 4for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
5.2 RF
mikromedia 4 offers communication over the world-wide ISM radio band.
The ISM band covers a frequency range between 2.4GHz and 2.4835GHz.
This frequency band is reserved for industrial, scientific, and medical use
(hence the ISM abbreviation). In addition, it is globally available, making it
a perfect alternative to WiFi, when the M2M communication over a short
distance is required.
mikromedia 4 uses the nRF24L01+ (1), a single-chip 2.4GHz transceiver
with an embedded baseband protocol engine, produced by Nordic
Semiconductors. It is a perfect solution for ultra-low power wireless
applications. This transceiver relies on the GFSK modulation, allowing data
rates in the range from 250 kbps, up to 2 Mbps. The GFSK modulation
is the most efficient RF signal modulation scheme, reducing the required
bandwidth, thus wasting less power. The nRF24L01+ also features a
CONNECTIVITY
P A G E 20
proprietary Enhanced ShockBurst
Besides other functionalities, it offers a 6-channel MultiCeiver
which allows using the nRF24L01+ in a star network topology. The
nRF24L01+ uses the SPI interface to communicate with the host MCU.
Along the SPI lines, it uses additional GPIO pins for the SPI Chip Select,
Chip Enable, and for the interrupt. The RF section of the mikromedia 4
also features a small chip antenna (2), reducing the need for additional
hardware components.
™
, a packet-based data link layer.
™
feature,
12
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4
for STM32 CAPACITIVE
U S E R M A N U A L
Figure 11: RF and WiFi view
5.3 USB
The host MCU is equipped with the USB peripheral module, allowing
simple USB connectivity. USB (Universal Serial Bus) is a very popular
industry standard that defines cables, connectors, and protocols used
for communication and power supply between computers and other
devices. mikromedia 4 supports USB as HOST/DEVICE modes, allowing
the development of a wide range of various USB-based applications. It
is equipped with the USB-C connector, which offers many advantages,
compared to earlier types of USB connectors (symmetrical design, higher
current rating, compact size, etc).
The USB mode selection is done using a monolithic controller IC. This IC
provides Configuration Channel (CC) detection and indication functions.
To set up mikromedia 4 as the USB HOST, the USB PSW pin should be set to
a LOW logic level (0) by the MCU. If set to a HIGH logic level (1), mikromedia 4 acts
as a DEVICE. While in HOST mode, mikromedia 4 provides power over the
USB-C connector (3) for the attached DEVICE. The USB PSW pin is driven
by the host MCU, allowing the software to control the USB mode.
The USB ID pin is used to detect the type of the device attached to the USB
port, according to the USB OTG specifications: the USB ID pin connected to
GND indicates a HOST device, while the USB ID pin set to a high impedance
state (HI-Z) indicates that the connected peripheral is a DEVICE.
CONNECTIVITY
P A G E 21
P A G E 21
mikromedia 4for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
3
mounted to another USB HOST (such as PC).
N O T EWhen mikromedia 4 is working in USB HOST mode, it must not be
5.4 1x26 pin headers
Most of the host MCU pins are routed to the two 1x26 pin headers (1), making them available for further connectivity. In addition to MCU pins, some
additional peripheral pins are also routed to this header.
Besides the ability to connect various external devices and peripherals by using wire jumpers, these pins also allow using shields with the additional
™
mikroBUS
including motor drivers, buck/boost converters, sensors, and much more. For the complete list of all the Click boards
link: www.mikroe.com/click
sockets. This allows mikromedia 4 to be interfaced with a huge base of different Click boards™ adding many different functionalities and options,
™
in our offer, please visit the following
CONNECTIVITY
PROGRAMMING
P A G E 22
P A G E 22
5V pwr.
Ground
Analog
GPIO
SPI2
CAN
SPI1
ETH
3.3V pwr.
Ground
5V
GND
PA4
PB0
PB1
PC0
PC2
PC3
PC13
PG4
PB12
PB13
PB14
PB15
PD0
PD1
PA15
PA5
PA6
PB5
TX-N
TX-P
RX-N
RX-P
3.3V
GND
52.
51.
50.
49.
48.
47.
46.
45.
44.
43.
42.
41.
40.
39.
38.
37.
36.
35.
34.
33.
32.
31.
30.
29.
28.
27.
PWMInterruptI2CUARTAnalog linesSPI
Figure 13: 1x26 pin header view
26.RST
25.3.3V
24.L
23.R
22.L
21.R
20.PD12
19.PD13
18.PB3
17.PB4
16.PF8
15.PF9
14.PG0
13.PG1
12.PG2
11.PG3
10.PF1
9.PF0
8.PC7
7.PC6
6.PA3
5.PD5
4.PB6
3.PB7
2.GND
1.VDC
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
Reset
3.3V pwr.
Audio OUT
Audio IN
PWM
INTERRUPT
I2C2
UART2
UART1
I2C1
Ground
VCC-EXT
mikromedia 4
for STM32 CAPACITIVE
U S E R M A N U A L
1
CONNECTIVITY
P A G E 23
mikromedia 4for STM32 CAPACITIVE U S E R M A N U A L
Figure 13: mikromedia 4 back view
1
mikromedia 4
for STM32 CAPACITIVE
U S E R M A N U A L
6. Sound-related peripherals
By offering a pair of sound-related peripherals, mikromedia 4
rounds-up its multimedia concept. It features a piezo-buzzer,
which is extremely easy to program but can produce only the
simplest sounds, useful only for alarms or notifications.
The second audio option is the powerful VS1053B IC (1). It is
an Ogg Vorbis/MP3/AAC/WMA/FLAC/WAV/MIDI audio decoder,
and a PCM/IMA ADPCM/Ogg Vorbis encoder, both on a single
chip. It features a powerful DSP core, high-quality A/D and
AUDIO
D/A converters, stereo headphones driver capable of driving
a 30Ω load, zero-cross detection with the smooth volume
change, bass and treble controls, and much more.
2
6.1 Piezo buzzer
P A G E 24
P A G E 24
A piezo buzzer (2) is a simple device capable of reproducing sound. It
is driven by a small pre-biased transistor. The buzzer can be driven by
applying a PWM signal from the MCU at the base of the transistor: the
pitch of the sound depends on the frequency of the PWM signal, while the
volume can be controlled by changing its duty cycle. Since it is very easy to
program, it can be very useful for simple alarms, notifications, and other
types of simple sound signalization.
Figure 14: mikromedia 4 back view
mikromedia 4for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4
for STM32 CAPACITIVE
U S E R M A N U A L
decode audio streams independently while performing DSP-related tasks
in parallel. The VS1053B has several key features that make this IC very
popular choice when it comes to audio processing.
By offering high-quality hardware compression (encoding), the VS1053B
allows the audio to be recorded taking up much less space compared to
the same audio information in its raw format. In combination with high-
quality ADCs and DACs, headphones driver, integrated audio equalizer,
volume control, and more, it represents an all-around solution for any
type of audio application. Along with the powerful graphics processor, the
VS1053B audio processor completely rounds-up the multimedia aspects
of the mikromedia 4 development board.
6.3 Audio connectors
The mikromedia 4 board is equipped with the 3.5mm four-pole headphones
jack (3), allowing to connect a headset with a microphone. Two line-level
audio outputs are also available over the 1x26 pin header (4).
AUDIO
6.2 Audio CODEC
Resource-demanding and complex audio processing tasks can be
offloaded from the host MCU by utilizing a dedicated audio CODEC IC,
labeled as VS1053B (1). This IC supports many different audio formats,
commonly found on various digital audio devices. It can encode and
mikromedia 4for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
4
153
The microphone input from the 3.5mm four-pole headset jack is
multiplexed with two line-level audio inputs. By using an SMD jumper (5)
located near the headphone jack, it is possible to select which audio input
will be used by the VS1053B. The choices are:
LIN: two line-level inputs form the 1x26 pin header
MIC: electret microphone, connected over the 3.5mm headphone jack
P A G E 25
P A G E 25
mikromedia 4
for STM32 CAPACITIVE
U S E R M A N U A L
7. Sensors and other peripherals
OTHER PERIPHERALS
P A G E 26
P A G E 26
A set of additional onboard sensors and devices adds yet
another layer of usability to the mikromedia 4 development
board.
7.1 Ambient light sensor
An ambient light sensor (ALS) (1) can be used for dimming the screen
intensity in low-light conditions, allowing for the lower power consumption.
It can also be used to detect the proximity and turn on the screen or
increase its brightness when the user approaches. The ALS sensor on the
mikromedia 7 can be utilized in many ways. The LTR-329ALS-01 sensor
uses the I2C interface to communicate with the host MCU.
7.2 Digital motion sensor
The FXOS8700CQ, an advanced integrated 3-axis accelerometer and 3-axis
magnetometer, can detect many different motion-related events, including the
orientation event detection, freefall detection, shock detection, as well as tap,
and double-tap event detection. These events can be reported to the host MCU
over two dedicated interrupt pins, while the data transfer is performed over the
I2C communication interface. The FXOS8700CQ sensor can be very useful for
display orientation detection. It can also be used to turn mikromedia 4 into a
complete 6-axis e-compass solution. The I2C slave address can be changed by
using two SMD jumpers grouped under the ADDR SEL label (2).
Figure 15: mikromedia 4 partial front view
431
mikromedia 4for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4
for STM32 CAPACITIVE
U S E R M A N U A L
7.3 IR receiver module
An infrared (IR) receiver (3) with the integrated PIN diode and a
demodulation section allows simple control over an IR remote controller
to be implemented. Thanks to the integrated demodulation section,
the captured IR signal from the remote controller can be directly used
by the host MCU. The TSOP6238 IR receiver module allows very simple
implementation of the IR remote control option, for any application.
mikromedia 4for STM32 CAPACITIVE U S E R M A N U A L
mikromedia 4 for STM32 CAPACITIVE U S E R M A N U A L
7.4 RGB LED
Figure 16: mikromedia 4 partial back view
2
A high-brightness RGB LED (4) option can be used to provide visual feedback
in a very simple way. There are three pre-biased bipolar transistors on
each of the RGB LED segments (red, blue, and green), allowing them to be
individualy dimmed by PWM pins of the host MCU. Thanks to its reasonably
low power consumption compared to a TFT display, RGB LED can be used
in many situations when only simple visual feedback is required (e.g.
signaling that the application is in the Stand-By mode)
OTHER PERIPHERALS
P A G E 27
P A G E 27
7.5 Temperature sensor
The MCP9700A, an integrated low-power linear active thermistor allows
measurement of the ambient temperature. This sensor provides an analog
voltage which changes linearly with the applied temperature. This voltage
can be sampled by the A/D converter on the host MCU, making it available
for various user applications. The MCP9700A can measure the temperature
within the range from -40°C to +125°C, but the actual measurement range
is limited by the thermal endurance of the mikromedia 4 board itself.
Nevertheless, having a thermal sensor on board is very useful, allowing the
development of thermal monitoring applications, weather stations, and
similar.
7.6 Real-time clock (RTC)
RAPID
DEVELOPMENT
OF MULTIMEDIA
OTHER PERIPHERALS
P A G E 28
The host MCU contains a real-time clock peripheral module (RTC). The
RTC peripheral uses a separate power supply source, typically a battery. To
allow continuous tracking of time, mikromedia 4 is equipped with a button
cell battery that maintains RTC functionality even if the main power supply
is OFF. Extremely low power consumption of the RTC peripheral allows
these batteries to last very long. The mikromedia 4 development board is
equipped with the button cell battery holder, compatible with the CR1216,
CR1220 and CR1225 button cell battery types, allowing it to include a real
time clock within the applications.
AND GUI-CENTRIC
APPLICATIONS
mikromedia 4for STM32 CAPACITIVE U S E R M A N U A L
What’s Next?
You have now completed the journey through each and every feature of mikromedia 4 for STM32 CAPACITIVE development board.
You got to know its modules and organization. Now you are ready to start using your new board. We are suggesting several steps
which are probably the best way to begin.
1 COMPILERS
Easy programming, clean interface, powerful debugging, great support - our
compilers come in three different flavors: mikroC PRO for ARM, mikroBASIC
PRO for ARM and mikroPASCAL PRO for ARM, offering a complete rapid
embedded development solution for these 3 major programming languages.
www.mikroe.com/compilers/compilers-arm
2 PROJECTS
Once you have chosen your compiler, and since you already got the board, you
are ready to start writing your first projects. We have equipped our compilers
with dozens of examples that demonstrate the use of each and every feature
of the mikromedia 4 for STM32 CAPACITIVE development board. This makes an
excellent starting point for future custom projects. Just load the example, read
well commented code, and see how it works on hardware.
3 COMMUNITY
We invite you to join thousands of users of Mikroe development tools. You will
find useful projects and tutorials and get help from a large user community.
If you want to download free projects and libraries, or share your own code,
please visit the Libstock website. With user profiles, you can get to know other
programmers, and subscribe to receive notifications on their code.
www.libstock.mikroe.com
4 SUPPORT
Mikroe offers free Tech Support to the end of its life span, so if anything goes
wrong, we are ready and willing to help. We know how important it is to be able
to rely on someone in the moments when we are stuck with our projects for
any reason, or facing a deadline. This is why our Support Department, as one
of the pillars upon which our company is based, now also offers the Premium
Technical Support to business users, ensuring even shorter time-frame for
solutions. www.mikroe.com/support
D I S C L A I M E R
All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright
material. No part of this manual, including product and software described herein, must be reproduced, stored in a retrieval system, translated or transmitted in any form or
by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use, but not for distribution. Any modification
of this manual is prohibited.
MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or conditions of
merchantability or fitness for a particular purpose.
MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall MikroElektronika, its
directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for loss of business profits and
business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if MikroElektronika has been advised of the
possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any time without prior notice, if necessary.
HIGH RISK ACTIVITIES
The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in hazardous
environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life
support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or environmental damage (‘High
Risk Activities’). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities.
TRADEMARKS
The MikroElektronika name and logo, the MikroElektronika logo, mikroC, mikroBasic, mikroPascal, mikroProg, mikromedia, Fusion, Click boards™ and mikroBUS™ are trademarks
of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.
All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only used for
identification or explanation and to the owners’ benefit, with no intent to infringe.
If you want to learn more about our products, please visit our website at www.mikroe.com
If you are experiencing some problems with any of our products or just need additional information,
please place your ticket at www.mikroe.com/support
If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.