tscircuit / docs

docs, tutorials and guides for tscircuit
https://docs.tscircuit.com
5 stars 9 forks source link

Create a tutorial that demonstrates how to create an AND gate using TTL logic chips #34

Open seveibar opened 3 weeks ago

seveibar commented 3 weeks ago

/bounty $50

algora-pbc[bot] commented 3 weeks ago

💎 $50 bounty • tscircuit

Steps to solve:

  1. Start working: Comment /attempt #34 with your implementation plan
  2. Submit work: Create a pull request including /claim #34 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to tscircuit/docs!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🔴 @Srayash Nov 2, 2024, 1:13:05 AM WIP
Niharika0104 commented 3 weeks ago

@seveibar I have added schematic circuits for and and or gates.Can you check and verify this? https://stackblitz.com/edit/tscircuit-ttl-and-or-gates?file=lib%2FMyCircuit.manual-edits.ts

seveibar commented 3 weeks ago

Hey @Niharika0104 that's pretty great work, but we need to do a couple things to make this a tutorial:

Same for the OR gate. I can't say that this is an easy issue at the moment, but we do plan on creating a lot of issues like this as we go! (So hopefully there will be more examples of people completing it!)

Niharika0104 commented 3 weeks ago

@seveibar Image I'm trying to add two examples, one for an OR gate and another for an AND gate, but I'm encountering an error that says I can't have multiple manual-edits.tsx files. It seems that a single project can only accommodate one circuit diagram. Am I correct in this assumption? Are you okay with me creating one Stackblitz project to demonstrate the AND gate and another project for the OR gate?

seveibar commented 3 weeks ago

@Niharika0104 so stackblitz currently uses a really really old version of tscircuit, so to be clear stackblitz projects aren't acceptable generally for this task. The code has to run on https://snippets.tscircuit.com because the CLI that runs on stackblitz is very out of date.

seveibar commented 3 weeks ago

Also note that that AND gate and OR gate would be separate snippets. This may be a difficult initial bounty.

Niharika0104 commented 3 weeks ago

@seveibar So you want me to demostrate the examples on https://snippets.tscircuit.com/ not on stackbliz??

Niharika0104 commented 3 weeks ago

@seveibar https://snippets.tscircuit.com/editor?snippet_id=cec8bae1-0afc-44c5-89af-7a7b35b836b7 I made AND Gate circuit If you are okay with this,I will go ahead and create a similar one to OR gate as well.

seveibar commented 3 weeks ago

@Niharika0104 I guess i don't really get your AND gate, shouldn't you have like two push buttons, and if someone presses BOTH of the push buttons a light turns on or something? You have a chip in there but there's no input to it.

Let's make it so...

I have reduced the scope of this issue and the bounty to only the AND gate (the bounty $$$ is the same, but the scope of the issue is decreased to get the bounty. We will do the OR gate as a separate bounty)

seveibar commented 3 weeks ago

@Niharika0104 you may want to reference the USBC Flashlight

Niharika0104 commented 3 weeks ago

I will add them.Right now I'm using this IC7408 from jlcpcb(this is also an AND gate). I will do the changes and get back to you.