Author Topic: Working on a PCB to PWM a bunch of MOSFETs with a STM32  (Read 3690 times)

0 Members and 1 Guest are viewing this topic.

Offline dholthTopic starter

  • Newbie
  • Posts: 5
  • Country: us
Working on a PCB to PWM a bunch of MOSFETs with a STM32
« on: January 02, 2016, 06:40:35 am »
Hi there, I was wondering if you all could give me some feedback on my latest hobby electronics project.

I thought it would be fun to try to replicate Epcot's jumping water fountain at a very small scale, so I bought some cheap pumps and have been designing a microcontroller + power mosfet board that should be able to PWM 12V@350mA * 8 through 0.05 Ohm FETs. The board is 50mm^2, designed to fit inside a Hammond 1593K box, includes a buck regulator to provide 3.3V to a STM32 microcontroller, RGB LED in the corner, button, clock crystal, 4 JST PH connectors on either side plus a green terminal block for DC input. Most complicated thing I've attempted so far. How do you like it?

I think it will probably be fine to route the input voltage around the outside of the board. The board has a virtually unbroken ground plane.

Not sure about the 750mA polyfuses on each set of 4 outputs. Better than nothing but the trip current of 750mA @ 12V is a decent amount of power. Yes I'm currently living dangerously without reverse polarity protection.

Think I can get away without big caps to bypass the motor outputs and just let the them take the ripple?

Will be interesting to listen to the buck regulator on an AM radio. How do I know whether it should it have a common mode choke, a ferrite bead, or some other kind of filter?

Loving KiCad's new push-and-shove router by the way.

Thanks,

D
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: Working on a PCB to PWM a bunch of MOSFETs with a STM32
« Reply #1 on: January 02, 2016, 07:32:32 am »
Not critiquing your PCB, but I think the 'real' water displays use a single pump, plus an accumulator to ride through pressure variations (with none, one or more valves open simultaneously) - and simple solenoid valves to manage each fountain squirting!

(Vcc on outputs is not defined anywhere else ?  Should be a 'dirty' rail - as not to upset the CPU etc!)

(Personal preference - put outputs on the RHS of the schematic - it makes 'following' signal flow more intuitive)

Fancier displays use proportional valves with more pumps & larger accumulators.

Please post a video when you get something running - it sound like a fun project!
« Last Edit: January 02, 2016, 07:38:58 am by SL4P »
Don't ask a question if you aren't willing to listen to the answer.
 

Offline dholthTopic starter

  • Newbie
  • Posts: 5
  • Country: us
Re: Working on a PCB to PWM a bunch of MOSFETs with a STM32
« Reply #2 on: January 05, 2016, 04:16:59 am »
Oshpark time. One important addition - flyback diodes across the outputs. I did think about doing solenoid valves, but if you want to go really small I think tiny pumps are more practical.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17191
  • Country: 00
Re: Working on a PCB to PWM a bunch of MOSFETs with a STM32
« Reply #3 on: January 05, 2016, 04:28:17 am »
I thought it would be fun to try to replicate Epcot's jumping water fountain at a very small scale, so I bought some cheap pumps and have been designing a microcontroller + power mosfet board that should be able to PWM 12V@350mA * 8 through 0.05 Ohm FETs.

Why do you need PWM?
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: Working on a PCB to PWM a bunch of MOSFETs with a STM32
« Reply #4 on: January 05, 2016, 04:36:55 am »
PWM cab useful for 100% pull on, followed by 20% hold current...
Don't ask a question if you aren't willing to listen to the answer.
 

Offline dholthTopic starter

  • Newbie
  • Posts: 5
  • Country: us
Re: Working on a PCB to PWM a bunch of MOSFETs with a STM32
« Reply #5 on: January 05, 2016, 01:08:21 pm »
It will be individual motors like in this video.

 

Offline BradC

  • Super Contributor
  • ***
  • Posts: 2109
  • Country: au
Re: Working on a PCB to PWM a bunch of MOSFETs with a STM32
« Reply #6 on: January 05, 2016, 02:01:49 pm »
I have a couple of those little pumps set up as bath toys for my little one. Cheap, adequate, cheap, cheap & cheap.

That is a very cool application. Keep us posted!
 

Offline dholthTopic starter

  • Newbie
  • Posts: 5
  • Country: us
Re: Working on a PCB to PWM a bunch of MOSFETs with a STM32
« Reply #7 on: January 25, 2016, 05:20:16 am »
Blinky unlocked! Buck converter happily converts 5V - 20+V to 3.3 for the micro, and it's running a modified blink demo from the amazing https://github.com/andysworkshop/stm32plus (C++) library.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf