5 ms·
Using an AVR128DA48 feels using a 747 to go get my mail from the mailbox. Why not use actual logic gate chips? I made a board like this a long time ago with 74
by criddell 3y ago
Using an AVR128DA48 feels using a 747 to go get my mail from the mailbox.
Why not use actual logic gate chips? I made a board like this a long time ago with 74xx-type chips. It was neat looking at a datasheet[1] and seeing exactly how the pins correspond to the gates.
[1]:https://datasheetspdf.com/datasheet/7411.html https://datasheetspdf.com/datasheet/7411.html
- zokier 3y agoWhy use 6 chips when you can use one? It's not like those discrete chips would be cheaper in total
- criddell 3y agoFor me, the ideas become a little more concrete when I see a discrete package and can exactly map these inputs to that output. Otherwise, why use one chip when you can use none? This could all be little virtual switches in a web app.
- derefr 3y ago> Otherwise, why use one chip when you can use none? Because you're actually designing a hardware product to sell.
- varispeed 3y agoYou could also use 0 chips and create an app that does the same thing.
- JohnFen 3y agoThose 6 discrete chips will probably use less power.
- AdamH12113 3y agoThey probably would be, actually. In quantities of 1, a discrete logic chip is around 50 cents, while that microcontroller is $2.50. In higher quantities the logic gets cheaper faster. For this project, you would need: 1 quad NAND gate 1 quad NOR gate 1 quad XOR gate 1 hex inverter The cost isn't the main thing here, though. A better reason to go with discrete logic is that the MCU also requires an entire software and hardware toolchain to create and load firmware. Never underestimate the cost of adding nonvolatile memory to your system.
- deleted 3y ago[deleted]
- zokier 3y ago> In quantities of 1, a discrete logic chip is around 50 cents, while that microcontroller is $2.50 The article also mentions that ATMEGA809 should work here, and costs about $1.53 in singles https://www.digikey.com/en/products/detail/microchip-technology/ATMEGA809-AU/10444894 https://www.digikey.com/en/products/detail/microchip-technol... > I built two prototypes, one with an AVR128DA48, and one with the older ATmega4809 which is pin compatible, and their performance was indistinguishable. The program only uses about 1500 bytes, so an ATmega809, ATmega1609, or ATmega3209 should be fine
- an-unknown 3y agoFor the record, you could also use a much cheaper MCU like e.g. an STM32F030C6 which costs around $0.60 for a single chip and around $0.45 for 30 chips at LCSC the moment. Of course this is completely irrelevant if you build a small number of boards like here, because then you'll probably waste most time with programming the chip and you need the necessary programming connector + tools too. It would be fun to redesign this board for the lowest manufacturing cost with machine assembly and compare it to how much more expensive it would be to use discrete logic chips.
- foobarian 3y agoIn this case the behavior is not equivalent, I know the author said it's close but with polling the inputs I doubt it would replicate various feedback configurations faithfully.
- chrisjj 3y agoIt would indeed disappoint the user hoping his CMOS fedback inverter gets faithfully destroyed. Whereas less destruction of electronics -> more faithful "experimenting with and learning about logic" as per the device's purpose.
- firewolf34 3y agoThe article says he wanted the gates to be configurable. But yeah, seems like a missed opportunity to not familiarize with the 74 series. That having been said, the AVR chips are probably a lot more useful to learn as a newbie these days. Not many people using discrete logic ICs anymore :(
- mindcrime 3y agoThat having been said, the AVR chips are probably a lot more useful to learn as a newbie these days. Not many people using discrete logic ICs anymore I dunno. I mean, there's no question that they are less widely than in their heyday. But I think there might be a surprising number of uses where they are used for some small (very small) bit of functionality where even the smallest microcontroller is overkill. In my own experience, I had something recently where I literally needed a single AND gate to switch a transistor on or off based on whether one or both of two power rails were HIGH. A discrete 74xx chip turned out to be the simplest way to implement that.
- HeyLaughingBoy 3y agoI'd say that pretty much every schematic I've reviewed in the last few years has a handful of logic on it. Often we need to guarantee that something is off or disconnected if the CPU fails or software crashed, etc. Hard-wired logic is good for that kind of thing.
- zh3 3y agoTi have long had "little logic" for this kind of thing (I've been out of that game for a while, maybe something has taken its place?) 2018 link (PDF): https://www.ti.com/lit/pdf/scyt129 https://www.ti.com/lit/pdf/scyt129
- mindcrime 3y agoHey, thanks, I did not know about the "little logic" stuff until just now. I'd always looked at the 7400 series chips (or 4000 series chips) as my "goto's" for one-off individual logic gate kind of stuff.
- chrisjj 3y ago> Why not use actual logic gate chips? Surely that would have greatly increased the assembly work. And possibly cost too.
- criddell 3y agoI don’t know. You can buy a solderless breadboard, some pre-cut wires, and a lot of 74xx chips for the $99 that the the bare board costs.
- deleted 3y ago[deleted]
- brudgers 3y agoGot curious how big a front yard would be required to fit a 747. A 747-100 is 70m long, Wingspan ~60m. (I am not saying everyone has a mailbox accessible through a front yard, or even has a front yard, or necessarily a mailbox. Just want to make that clear to the whole internet.)
- contingencies 3y agoConsider also Boeing's minimum runway length official reference which states an additional 4000m will be needed to cover your heaviest mail deliveries in wet conditions (for example, two consecutive rainy days with a bout of Amazon shopping). https://static1.simpleflyingimages.com/wordpress/wp-content/uploads/2022/02/main-qimg-fa942c92b7d1bc29aae0264d92c9f967.png?q=50&fit=crop&w=1500&dpr=1.5 https://static1.simpleflyingimages.com/wordpress/wp-content/...
- hoobaquant 3y agoFor the love of God... both of you.
- brudgers 3y agoI was thinking about using the fuselage as a corridor because that was the most charitable.
- nick__m 3y agoI recently designed a board using discreet components but I replaced those chips with a single STM8 MCU because it was significantly cheaper. While designing using gates is fun, it doesn't make economical sense, even for a simple hobbyists like me. edit: one exception is using the venerable 555, but while it's a discreet component it's not a gate.
- deleted 3y ago[deleted]