MustafaMulla29/TMAG5273_Hall_Effect_sens...

@Seve <solderjumper name="INT" footprint="solderjumper2_briged12" bridgedPins={[["1", "2"]]} pcbX={-6.5} pcbY={-6.5} schX={14.7} schY={-6} pinCount={2} schRotation={-90} connections={{ pin1: sel.net().V3_3_SW, pin2: sel.R4.pin2, }} /> <resistor resistance="10k" footprint="0402" name="R4" pcbX={-1.4} pcbY={-5} schX={14.7} schY={-7.5} schRotation={90} /> <netlabel net="INT" schX={14.7} schY={-9.5} connection="R4.pin1" anchorSide="left" /> for this code it gives me this error: Multiple components found with name "INT" in subcircuit "unnamed". Component names must be unique within a subcircuit. I also tried removing netlabel and using connections for resistor but it still gives me the error Here is my code: https://tscircuit.com/MustafaMulla29/TMAG5273_Hall_Effect_sensor can you check it please?
MustafaMulla29/TMAG5273_Hall_Effect_sensor - tscircuit
This code defines a simple electronic circuit with an SMD 10kΩ resistor connected to the gate of an SOT-23 N-channel enhancement-mode MOSFET, with both source and drain linked to a 3.3V net. To import and use the TMAG5273 Hall Effect sensor component: 1. Import the component: ```tsx import { TMAG5273 } from "@tsci/MustafaMulla29.TMAG5273Hall...
167 Replies
Seve
Seve4mo ago
you can't have a component and a net named "INT" - in general INT is not a good name for a solderjumper, you could call it INT_JP
Mustafa7
Mustafa7OP4mo ago
Ok, i asked it coz the sch had solderjumper name INT
Seve
Seve4mo ago
i think it's an ok name for a jumper on silkscreen, but not for a schematic pcbSilkscreenName="JMP" if we wanted to support that eventually...
Mustafa7
Mustafa7OP4mo ago
@Seve https://tscircuit.com/MustafaMulla29/TMAG5273_Hall_Effect_sensor#files can you please see why my board is not getting autorouted? Getting this error: Failed to solve 5 nodes, cn1554,cn2775,cn1673,cn1583,cn4075. err0: All solvers failed in hyper solver.. (capacity-autorouter@0.0.75) Details @tscircuit/eval@latest @tscircuit/core@0.0.504 this is the original board: https://www.sparkfun.com/sparkfun-mini-linear-3d-hall-effect-sensor-tmag5273-qwiic.html
SparkFun Mini Linear 3D Hall-Effect Sensor - TMAG5273 (Qwiic)
The Mini TMAG5273 Qwiic Sensor is a low-power 3D hall-effect sensor perfect for detecting and measuring changes in a nearby magnetic field.
Mustafa7
Mustafa7OP4mo ago
@shibo can you help as well?
shibo
shibo4mo ago
file these issues to the autorouter repo, @ansh.grover can you help him with the steps?
Mustafa7
Mustafa7OP4mo ago
Ok, can you check the board as if it has some issues
ansh.grover
ansh.grover4mo ago
@Mustafa7 https://discord.com/channels/1233487248129921135/1386022011154731028/1386421777235968091 see this video seve has told in this video very good hw to report an autorouter bug like this?
Mustafa7
Mustafa7OP4mo ago
@Seve can you please check if my board has any issues? then ill pr @shibo can you check as well, Ill pr @Seve do i have to create a fixture for the autorouter bug?
Seve
Seve4mo ago
It can help it get solved faster, there is one other person joining soon who may work just on the autorouter
Mustafa7
Mustafa7OP4mo ago
@Seve do i have to create multiple fixtures as there are more than 2 cn errors?
Seve
Seve4mo ago
yea each problem might be different, so that will maximize the chance they we fix all the errors
Mustafa7
Mustafa7OP4mo ago
@Seve created fixtures
Mustafa7
Mustafa7OP4mo ago
@Seve can you please merge this. Outdated deps are causing workflow failures
ansh.grover
ansh.grover4mo ago
@Seve as talked with you before this is a bug in tscircuit-autorouter where this last one jaon file does not have nodeportninepoints property so should i remove this file fixture for now and we can merge the other 7 fixtures or what to do? You have not told me i have asked u before as well thats why type check is failing
No description
Mustafa7
Mustafa7OP4mo ago
@shibo @Seve https://tscircuit.com/editor?package_id=36d67d71-5fbc-4b05-9926-5751550fd569&file_path=index.tsx i fixed some positions of the parts in the board, its still not autorouting and now giving other cn nodes other than i created fixtures for, yesterday
Editor - tscircuit
Design and edit electronic circuits online with tscircuit's powerful web-based editor. Create schematics, PCB layouts, and 3D models with code.
Mustafa7
Mustafa7OP4mo ago
SparkFun Mini Linear 3D Hall-Effect Sensor - TMAG5273 (Qwiic)
The Mini TMAG5273 Qwiic Sensor is a low-power 3D hall-effect sensor perfect for detecting and measuring changes in a nearby magnetic field.
shibo
shibo4mo ago
please report the new errors
shibo
shibo4mo ago
the pcb is far off
shibo
shibo4mo ago
did you view it in this website?
No description
Mustafa7
Mustafa7OP4mo ago
yes
ansh.grover
ansh.grover4mo ago
@Mustafa7 how are u so sure that this is the right footprint for jumpers and all the pin have same sizes?
No description
ansh.grover
ansh.grover4mo ago
use exact footprint am i right @shibo ?
Mustafa7
Mustafa7OP4mo ago
i checked at the positions from this only
shibo
shibo4mo ago
yeah but one step at a time, first put the correct components for example J2
No description
No description
shibo
shibo4mo ago
this is similar to ansh's
ansh.grover
ansh.grover4mo ago
for this see my pr how i have done it.
Mustafa7
Mustafa7OP4mo ago
@shibo https://tscircuit.com/editor?package_id=36d67d71-5fbc-4b05-9926-5751550fd569&file_path=index.tsx can you please check? i have added the correct footprints, but the autorouter is not working. Getting this error: pcb_autorouting_error Routing failed (capacity-autorouter@0.0.75) Details @tscircuit/eval@latest @tscircuit/core@0.0.504
Editor - tscircuit
Design and edit electronic circuits online with tscircuit's powerful web-based editor. Create schematics, PCB layouts, and 3D models with code.
Mustafa7
Mustafa7OP4mo ago
I think only Q1 is misplaced
ansh.grover
ansh.grover4mo ago
@Mustafa7 ad the exact board width and height ?
No description
ansh.grover
ansh.grover4mo ago
add some schX to them @Mustafa7 so that the traces behind them clearly visible?
No description
Mustafa7
Mustafa7OP4mo ago
i think its a jumper no? or pinheader?
Mustafa7
Mustafa7OP4mo ago
this is the pcb for it. Is it a jumper?
No description
ansh.grover
ansh.grover4mo ago
no its a pin header.
Seve
Seve4mo ago
pinheaders are a type of jumper but yea it's a pinheader
Mustafa7
Mustafa7OP4mo ago
@shibo https://github.com/tscircuit/sparkfun-boards/pull/22 My board is now autorouting using cloud autorouting, but there are some overlapping vias. I'll file an issue about the vias, Can you please check the above pr?
Mustafa7
Mustafa7OP4mo ago
And idk why the "R4" is not connecting to "INT_JP" even though i've used connections and netlabels as well
ansh.grover
ansh.grover4mo ago
@Mustafa7 these are the same errors @shibo i am getting after using cloud autorouter so should i also create a pr for my second pr with the updated screenshot ?
No description
ansh.grover
ansh.grover4mo ago
@shibo @Mustafa7 led is not connected at all?
No description
Mustafa7
Mustafa7OP4mo ago
.... Same with led Yes i have reported those errors You can see that there are errors connecting ig
ansh.grover
ansh.grover4mo ago
in that case @shibo can i also create a pr with updated autoruter pcb? or is this wrong ? that's the thing i am saying you can not push a change to that repo, because it contain errors.
ansh.grover
ansh.grover4mo ago
@Mustafa7 give some schX to the net labels?
No description
ansh.grover
ansh.grover4mo ago
it should match as same in the aprkfun schematic has?
Mustafa7
Mustafa7OP4mo ago
We did earlier, seve did earlier and told me report the overlapping vias issue These are not netLabel its connections Green ones are netlabel
ansh.grover
ansh.grover4mo ago
no you are wrong, mustafa this scl and sda re net labels i am saying just add some values to them so that we can see a green traces between them as well it sticks to the pinheader o rjumper whatever it is?
Mustafa7
Mustafa7OP4mo ago
How ? The schematic is matching
ansh.grover
ansh.grover4mo ago
wait i will shouw you screenshot
ansh.grover
ansh.grover4mo ago
@Mustafa7 see this.
No description
ansh.grover
ansh.grover4mo ago
schematic is not matching @ i mean i am just letting you know so that we have perfect boards as it will give clear context to ai what do you think @shibo your take?
ansh.grover
ansh.grover4mo ago
@Mustafa7 give here as well?
No description
No description
ansh.grover
ansh.grover4mo ago
here as well, i mean @Mustafa7 your schematic is missing so many things?
No description
Mustafa7
Mustafa7OP4mo ago
let's wait for @shibo lets see what he says
ansh.grover
ansh.grover4mo ago
ok, your wish.
shibo
shibo4mo ago
@Mustafa7 what's with the missing connections? and why is are the traces looking weird?
No description
Mustafa7
Mustafa7OP4mo ago
I have used connections but still its connecting, idk why. Can you please the code if it has any issues?
shibo
shibo4mo ago
please reproduce the small sections that his this issue in core, let's see if there is a bug
Mustafa7
Mustafa7OP4mo ago
@shibo tsci snapshot is not updating the snapshots, its stuck at this
No description
shibo
shibo4mo ago
snapshot -u? maybe it's a problem on your side, since we just merged Abse's board and it worked
Mustafa7
Mustafa7OP4mo ago
Yes ok Ill pull the changes and try
Mustafa7
Mustafa7OP4mo ago
Can you merge this? I have refactored it on the sparkfun-board repo itself, coz am facing an on tscircuit.com where the "Run" button keeps loading and doesn't stop.
ansh.grover
ansh.grover4mo ago
@Mustafa7 use cli.
Mustafa7
Mustafa7OP4mo ago
cli was having same issues
ansh.grover
ansh.grover4mo ago
what, report them?
Mustafa7
Mustafa7OP4mo ago
seve already knows @shibo @shibo Updated my old board https://github.com/tscircuit/sparkfun-boards/pull/34 @shibo can you merge this? lets update the snapshot later after updating deps? @shibo @Seve can you please take a look into sparkfun-boards repo? boards are not autorouting in the repo, where as it routes on tscircuit.com
shibo
shibo4mo ago
try to update the dependencies
Mustafa7
Mustafa7OP4mo ago
I tried but nothing changes
shibo
shibo4mo ago
what's going on here?
No description
Mustafa7
Mustafa7OP4mo ago
i updated the positions, previously it was wrong
ansh.grover
ansh.grover4mo ago
it means your previous board is totally wrong?
Mustafa7
Mustafa7OP4mo ago
its routing in tscircuit.com but not in sparkfun boards positions were wrong
ansh.grover
ansh.grover4mo ago
yeah @Mustafa7 in pcb that is the thing that matters.
Mustafa7
Mustafa7OP4mo ago
Yea bro that's why i updated it
ansh.grover
ansh.grover4mo ago
then how did it get merged, i mean ?? leave it
Mustafa7
Mustafa7OP4mo ago
at first no one was strict checking and also i didn't knew how to calculate the positions correctly
ansh.grover
ansh.grover4mo ago
ohh it is not strict checking @Mustafa7 , it is correcting the thing.
Mustafa7
Mustafa7OP4mo ago
yea thats what bro That's why i updated it And yea everyone makes mistakes, but what is important is correcting it
shibo
shibo4mo ago
@Mustafa7 the pinrow dimensions are not correct, check other boards to see how we manage footprints
No description
Mustafa7
Mustafa7OP4mo ago
@shibo before updating the snapshots, i updated the deps, thats why the workflow was failing.
Mustafa7
Mustafa7OP4mo ago
Can you merge it?
shibo
shibo4mo ago
update the snapshots first
Mustafa7
Mustafa7OP4mo ago
@shibo Sorry for multiple reviews, this time there is no chance of mistake as i have revised all the positions and footprints. One last time here: https://github.com/tscircuit/sparkfun-boards/pull/37
shibo
shibo4mo ago
Looking good, now you know how it should be done? I hope the next board requires less reviews, you're getting the hang of it
Mustafa7
Mustafa7OP4mo ago
Yea thanks for your reviews and sorry again
shibo
shibo4mo ago
And as I said, positions and dimensions need to exactly match the reference because those boards were tested by professionals, and we'd rather not waste time on unecessary work don't be sorry, we're all learning here
Mustafa7
Mustafa7OP4mo ago
@shibo https://github.com/tscircuit/core/pull/1009 here's the repro for the traces. In core pcb is not connecting the netlabels. I think it is because of the pcbRotation you can see in the second image that if i rotate it 180deg its connecting properly on tscircuit.com but its not connecting in core. Can you take a look?
No description
No description
Seve
Seve4mo ago
Thats a really great find @Mustafa7 !!
Mustafa7
Mustafa7OP4mo ago
@shibo I cross checked footprints and positions. This is the final board, but there are a lot of overlapping vias. So can i change the positions slightly? or keep it same?
No description
shibo
shibo4mo ago
Dont change positions, it's an autorouter problem
Mustafa7
Mustafa7OP4mo ago
@shibo
Techmannih
Techmannih4mo ago
@Mustafa7 I think main file already to large due to using lot of component and all, we can reduce main file by using these footpint in seprate file,
No description
Mustafa7
Mustafa7OP4mo ago
I have one footprint in the main that is not imported from the other file.
Techmannih
Techmannih4mo ago
yeah I am taking about that only,
shibo
shibo4mo ago
No description
No description
shibo
shibo4mo ago
did you try to reproduce this in core?
No description
shibo
shibo4mo ago
why are most components not connected?
No description
shibo
shibo4mo ago
I heard you used the same positions as the reference, does this look the same to you?
No description
No description
Mustafa7
Mustafa7OP4mo ago
Yes Here's the repro
shibo
shibo4mo ago
can you give it a shot? ansh is facing the same issue
Mustafa7
Mustafa7OP4mo ago
@shibo may be because on tscircuit.com am getting overlapping vias issue? is it?
No description
shibo
shibo4mo ago
are you using cloud autorouting?
Mustafa7
Mustafa7OP4mo ago
yes
shibo
shibo4mo ago
cloud autorouting doesn't support solderjumpers, you may want to implement it there, or use the local autorouter
Seve
Seve4mo ago
to get cloud autorouting support for solderjumpers, you would need to look into the dsn-converter repo IIUC
Mustafa7
Mustafa7OP4mo ago
@shibo @Seve isn't this correct? i have used the correct positions, but maybe its overlapping with pin4 and pin5 of the pinheader because of silkscreen?
Seve
Seve4mo ago
err i'm not following close enough to know what you're referring to
shibo
shibo4mo ago
don't worry about silkscreen, as I said before there is nothing that should make you move the component positions or change their dimensions, stick to the original, if there is such a thing, then it's an issue we should fix
Mustafa7
Mustafa7OP4mo ago
I cross checked the positions 2 to 3 times that's why
shibo
shibo4mo ago
@ansh.grover you made some good reviews, @Mustafa7 let's discuss them here and not on github because I think discord is more convenient
ansh.grover
ansh.grover4mo ago
thnx man.
shibo
shibo4mo ago
thnx to you
Mustafa7
Mustafa7OP4mo ago
@shibo @ansh.grover do i have to add this text as well (gray color one)?
No description
shibo
shibo4mo ago
totally you can change the color of the text correct?
Mustafa7
Mustafa7OP4mo ago
Yes
ansh.grover
ansh.grover4mo ago
yup.
Mustafa7
Mustafa7OP4mo ago
@shibo https://github.com/tscircuit/sparkfun-boards/pull/38 Can you merge this? needed for updating the schematic(for inverted pins)
shibo
shibo4mo ago
The snapshot test is failing
Techmannih
Techmannih4mo ago
@Mustafa7 can you check with this, If some thing updating in all board.
Mustafa7
Mustafa7OP4mo ago
yea when i run the snapshots, they are updating ig thats why the snapshot test failing? @shibo is it?
Techmannih
Techmannih4mo ago
this is failing because you need to update all board
Mustafa7
Mustafa7OP4mo ago
in this pr only?
Techmannih
Techmannih4mo ago
use bun run snapshot:update yep you need to update all snapshot if something updating in them, then you test will pass
Techmannih
Techmannih4mo ago
Nice man, thanks for updating my board also. You always need to update all board if something updating in them
ansh.grover
ansh.grover4mo ago
@shibo why my board is not updating on sparkfun boards
No description
shibo
shibo4mo ago
The tscircuit dep is not updated Update it and update the snapshots and lets see
ansh.grover
ansh.grover4mo ago
no, all the deps are updated it is updating on tscircuit.com but not here
No description
ansh.grover
ansh.grover4mo ago
are u talking about any other repo than these @shibo ?
shibo
shibo4mo ago
Im talking about snaphot-boards
ansh.grover
ansh.grover4mo ago
ohh ok, understand
ansh.grover
ansh.grover4mo ago
@shibo throughing this error
No description
ansh.grover
ansh.grover4mo ago
i think it is related to schematic corpus repo.
shibo
shibo4mo ago
Can you try to reproduce in cli or eval?
ansh.grover
ansh.grover4mo ago
wait. i mean i have updated dependency of tscircuit in cli but like how to reproduce this error i mean, where to try to run tsci snapshot. am i missing something?
shibo
shibo4mo ago
Not like that Ok actually its a good first step
ansh.grover
ansh.grover4mo ago
ohh reproduce my board in cli like that @shibo ?
shibo
shibo4mo ago
You go to cli > bun run build > ./dist/main.js snapshot This will run will run the snapshot command from the local build of the cli Maybe you dont have to use your board, maybe the issue is for any board
ansh.grover
ansh.grover4mo ago
@shibo here it is working?
No description
ansh.grover
ansh.grover4mo ago
i think should i check in eval in same way.
shibo
shibo4mo ago
Wait Cli has tscircuit as a peer dep which means when you updated tscircuit in snapshot-boards the cli used the latest version To reproduce update tscircuir in the cli Then rebuild etc
ansh.grover
ansh.grover4mo ago
bro, i have done that only.
No description
shibo
shibo4mo ago
Hmm, interesting, try to use your board here? Did you do bun run build after bun i?
ansh.grover
ansh.grover4mo ago
yup, sorry i did not updated deps rightly.
No description
ansh.grover
ansh.grover4mo ago
here it is error. @shibo
ansh.grover
ansh.grover4mo ago
@shibo snapshot ci is failing in schematic corpus see?
No description
ansh.grover
ansh.grover4mo ago
i think we need to change something in this repo.
shibo
shibo4mo ago
This is an unrelated issue though, i think it just needs to update deps Now try to see if its a cli issue, if its not you go to eval
ansh.grover
ansh.grover4mo ago
but in cli it is saying same error like something assert is missing in schematic corpus repo from any json file, so how it is related to cli, or how can i solve in cli.
shibo
shibo4mo ago
Not sure at this point, you gotta investigate
Mustafa7
Mustafa7OP4mo ago
@shibo

Did you find this page helpful?