News for hackers. Stuff that matters.
Re:Let's build a circuit that displays an image on a VGA mon... by exar0815 on Sunday July 07, 2019 @01:39PM (#20376393)
I can only recommend the "Veronica"-Series of Quinn Dunki, where she builds a complete graphics card for her 8-Bit-computer, as well as the computer itself

http://quinndunki.com/blondihacks/?page_id=1761

Re:Let's build a circuit that displays an image on a VGA mon... by jaak on Sunday July 07, 2019 @03:19PM (#20377157)
Not to take away from Quinn Dunki's accomplishments, one big difference is the Veronica used an ATmega 324PA - basically an 8 bit 20 MIPS RISC CPU.

Generating a VGA signal is trivial for this powerful chip. Entire retro game consoles have been built with similar ATmega chips alone

Ben Eater is building a VGA card from discrete components, a somewhat more difficult task. The first part covers building the H/V timing sync circuit (no programmable clock source here!). It's worth taking a look if you're into this kind of thing.

Re:Let's build a circuit that displays an image on a VGA mon... by dotancohen on Monday July 08, 2019 @02:11AM (#20380274)
Even more amazing, after watching Ben's video, I was thinking too myself "That wasn't so hard". Other than a few Arduino projects I've never used an IC, but I was able to follow along with Ben completely.

In fact, I think that a tutorial dedicated just to explain the VGA standard, the same length as Ben's tutorial, would have been less clear and informative.

Re:Let's build a circuit that displays an image on a VGA mon... by userbinator on Sunday July 07, 2019 @06:47PM (#20378490)
Generating a VGA signal is trivial for this powerful chip. Entire retro game consoles have been built with similar ATmega chips alone

For comparison, a slightly less powerful microcontroller can do this:

https://www.linusakesson.net/scene/craft/

Re:Let's build a circuit that displays an image on a VGA mon... by mrob on Sunday July 07, 2019 @04:52PM (#20377774)
>Ben Eater is building a VGA card from discrete components

From 7400 series devices, which are very simple integrated circuits by modern standards, but still integrated circuits.

Re:Let's build a circuit that displays an image on a VGA mon... by tyingq on Sunday July 07, 2019 @06:02PM (#20378231)
"From 7400 series devices, which are very simple integrated circuits by modern standards"

So it's clear, a 74xx is just a bunch of NAND gates. Nothing at all higher level than that.

Re:Let's build a circuit that displays an image on a VGA mon... by metaphor on Sunday July 07, 2019 @07:09PM (#20378605)
Except they're not. He's using 74161 counters; that's a MSI device, not just primitive combinatorial logic and flip flops.
Re:Let's build a circuit that displays an image on a VGA mon... by tyingq on Sunday July 07, 2019 @07:13PM (#20378627)
Ahh, good catch. I was distracted with the 7400 description. Though a 4 bit counter isn't terribly high level either.
Re:Let's build a circuit that displays an image on a VGA mon... by pas on Monday July 08, 2019 @03:35AM (#20380681)
Counters are a series of flip-flops anyway, right? And a few latches for reset and load.

https://easyeda.com/normal/74161X2-4qkCwOIZh.png

Re:Let's build a circuit that displays an image on a VGA mon... by mrob on Sunday July 07, 2019 @06:40PM (#20378449)
Although NAND gates are universal gates (any combinatorial boolean logic function can be built from nothing but NAND gates), in practice it's usually more space efficient to use a mixture of different gates.
Re:Let's build a circuit that displays an image on a VGA mon... by dreamcompiler on Sunday July 07, 2019 @09:36PM (#20379275)
And usually more power-efficient and faster in execution speed.
Re:Let's build a circuit that displays an image on a VGA mon... by yitchelle on Sunday July 07, 2019 @06:08PM (#20378278)
Among my group of SW engineering circle, we had a running joke that software is a series of 1s and 0s, it is the sequence that is important.
Re:Let's build a circuit that displays an image on a VGA mon... by deaddodo on Sunday July 07, 2019 @07:52PM (#20378816)
To be fair, it's almost impossible to build anything out of fully discrete components these days. If you use a TO series transistor, you could argue those are also ICs and vacuum tubes/relays aren't cheap or too easily accessible.
Re:Let's build a circuit that displays an image on a VGA mon... by mrob on Sunday July 07, 2019 @08:59PM (#20379107)
Chip photography site zeptobars.com has some photographs of modern transistors, and while some have interesting geometry, I didn't see anything that I'd consider an integrated circuit, i.e. something that would be drawn as more than a single transistor symbol on a schematic.

https://zeptobars.com/en/read/NXP-PMST3904-NPN-BJT

https://zeptobars.com/en/read/NXP-MMBT3904-npn-bjt

https://zeptobars.com/en/read/NXP-2N7002-TrenchMOS-N-Channel...

There are some "discrete" transistors with built-in ESD protection, e.g. NCV8440A, but those are unusual, and under normal operating conditions they work just like a normal transistor so I'd still count them as discrete components.

Re:Let's build a circuit that displays an image on a VGA mon... by lopmotr on Sunday July 07, 2019 @08:56PM (#20379089)
Transistors in individual packages are called discrete components. Even if they use the same technology as ICs, they're still discrete. You can certainly build useful analog and power circuits with only discrete components. Somebody even made a CPU from them [1] which was a much bigger circuit than TFA's IC video card will be so it's worth distinguishing truly discrete from simple ICs.

[1] https://monster6502.com/

Re:Let's build a circuit that displays an image on a VGA mon... by h2odragon on Sunday July 07, 2019 @09:31PM (#20379249)
Similar to the difference between asm (discrete), C (low level logic ICs), and Python (ATmega).
Re:Let's build a circuit that displays an image on a VGA mon... by kazen44 on Sunday July 07, 2019 @04:06PM (#20377473)
Also, his video makes it seem rather easy aswell. The scanline circuitry is quite simple.
Re:Let's build a circuit that displays an image on a VGA mon... by prvc on Sunday July 07, 2019 @04:38PM (#20377684)
>Also, his video makes it seem rather easy aswell. The scanline circuitry is quite simple.

Making it seem easy != easy

Re:Let's build a circuit that displays an image on a VGA mon... by amelius on Sunday July 07, 2019 @05:40PM (#20378069)
Generating a completely given digital signal should be easy, no?
Re:Let's build a circuit that displays an image on a VGA mon... by Lowkeyloki on Sunday July 07, 2019 @04:07PM (#20377477)
Depending on the definition of the word "image" in this context, I'd love to see people play the electronics component version of code golf to see what the fewest number of basic components would be required to put an "image" on a screen. No SOACs allowed.
Re:Let's build a circuit that displays an image on a VGA mon... by forgotmypw3 on Sunday July 07, 2019 @04:20PM (#20377566)
Let's just cut out the middle and build the minimum required board to project an image onto a retina. Or a signal into optic nerve ))
Re:Let's build a circuit that displays an image on a VGA mon... by makapuf on Sunday July 07, 2019 @06:12PM (#20378297)
Id try with a led illuminating the back of a pcb ? Still, nice project. The code golf fewest components to display a face is tempting ...
Re:Let's build a circuit that displays an image on a VGA mon... by nitrogen on Monday July 08, 2019 @02:20AM (#20380317)
Laser, spinning mirror, and a mask to draw a mouth at the bottom and two eyelids at the top.
Re:Let's build a circuit that displays an image on a VGA mon... by Cheyana on Saturday July 13, 2019 @08:15PM (#20430908)
Nah, let’s cut that out too and go even further: https://www.independent.co.uk/news/science/blindness-cure-br...
Re:Let's build a circuit that displays an image on a VGA mon... by jacquesm on Monday July 08, 2019 @02:08AM (#20380264)
> Or a signal into optic nerve ))

That you can do with a single LED.

Re:Let's build a circuit that displays an image on a VGA mon... by rasz on Sunday July 07, 2019 @05:12PM (#20377887)
You can get this to display "image" by just adding one wire between clock source and one/all of VGA analog inputs. It will be a random checkerboard, but still an image.
Re:Let's build a circuit that displays an image on a VGA mon... by benj111 on Sunday July 07, 2019 @06:57PM (#20378538)
Isn't 'random checkerboard' an oxymoron?

Or do you mean the top left square is randomly black/white?

Re:Let's build a circuit that displays an image on a VGA mon... by abdullahkhalids on Monday July 08, 2019 @04:44PM (#20386577)
He meant to say that each pixel will be randomly black or white. What will really happen is that the color choice for each pixel will not be random, but can actually be predicted by the various clock frequencies he used.
Re:Let's build a circuit that displays an image on a VGA mon... by atum47 on Sunday July 07, 2019 @09:24PM (#20379227)
I've been following ben eater for about 2 years now. I've learned so much from his well explained well illustrated videos. Right now it's kinda hard for me to get my hands on every component he uses, but soon I'll take a shot at building a 8 bit computer as well. I'll may start with a full adder built with transistors only.
Re:Let's build a circuit that displays an image on a VGA mon... by lnsru on Monday July 08, 2019 @02:42AM (#20380413)
Hi, I don’t know your background, but why are you not building your 8 bit computer in FPGA? There are many nice cheap boards like MAX1000 from Arrow or Lattice. It’s really cool learning project! Transistor only design will have many problems: transistors are bigger than you think and small ones in VML0806 package are almost impossible to solder by hand.
Re:Let's build a circuit that displays an image on a VGA mon... by atum47 on Tuesday July 09, 2019 @06:04PM (#20397137)
I'm a software engineer undergrad, I do most high level stuff. I took digital circuits on college, cause I like electronics. One day watching videos on YouTube I saw ben eater project and loved it. I thinker with Arduino and Raspberry pi, but never built anything cool like that. I just want to give it a try, I guess
Re:Let's build a circuit that displays an image on a VGA mon... by dreamcompiler on Sunday July 07, 2019 @09:30PM (#20379247)
That's gonna take a lot of transistors. I suggest doing it with gates instead. Using transistors is like programming a computer with machine language; using gates is more like a good macro assembler.

Building yourself one NAND gate with transistors and resistors would be a valuable learning experience, but building 100 of them won't teach you anything new.

Re:Let's build a circuit that displays an image on a VGA mon... by atum47 on Sunday July 07, 2019 @09:36PM (#20379274)
I see, I just think it will be cool to have one on my desk. Take a look a this video (https://www.youtube.com/watch?v=xISG4nGTQYE) I got the idea from it.
Re:Let's build a circuit that displays an image on a VGA mon... by dreamcompiler on Sunday July 07, 2019 @09:40PM (#20379289)
I agree the end result would be cool. I just wouldn't have the attention span for that much low-level dinking :-)
Re:Let's build a circuit that displays an image on a VGA mon... by eatonphil on Monday July 08, 2019 @08:41AM (#20382200)
Yes that's hard to debate. But if you want to get the experience without the physical complexity you can always build an 8-bit computer in a simulator like they do in many college courses. I used Logisim [0] at college for this following the Harris and Harris [1] textbook and it was a straightforward experience.

[0] http://www.cburch.com/logisim/

[1] https://www.goodreads.com/author/show/13816512.David_Money_H...

Re:Let's build a circuit that displays an image on a VGA mon... by tyingq on Sunday July 07, 2019 @07:11PM (#20378619)
Somewhat related, here's a video card for a MAC SE done with a BeagleBone and it's microcontroller like PRU secondary processors: https://trmm.net/Mac-SE_video
Re:Let's build a circuit that displays an image on a VGA mon... by TheRealPomax on Sunday July 07, 2019 @06:30PM (#20378400)
Why isn't this titled "let's build a video card [youtube]"?
Re:Let's build a circuit that displays an image on a VGA mon... by mepian on Sunday July 07, 2019 @07:16PM (#20378637)
Because it's not a video card yet, it's a circuit that syncs the monitor.
Re:Let's build a circuit that displays an image on a VGA mon... by peter_d_sherman on Tuesday July 09, 2019 @02:29AM (#20389443)
Designing a VGA card precursor on breadboards -- Brilliant!

Should be the very first video any would-be VGA card designer views... (I want to design one in the future...)

Re:Let's build a circuit that displays an image on a VGA mon... by rkagerer on Monday July 08, 2019 @04:16AM (#20380879)
Am I the only one frustrated with how difficult YouTube makes it to find Part 2? Am I missing something obvious?
Re:Let's build a circuit that displays an image on a VGA mon... by xorfish on Monday July 08, 2019 @04:18AM (#20380886)
Part 2 isn't out yet
Re:Let's build a circuit that displays an image on a VGA mon... by rkagerer on Monday July 08, 2019 @04:21AM (#20380899)
Thanks. It took way too long for me to figure that out :-).
Re:Let's build a circuit that displays an image on a VGA mon... by glouwbug on Sunday July 07, 2019 @07:08PM (#20378598)
Why not with an AVR? https://youtu.be/sNCqrylNY-0