Author Topic: Which Microcontroller to choose for Ethernet and HDMI application?  (Read 19978 times)

0 Members and 1 Guest are viewing this topic.

Offline samy03Topic starter

  • Contributor
  • Posts: 29
  • Country: us
Hi All,

I am looking for a micro-controller which can receive data from Ethernet through UDP (Multicast) and transmit the data to HDMI output with a HDMI transmitter IC.
As of now after some research I am leaning towards STM32F429ZI, as it has Ethernet capability and built-in LCD controller. On the Ethernet side STM32 does have lwIP library which can come in handy for receiving UDP. On the HDMI side I will use LCD controller pins of STM32, I will take the 24 bit RGB signal and will use an IC like SIl9022 as HDMI Transmitter to get HDMI output.
Is this something that will work or do I need to choose another micro-controller? I would really appreciate your suggestions.

Thank you
 

Offline llkiwi2006

  • Regular Contributor
  • *
  • Posts: 105
  • Country: nz
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #1 on: December 29, 2017, 11:15:00 pm »
What kind of resolution and refresh rate do you want to be operating at? Micro-controllers are not the best at pushing high data rates.

If you budget and size allows, you could whack a raspberry pi in there (or even a pi zero with a external ethernet adapter).
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 4007
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #2 on: December 29, 2017, 11:16:24 pm »
Your question is not well defined.  It can work but it also can't. It all depend on what you will be doing there.

The first question that comes in mind: What resolution do you expect at the HDMI and what framerate?  The 429ZI limits you to use only of 16bit SDRAM. That quite limits the available resolution and what can be done with the graphics.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 29701
  • Country: nl
    • NCT Developments
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #3 on: December 30, 2017, 12:57:10 am »
If the data comes in through the network in a raw format then the framerate is going to be limited anyway because you can't pump that much data over a network. I'm also wondering how you'd handle missing UDP frames.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6709
  • Country: nl
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #4 on: December 30, 2017, 09:49:07 am »
My first question would be: what is the production number of units?
If it is below 1000 use a beaglebone or use the open HW schematics and BOM to design youw own version. It will save you bigtime on NRE costs.
 

Offline asmi

  • Super Contributor
  • ***
  • Posts: 3212
  • Country: ca
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #5 on: January 01, 2018, 02:34:07 am »
The answer is likely "none". MCUs are not really designed for high bandwidth applications, you will need full-featured MPU or - even better - FPGA.

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #6 on: January 01, 2018, 03:05:54 am »
"Raspberry pi" + VLC ?

There will likely be a few hundred microseconds delay

I agree that the RPI Ethernet is likely to be problematic. Try getting a USB3 capable gigabit LAN adapter this will more than triple the RPI's lan speed but still be rate limited by the internal USB which maxes out at a total of around 480 MBPS for everything added up together.  On a machine with USB3 the same adapter will do full gigabit lan. On an RPI3 you should still get >200 MBPS in USB2 backwards compatibility mode.
« Last Edit: January 01, 2018, 03:11:23 am by cdev »
"What the large print giveth, the small print taketh away."
 

Offline samy03Topic starter

  • Contributor
  • Posts: 29
  • Country: us
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #7 on: January 02, 2018, 02:31:09 pm »
From Ethernet I will just receive a text in my Multicast message, the text will then be displayed over HDMI in form of an image. So I am not sure how much bandwidth will be required for this. What do you guys think? I would like to have a good resolution display at least 720 or 1080p.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14611
  • Country: gb
    • Mike's Electric Stuff
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #8 on: January 02, 2018, 02:40:35 pm »
FPGA plus Wiznet W5500 to handle the Ethernet
or a rasPi/beaglebone/whatever which has pretty much all the hardware ready to go. Unless you're making thousands, that's going to be a lot cheaper
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 4007
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #9 on: January 02, 2018, 02:46:16 pm »
Well, with a 32bit SDRAM on the STM32F429 it is possible to have 1024x768 output with still decent graphics, 1280x720 therefore it might be possible, but you are right at or slightly above the edge of what is sensible to do here.

For such application, if you insist upon doing a custom design with MCU, I would highly recommend switching for a beefier one, like STM32H7, that would cope with the HD resolution quite well.
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #10 on: January 02, 2018, 02:50:31 pm »
From Ethernet I will just receive a text in my Multicast message, the text will then be displayed over HDMI in form of an image. So I am not sure how much bandwidth will be required for this.
Only as much as you have text to send, which I imagine is not very much? A Raspberry Pi sounds almost ideal for the job.

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2332
  • Country: 00
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #11 on: January 02, 2018, 02:56:12 pm »
Amlogic S912, Cortex A53
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4319
  • Country: us
  • KJ7YLK
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #12 on: January 02, 2018, 03:10:46 pm »
Yes, if you are simply receiving a "message" (a few hundred bytes?) and displaying an "image" (still?, animated? video of some framerate?) then a RaspberryPi (or one of the many similar commercial products) would seem ideally suited for both development and deployment.  Even a RasPi Zero would work well depending on the complexity (size) of the displayed images.

As has already been mentioned, the definition of several of your criteria, as well as the nature, economics, deployment details, etc. would influence this kind of decision.

I have a somewhat similar question, about identifying a commercial single-board controller with Ethernet and HDMI that is capable of implementing the NDI protocol (https://www.newtek.com/ndi/sdk/)  But that is actually streaming live, HD video.
 

Offline samy03Topic starter

  • Contributor
  • Posts: 29
  • Country: us
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #13 on: January 02, 2018, 03:21:08 pm »
I have tried beaglebone but I also had a HDMI switch using (TS3DV642) connected at the output, and due to some back EMF it kept shutting off my beaglebone and all the power leds on beagle would shut off until I disconnect my HDMI switch and then power it back on.
 

Offline samy03Topic starter

  • Contributor
  • Posts: 29
  • Country: us
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #14 on: January 02, 2018, 03:27:19 pm »
And beaglebone and raspberry pi does not have all the hardware I need. I also need to drive an LED Matrix, add POE, and HDMI switch. I would end up with a custom design anyways.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14611
  • Country: gb
    • Mike's Electric Stuff
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #15 on: January 02, 2018, 03:32:16 pm »
And beaglebone and raspberry pi does not have all the hardware I need. I also need to drive an LED Matrix, add POE, and HDMI switch. I would end up with a custom design anyways.
RasPi Compute module perhaps ?
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 29701
  • Country: nl
    • NCT Developments
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #16 on: January 02, 2018, 03:33:21 pm »
And beaglebone and raspberry pi does not have all the hardware I need. I also need to drive an LED Matrix, add POE, and HDMI switch. I would end up with a custom design anyways.
True but in case of the Beaglebone you can use the schematics to start your own circuit board (probably with chips in more friendly packages). Using seperate boards is asking for problems but it is a good way to put a demonstrator together.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14611
  • Country: gb
    • Mike's Electric Stuff
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #17 on: January 02, 2018, 03:35:08 pm »
Might be worth looking at the PIC32MZ DA - supports 24 bit up to 1280x1024 with onboard 32Mbyte DDR2, and up to 2M flash, plenty for high-res font storage.

http://www.microchip.com/design-centers/32-bit/architecture/pic32mz-da-family
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #18 on: January 02, 2018, 04:36:40 pm »
And beaglebone and raspberry pi does not have all the hardware I need. I also need to drive an LED Matrix, add POE, and HDMI switch. I would end up with a custom design anyways.
You'll save everyone time and get better suggestions if you list all your requirements instead of dripfeeding them.

Offline samy03Topic starter

  • Contributor
  • Posts: 29
  • Country: us
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #19 on: January 02, 2018, 05:14:25 pm »
Okay so I'll be receiving text from Ethernet through UDP, which will be displayed on HDMI output in form of an image, and the HDMI Switch will also be connected at the HDMI output.
I will also receive a sound file through Ethernet which will be output on an Audio Jack connector for speakers.
I also have to drive an LED Matrix and display the data received from Ethernet. Plus the unit should also have POE. That's all!
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17460
  • Country: fr
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #20 on: January 02, 2018, 05:49:09 pm »
The Raspberry Pi (and many similar boards) actually has GPIO's, SPI and I2C that you can control. Not really real-time, but for driving an LED matrix (which I suppose is some kind of display), it may prove more than adequate. Surely it's the fastest way of implementing what you described. The downside is, you may not like having to depend on (and bear the boot times of) a Linux OS. The upside, you'll get access to loads of libraries to implement nice GUIs with HDMI output, you'll get all the required drivers including Ethernet, and a lot of memory (RAM and Flash).

If you really need real-time control and/or more IO's, you could also develop a small MCU-based board that would handle the low-level stuff and communicate with the Pi (or some other SBC) through SPI or USB. Then all the higher-level stuff could be done on SBC's or even PC's, making it versatile.

As you have already been told, you won't find any MCU with an HDMI output. You'll find that on bigger CPU's along with a lot of RAM and an integrated graphics controller. Directly using those on a low-cost, low-volume project is just not doable in my opinion, hence the approach of getting a ready-made module.

You can find a whole range of MCU's with Ethernet controllers though, so there is another option yet, finding an external video module with HDMI output. I remember one from 4D Systems but with VGA output only: http://www.4dsystems.com.au/product/uVGA_III/ . It's not cheap though, and has limited resolution. Not sure if you can find any with HDMI output. Even if you do, it will probably not be cost-effective at all compared to a solution like a Pi Zero + a custom small MCU board.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14611
  • Country: gb
    • Mike's Electric Stuff
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #21 on: January 02, 2018, 07:53:56 pm »
Okay so I'll be receiving text from Ethernet through UDP, which will be displayed on HDMI output in form of an image, and the HDMI Switch will also be connected at the HDMI output.
I will also receive a sound file through Ethernet which will be output on an Audio Jack connector for speakers.
I also have to drive an LED Matrix and display the data received from Ethernet. Plus the unit should also have POE. That's all!
Build quantity ?
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline samy03Topic starter

  • Contributor
  • Posts: 29
  • Country: us
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #22 on: January 02, 2018, 08:05:39 pm »
Probably around 200-300 per year.
 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #23 on: January 02, 2018, 11:57:32 pm »
Okay so I'll be receiving text from Ethernet through UDP, which will be displayed on HDMI output in form of an image, and the HDMI Switch will also be connected at the HDMI output.
I will also receive a sound file through Ethernet which will be output on an Audio Jack connector for speakers.
I also have to drive an LED Matrix and display the data received from Ethernet. Plus the unit should also have POE. That's all!

An Orange Pi PC ($15 http://www.orangepi.org/orangepipc/ ) + Armbian (free) + node.js (free) can do all that very very well, piece of cake, and it's a one day job or two no more. But you don't mention if boot times of 10..15s are ok for your application.
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 4007
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Which Microcontroller to choose for Ethernet and HDMI application?
« Reply #24 on: January 03, 2018, 12:02:42 am »
I can guarantee you it will not be a two day job.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf