Electrical Schematic using RPI

May 11, 2023, 14:18

nanutul

Hello guys. I'm trying to get an electrical schematic using a Raspberry PI 3B+, 2x L289N each connected with 2 DC motors and 3 ultrasonic sensor HC-SR03. From what I've seen so far, the sensors need resistors and the power supply of the driver modules must be separate.

oops.se

Perhaps you should post the schematic? And as a guess, you are mixing 5v and 3,3v logic, so you need some kind of level converting. And inductive load (ex motors) causes a lot of EMC and to use a separate power source for them is a god choice.

nanutul

I'm still wondering on how to manage the right side of the schematic. Hopefully the side with the sensors it's good for now.

nanutul

So I assume that the sensors are well connected and there won't be any issue with that although I was thinking for bigger resistors (1kohm and 2kohm). As for the driving modules, in case I want to connect them both, do I have enough GPIO pins available (since both modules need 6 pins each)? Can I use the SPI, I2C, PCM and UART as simple GPIO pins?

nanutul

<@796000224690307072>

oops.se

Well you need to start and plan and count GPIO and what they can do. There is many "Raspberry Pi Pinout" descriptions out there. Now you have to do the search.

nanutul

I update the schematic. I hope everything could work and I don't end up frying my RPi. I'm glad to hear any suggestions and modifications you would do. Also one wire (the bottom white wire that comes from the driver) is connected to a SPI pin since I'm out of simple GPIO pins. <@796000224690307072>

oops.se

A lot of the GPIO pins are multipurpose

nanutul

And nothing should differ while programming the input/outputs, right? Is there any other electrical components I'm missing in the schematic above?

oops.se

Not from what I can see

nanutul

Ok, thanks for the help!