cancel
Showing results for 
Search instead for 
Did you mean: 

Interface STEVAL-mki062v2 to STM32VLDISCOVERY

nico23
Associate III
Posted on September 13, 2012 at 19:10

I apologize

right now

for my English

.

I purchased a

STM32VLDISCOVERY

and

unsteval

-

mki0

+2

v2

both

st

microelectronics.

I tried the

program

that is given

with the second

component, and

seemed very

nice.

Wanted

hours

interfacing the

STEVAL

-

mki062v2

with

the

STM32VLDISCOVERY

so that

,

for

example

,

if the

sensor has a

temeprature

of

more than 30

degrees

turns on

an LED

,

if

not

remains off

.

How do I do

or where I can

find material

with explanations

?

Thanks

for your help

#c++-programming-st32-tutorial
5 REPLIES 5
raptorhal2
Lead
Posted on September 14, 2012 at 00:04

The STEVAL comes with an on board F103 processor and LED. Will that serve your purpose ?

If you really want to use the Discovery, investigate an SPI to SPI interface between STEVAL and Discovery.

Cheers, Hal

nico23
Associate III
Posted on September 14, 2012 at 16:22

I noticed that the

STEVAL

already

mounted

an LED.

But I

'd like to do

with the

discovery.

So could you

tell me

the guides

to get started?

And what is it SPI to SPI?

raptorhal2
Lead
Posted on September 14, 2012 at 20:49

You are trying to connect two independent ST products. Look through the iNEMO forum posts, perhaps someone has done something like this already.

Failing that, first read the STEVAL user manual. I believe it describes an SPI interface connector on the board you can wire to an SPI on the Discovery. Then read the STM32F103 Reference Manual on how to use the SPI interface.

A simpler approach might be to use just one of the SPI pins in GPIO mode wired to a GPIO pin on the Discovery. If controlling a LED is all you want to do, that will be sufficient. But is you wish to do more and need to transfer data between the two, SPI can do that.

Then read the Discovery user manual to pick an available SPI or GPIO connection, and the Discovery processor reference manual on SPI or GPIO on how to sense the signal(s) from the EVAL.

Then you need to code two applications, one in the EVAL F103 processor to sense temperature and send a signal to Discovery, and one in the Discovery processor to sense the signal and illuminate the LED. And you may have to figure out how to troubleshoot communication between the two processors. Simple, no ?

Cheers, Hal

nico23
Associate III
Posted on September 15, 2012 at 15:16

Look

I'm not very

expert on

microcontrollers (

Arduino

are

practical

only

).

I

need

that when

the

STEVAL

we

measure

a

temperatra

greater than 20

degrees

face

turn on

an LED on the

discovery

.

Otherwise

they

let us

accandere

another.

Could you tell me

where I can find

the

manual

STEVAL

?

raptorhal2
Lead
Posted on September 15, 2012 at 17:15

On the same page where you select the STM32 Discovery forum, there is a list of public forums on the right. Click on the Microcontrollers arrow to expand the menu, then select iNEMO MEMS. This will take you to a page with links to all STEVAL information.

Cheers, Hal