Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few Arduino and sensors on Arduino shields. I also have a STM32F4 Discovery evaluation board. For a hobby project, I have a feature on an Arduino (Ethernet port on my EtherMega) that I would like to use from the STM32. The STM32 can generate VGA signal, but needs a connection to my local network.

How can I transfer information between these two boards, and what additional components are required ?

share|improve this question
Did you solve the problem? I get the same problem that using I2C communication between arduino and STM32F. – polor Jul 24 '14 at 6:07

The easiest solution would most likely involve an I2C connection between the two boards. I'm not familiar with the EtherMega, but I know the STM32F4-Discovery has several I2C pins available. You could then let the Arduino handle the network protocol, and only shift the relevant information over to the STM. Whether or not this will be fast enough for your purpose, I cannot say.

The only thing you need in terms of extra components is a way of level-shifting the (presumably) 5V of the Arduino to the 3.3V of the STM32F4-Discovery. For I2C a simple solution is to use an n-channel mosfet with two pull-up resistors per line (SDA, SCL - so 2 mosfets and 4 resistors in total). Philips/NXP has a very nice application note on this, specifically for I2C, available here:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.