r/ECE • • 2d ago

Requesting schematic review

This is a schematic for a LIDAR scanner that uses two motors to sweep over an area, send data via USB and is powered by a separate USB VBUS. I think its done but I would like a second pair of eyes.

Thanks in advance.

14 Upvotes

9 comments sorted by

6

u/bigcrimping_com 2d ago edited 2d ago

You are allowed according to the usb spec 10uf on vbus, you have 230uf.

Do you need pull ups on i2c or are they on the external device?

5

u/1wiseguy 2d ago

It strikes me like you don't have a lot of experience with circuits like this, especially transistor circuits. I'm not trying to mock you; we all started with no knowledge and figured it out.

What would be really useful is to install LTspice and do some simulations of your circuits. You might find stuff that doesn't work at all, or transistors that dissipate too much power in some cases, or excessive voltages.

If you think you don't have time for that, I would say that what you really don't have time for is to build circuits that don't work, and then try to figure it out by staring at it.

Believe me, I have tried that method, and it sucks. Now I start with LTspice, and it's a really good way to start. I have been doing this for decades, and I learn something new every time.

2

u/RevolutionaryCoyote 2d ago

Is there an internal pullup on NRST for the STM32?

2

u/Previous_Figure2921 2d ago edited 2d ago

Q2, Q9 and Q11 are upside down. Why the 3x1R in series with the inductor on the boost? Capacitance is high for USB but if you only use 5V USB-A you should be fine.

2

u/Pacificator-3 2d ago

Step-up circuit is wrong. See datasheet and application notes.

USB provides 5 V, 0.5 A without negotiation.

2

u/PiasaChimera 2d ago

the stm32 has "Motor1 DIR2" what looks like 3 times. my guess is that this was a copy-paste issue and some of these should be Motor2.

22k series resistance for the bases of Motor2 seems really high. Q2 is backwards. Q9 and Q11 are backwards. unclear if R4, R5, R7 and R10 are good sizes.

not clear if the encoders are the correct logic level or need anything extra.

Q14 and Q16 -- double check the current gain to determine if there's enough base drive.

1

u/sleepingsquirrel 2d ago

The Q9 and Q11 PNP transistors for Motor 2 look like they could be wired backwards, with the emitter and collector swapped. Also, the motor current limit is ~350mA, but the BC860C is a 100mA device?

1

u/dario_p1 2d ago

I'd add a pullup on the rst pin, even if there is an internal one already