cancel
Showing results for 
Search instead for 
Did you mean: 

interface stm32f401 NUCLEO-64 board with arduino uno r3 model

Mpraj.19
Associate II

i want support for how to connect both board with each other. i want supporting document for it.

i want examples to learn about them.

6 REPLIES 6

Interface how? UART, SPI, I2C?

Not exactly a paring that are going to have a complement of examples.

The CubeF4 trees should have a large selection of examples for the board, using the different interfaces/peripherals.

There are manuals for the Nucleo board, along with schematics. And data sheets and manuals for the STM32F401 parts that will help with the pin/peripheral associativity and underlying operation.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

i want to know can i connect both board with each other using expansion header ?

I bought both board to learn about them practically.

so i need example reference also.

S.Ma
Principal

If you want an arduino uno to talk to a nucleo, yes you problably can. Use jumper wires to do so. Of course, you won't have room to stack a shield then. Most new stm32 can swap uart rx tx pin so you can direct connect all digital and analog signals. Make sure that rx tx are 5v tolerant pins on stm32 side (check datasheet of selected mcu)

@Mpraj.19​ "i want to know can i connect both board with each other using expansion header ?"

This still leaves the question of what pins you want to use - UART? SPI? I2C? Other?

"I bought both board to learn about them practically."

I would strongly suggest that's not a great starting point - you are giving yourself too many unknows all at once!

This comes up frequently!

0693W00000QM3ETQA1.pnghttps://community.st.com/s/question/0D53W00001g0zuFSAQ/how-to-control-one-stm32-using-another-stm32-via-uartusart

https://community.st.com/s/question/0D53W00001dwYIASA2/i2c-master-transmit-and-slave-receive-functions-work-master-receive-and-slave-transmit-dont

It would be far better, I suggest, to:

  1. take just one of those boards, and learn to use its interfaces.
  2. then take the other, and learn to use its interfaces.
  3. finally, when you are competent with both boards, you will have the necessary skills & experience to connect them together.

Probably the easiest starting point would be to use the Arduino and its UART to communicate with a terminal on your PC.

Here's a tutorial on serial (UART) comms: https://learn.sparkfun.com/tutorials/serial-communication

Next, use the Arduino to interface with some common, standard, well-known SPI and I2C peripherals - there are loads available; eg,

https://learn.sparkfun.com/tutorials/i2c

https://learn.sparkfun.com/tutorials/serial-peripheral-interface-spi

Some microcontroller Getting Started tips: https://www.avrfreaks.net/comment/1138166#comment-1138166

@S.Ma​  "If you want an arduino uno to talk to a nucleo, yes you problably can"

It is certainly possible!

"Use jumper wires to do so. Of course, you won't have room to stack a shield then"

Lots of shields have pass-through connectors - so don't necessarily preclude also adding jumper to external hardware.

Of course, you do have to pay attention that the shield doesn't interfere with the pins you want to use...

"5v tolerant pins on stm32 side"

Indeed.

Or use a 3V Arduino ...

The concept here is that you plug in compatible shields, not an Arduino board itself. They are equivalent Hosts with an MCU​.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..