r/AskElectronics • • 2d ago

No question in title [ Removed by moderator ]

Post image

[removed] — view removed post

1 Upvotes

7 comments sorted by

•

u/AskElectronics-ModTeam 2d ago

Your title, "Stuff wrong with this schematic?", does not ask the actual question.

Rule #2: "The post title should summarize the question clearly & concisely."

Please start a new submission, but this time ask the actual question in the title. What is it? What is it supposed to do? Please include what that is in the title.

6

u/EvilBikerScum 2d ago

The switch bottom right connects 5V to GND, with either throw.

5

u/jackmax9999 2d ago

The switch in the lower right shorts +5V to ground in both positions. It should be ground <-> resistor <-> switch contact <-> GPIO pin.

I2C bus should have pull-up resistors on it going to +5V, but it's possible that the board it goes to already has them - so maybe it's not a problem.

The power terminals on the H-bridge board aren't labeled, but it seems that it has +12V input, ground and +5V output (created from 12V by an on-board regulator).

1

u/JakobWulfkind 2d ago
  1. As already mentioned in other comments, the switch at the bottom right is shorting 5V to GND
  2. You need to add some reverse protection diodes to the 12V supply connection
  3. I'd add some flywheel diodes to both the 5V and 12V lines; the H-bridge module you're using already has flywheel diodes on the motor terminals, but a bit of redundancy never hurt anyone (especially since the H-bridge module you're using looks a little sketchy, and it can be hard to tell if it was assembled incorrectly just by looking)
  4. I'd add some 0.01µF smoothing capacitors at the power terminals of each device. Not strictly necessary, as all the modules you're using have their own input protection, but 60 cents in components to protect the rest of the system is a pretty good investment
  5. It's good practice to add a power indicator LED to anything that will be powered from a wall socket.

1

u/1Davide Copulatologist 2d ago

What is it? What is it supposed to do? Please start a new submission and include what that is in the title.