RGB to HDMI using a Pi Zero and a small CPLD

for bbc micro/electron hardware, peripherals & programming issues (NOT emulators!)
User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by Elminster » Fri Sep 14, 2018 10:58 pm

alienkidmj12 wrote:
Fri Sep 14, 2018 10:16 pm
are you able to give me some advice to those less fortunate to have a complete one and a bit unsure how to proceed with putting these together ?

what do we do with the files for this, what do i we load gerber files into ?

what programmers do we need if any ?

thanks

dave
You send the gerbeds to the people manufacturing the boards. It is a Xilinx CPLD, so you would need one of there programmers. Cheap version available on eBay. Dave covered those fairly in-depth for his ice-t project. https://github.com/hoglet67/AtomBusMon/ ... requisites

I just refer back to that project whenever I program a xlinix, plus my own notes
Last edited by Elminster on Sat Sep 15, 2018 8:58 am, edited 1 time in total.

User avatar
hoglet
Posts: 7694
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Sat Sep 15, 2018 8:50 am

alienkidmj12 wrote:
Fri Sep 14, 2018 10:16 pm
are you able to give me some advice to those less fortunate to have a complete one and a bit unsure how to proceed with putting these together ?

what do we do with the files for this, what do i we load gerber files into ?
The ZIP of gerber files is in the right format to be uploaded to Seed Studio:
https://github.com/hoglet67/RGBtoHDMI/b ... turing.zip
https://www.seeedstudio.com/fusion_pcb.html

I do now have 10 blank "v4" boards (thanks to Revaldinho), which I'm planning to sell for £5.00 each (including UK postage).

I would however like to build one up myself first, just to check they are OK.

I also need to add a BOM (Bill of Materials) to the Wiki.
alienkidmj12 wrote:
Fri Sep 14, 2018 10:16 pm
what programmers do we need if any ?
I use one of these:
https://www.ebay.co.uk/itm/Xilinx-Platf ... 2154533106

Dave
Last edited by hoglet on Sat Sep 15, 2018 9:09 am, edited 2 times in total.

User avatar
tricky
Posts: 2947
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by tricky » Sat Sep 15, 2018 11:01 am

Like the new Icon, but I also liked the old one :)

Do you think it would take much to be able to stream the raw bits over USB to do video capture?

I realise that there would be no sound and that the data would need packaging to make it playable.

User avatar
marcusjambler
Posts: 464
Joined: Mon May 22, 2017 11:20 am
Location: Bradford
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by marcusjambler » Sat Sep 15, 2018 11:13 am

planning to sell for £5.00 each (including UK postage).
Hi Hoglet
Please put me down for 1 pcb

Marcus

User avatar
hoglet
Posts: 7694
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Sat Sep 15, 2018 11:14 am

tricky wrote:
Sat Sep 15, 2018 11:01 am
Do you think it would take much to be able to stream the raw bits over USB to do video capture?
I've no idea how you would do this over USB (from Bare Metal code).

I was thinking you could save the data to RAM (possibly even with some compression) and then write that back to the SD Card.

That would need some bare metal SD Card drivers, which do exist.

alienkidmj12
Posts: 48
Joined: Sat Aug 26, 2017 8:30 am
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by alienkidmj12 » Sat Sep 15, 2018 8:01 pm

id like a pcb

cervaro
Posts: 5
Joined: Sun Feb 18, 2018 9:31 am
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by cervaro » Wed Sep 19, 2018 5:03 pm

I'd be potentially interested in a PCB if a complete item weren't available.

User avatar
IanB
Posts: 307
Joined: Sun Sep 04, 2011 7:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Thu Sep 20, 2018 1:38 am

hoglet wrote:
Sat Sep 15, 2018 8:50 am
I do now have 10 blank "v4" boards (thanks to Revaldinho), which I'm planning to sell for £5.00 each (including UK postage).
I'd be interested in at least 1 board, maybe more if there aren't many takers.

PhilYoung
Posts: 195
Joined: Sun Jun 12, 2011 4:55 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by PhilYoung » Thu Sep 20, 2018 8:43 am

I'd appreciate a board if you're starting a list,

Cheers,

Phil Young

User avatar
hoglet
Posts: 7694
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Thu Sep 20, 2018 6:13 pm

OK, I best start a list for the ten bare boards: :D
- BigEd (1)
- Revaldinho(1)
- marcusjambler (1)
- alienkidmj12 (1)
- lcww1 (1)
- cervaro (1)
- IanB (2)
- PhilYoung (1)
- sjo03 (1)

Hope I didn't miss anyone.

Dave
Last edited by hoglet on Sat Oct 06, 2018 7:43 am, edited 1 time in total.

User avatar
hoglet
Posts: 7694
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Sun Sep 23, 2018 11:58 am

I've added a Bill of Materials to the Wiki:
https://github.com/hoglet67/RGBtoHDMI/w ... -Materials

It is not really cost effective to buy the parts for a single board. So ideally one person needs to order the parts for 10 boards and the split these into "kits". The only problem then is when a SMT resistor goes pinging across the room :D

Dave
Last edited by hoglet on Sun Sep 23, 2018 11:59 am, edited 1 time in total.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by Elminster » Sun Sep 23, 2018 12:04 pm

Had anything be costed up how many of item X we would need orders for to do a manufacture run (I.e. with pick and place)? I know several people have said it is surprisingly cheap/easy to do.

sjo03
Posts: 3
Joined: Thu Nov 17, 2011 5:05 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by sjo03 » Fri Oct 05, 2018 10:00 pm

I would love to have one or two of the boards if still possible
hoglet wrote:
Thu Sep 20, 2018 6:13 pm
OK, I best start a list for the ten bare boards: :D
- BigEd (1)
- Revaldinho(1)
- marcusjambler (1)
- alienkidmj12 (1)
- lcww1 (1)
- cervaro (1)
- IanB (2)
- PhilYoung (1)

Hope I didn't miss anyone.

Dave

User avatar
hoglet
Posts: 7694
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Sat Oct 06, 2018 7:54 am

Sorry I've been a bit slow on following this up, I've been busy on other things for a couple of weeks.

I have built up one of the new V4 boards and there were no issues (the changes were very minor).
sjo03 wrote:
Fri Oct 05, 2018 10:00 pm
I would love to have one or two of the boards if still possible
I've added you to the list for the last board.

Everyone on the above list should get a PM from me over the weekend.

All the required gerber files are on github, so anyone is free to order 10 of these boards directly from Seeed for about £12. See here for more details:
https://github.com/hoglet67/RGBtoHDMI/w ... anufacture

Dave

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by Elminster » Sat Oct 06, 2018 8:28 am

Is there any exiting difference on the newer version to the ones you sent it before? I.e. if v3 changes are minor but not sure what version you sent out before. My current one has been working perfectly on all the machines I tested it on.

Also is it worth reprogramming the original version with latest code? Seem to have been quite a few changes.
Last edited by Elminster on Sat Oct 06, 2018 8:31 am, edited 2 times in total.

User avatar
danielj
Posts: 6687
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by danielj » Sat Oct 06, 2018 8:40 am

I've just idly pinged in an order to JLC - I think they'll panelise (the dimensions seem to fit - but I await rejection!), so that'll be 30 boards for £8 if they do it. 12-25 days on shipping though... Will post when (if) they appear.

User avatar
danielj
Posts: 6687
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by danielj » Sat Oct 06, 2018 12:48 pm

Being drilled! Seems they're happy to do a 3x1 panel (comes in under 10cm squared). Quite surprised!

d.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by Elminster » Sat Oct 06, 2018 12:57 pm

Always amuses me it takes hours to make them, but then weeks in the post. I assume you will built all 30 :lol: :evil: :wink:
Last edited by Elminster on Sat Oct 06, 2018 10:45 pm, edited 1 time in total.

User avatar
danielj
Posts: 6687
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by danielj » Sat Oct 06, 2018 1:08 pm

Unlikely :D. I know what you mean... I'm not in any rush though, so not willing to pay the £18 for them to appear in 4 days flat :)

d.

User avatar
JudgeBeeb
Posts: 732
Joined: Thu Sep 10, 2015 8:56 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by JudgeBeeb » Sat Oct 06, 2018 10:11 pm

Elminster wrote:
Sat Oct 06, 2018 12:57 pm
Always anuses me
:shock: :shock: :shock:
There is so much wonder in the universe; why should you want to imagine that there is more?

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by Elminster » Sat Oct 06, 2018 10:46 pm

JudgeBeeb wrote:
Sat Oct 06, 2018 10:11 pm
Elminster wrote:
Sat Oct 06, 2018 12:57 pm
Always anuses me
:shock: :shock: :shock:
The joys of typing on a smart phone, typo corrected.

User avatar
vanekp
Posts: 555
Joined: Thu Nov 30, 2000 7:09 am
Location: The Netherlands
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by vanekp » Sun Oct 07, 2018 11:13 am

I am curious how Labyrinth works with this unit I have one from e-bay and it does odd things if i try to play Labyrinth on a hdmi monitor, as it does some weird things with the screen layout.
Last edited by vanekp on Sun Oct 07, 2018 11:28 am, edited 1 time in total.
Peter.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by Elminster » Sun Oct 07, 2018 11:30 am

vanekp wrote:
Sun Oct 07, 2018 11:13 am
I am curious how Labyrinth works with this unit I have one from e-bay and it does odd things if i try to play Labyrinth on a hdmi monitor, is it does some weird things with the screen layout.
You have one of Hoglet’s acorn RGB to raspberry pi interfaces from eBay?

Assume you are referring to those gbs things, I never good get as good a picture dialled in in one of them as Hoglet device. The gbs went in the bin.
Last edited by Elminster on Sun Oct 07, 2018 11:31 am, edited 1 time in total.

User avatar
vanekp
Posts: 555
Joined: Thu Nov 30, 2000 7:09 am
Location: The Netherlands
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by vanekp » Sun Oct 07, 2018 11:54 am

Peter.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by Elminster » Sun Oct 07, 2018 1:40 pm

vanekp wrote:
Sun Oct 07, 2018 11:54 am
I got one of these units https://www.ebay.com/itm/SCART-RGB-or-C ... 3808543638
Ah I have one of those as well (well similar, different make’, but use it to convert to vga and then onto a network KVM. What is the issue you are having? and someone can test it.
Last edited by Elminster on Sun Oct 07, 2018 1:40 pm, edited 1 time in total.

User avatar
vanekp
Posts: 555
Joined: Thu Nov 30, 2000 7:09 am
Location: The Netherlands
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by vanekp » Sun Oct 07, 2018 1:54 pm

if I run Labyrinth which I think uses a higher frequency to display the mode it keeps re sinking and the picture jumps, which is why I was wondering if the pi zero unit handled that correctly.
Peter.

User avatar
hoglet
Posts: 7694
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Sun Oct 07, 2018 4:39 pm

I've just taken a look at Acornsoft Labyrinth and you are right, the video timings are well off.

It looks like the number of lines is actually 635 rather than the normal 625, giving a refresh rate of 49.2Hz rather than 50Hz.

RGBtoHDMI does seem to cope with this, and the picture is very stable with no jumping or loss of sync.

Dave

User avatar
IanB
Posts: 307
Joined: Sun Sep 04, 2011 7:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Sun Oct 14, 2018 3:36 pm

hoglet wrote:
Sat Oct 06, 2018 7:54 am
Everyone on the above list should get a PM from me over the weekend.
I've built up my boards and managed to get the Pi software to build using the tutorial from the pitubedirect wiki but a tutorial on how to build and program the Xilinx CPLD would be useful.

User avatar
hoglet
Posts: 7694
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Sun Oct 14, 2018 3:50 pm

IanB wrote:
Sun Oct 14, 2018 3:36 pm
I've built up my boards and managed to get the Pi software to build using the tutorial from the pitubedirect wiki but a tutorial on how to build and program the Xilinx CPLD would be useful.
Do you have the Xilinx tools already installed?

What OS are you using?

Dave

User avatar
IanB
Posts: 307
Joined: Sun Sep 04, 2011 7:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Sun Oct 14, 2018 4:39 pm

hoglet wrote:
Sun Oct 14, 2018 3:50 pm
Do you have the Xilinx tools already installed?
No, I'm not sure what version to download
hoglet wrote:
Sun Oct 14, 2018 3:50 pm
What OS are you using?
Windows 7 or 10 (both 64 bit)

Post Reply