MaslowCNC/Electronics

New board design discussion.

Closed this issue · 35 comments

Since this shield has lots of room on it what if there was thru-hole passive components holes added to the board in addition to smb. That way the board could be built as a kit easier for mortals.

It might seem like there is a lot of space, but a lot of the open copper is actually left intentionally open because we have a lot of current flowing across the board. I'm open to the idea if someone can design one that looks good, but I think we'd be better off doing a second board that's the through hole version if we want that

If the XH connector housing was moved down it would allow for more room for the A+ B+ motor lines to be widened and permit though hole diodes to be added. (in addition to reducing the trace length)

The current limiting resistor and LEDs have plenty of board room and the filter caps could be moved closer to the supply rather than near the H-Bridges. #27

In addition if the MP3 H-Bridge was moved to the right it would help provide less thermal coupling with the other H-Bridge.

Those are great points! If you make those changes, I'd be more than happy to merge them. My only reservation is that I think I'm going to redesign with a new H-bridge chip so we're probably going to see a lot of changes soon

@BarbourSmith what H-bridge chip are you thinking? Maybe I can help propose a layout with the new chip in mind.

Interesting. The L6206 has integrated diodes, and higher current capacities, but if thermal considerations havn't been built into the PCB. The heat will skyrocket with 62 C/W! 🔥

Good spot, that's something we need to consider. 62C/W is nuts, how does anyone keep that cool?

Looks like you can get it down to 15C/W by having it

Mounted on a multilayer FR4 PCB with a dissipating copper surface on the top side of 6 cm2 (with a thickness of 35 µm),
16 via holes and a ground layer.

then maybe adding heatsinks and active cooling could keep it cool. ❄️

Also did you see that digikey has limited numbers of this pn?

I (clearly) didn't do too much research into finding a replacement part yet, and I'm rapidly becoming convinced that the L6206 is not the best choice. Are there any other candidates out there that look more promising?

What features are you hoping to achieve?
More current? Higher voltage? Better thermal characteristics? Faster switching?

I'd say the #1 thing we need is durability. I'd like a chip that we can short without blowing it up, and which doesn't overheat easily. Other than that our needs are for a pretty basic 12v 2A+ H-Bridge

Have you seen this? TLE5206-2GCT-ND

Low Thermal Resistance, Internal inductive diodes, Short circuit protection with a error pin so software could alert the user that there was an issue. Cost isn't bad but it will require one for each motor.

Better pcb thermal design features and a heat sink would still be necessary but the chip should have better reliability since it will have more headroom (5A vs 2A) vs the existing chip 497-3624-1-ND.

In addition since there will be one per motor, the heat will be spread out more. This might even allow a smaller (cheaper) heatsink. So the additional cost of having one per motor could be offset by no longer needing to have a non custom heatsink (with a lower profile) and no external flyback diodes.

Crikey, I love it! Excellent find! The price is pretty reasonable even with one needed per motor. The board will still be a couple $ more, but for full output short circuit protection it's absolutely worth it.

I'll see if I can throw together a board to test them this weekend, when I have PCBs made, I'd be more than happy to send you some to test too if you'd be interested.

I’d like to test or help with the design too, if I might.
When laying it out, here are some things to think about:

  • Could we re-think which pins are used for board ID? The present approach interferes with the ICSP pins, making porting to other processors harder and making it harder to use SPI. Too, using a pull-up/down resistor adds parts count, but protects the gpio pins.
  • As we don’t need the braking function, the new layout could use hardware inverters to handle the complement motor drive signals.
  • It would be harder to deal with heat sinks, but putting the motor drivers on daughter boards or using the thru-hole version of these chips would make it easier for mortals to repair. Selling motor drive daughterboards as spares would mean less electronic waste when the drivers need replacement.

@BarbourSmith that sounds great. If you want help with ideas on the design of the PCB let me know. I would be thrilled to test or help design. Just let me know how I can help. We could even add this as a project to github.

@blurfl I too would think a new method for identifying board revisions might be nice. In fact if there was interest in changing the H-Bridge communication path to SPI there are other chip that could fill that need.

Having SPI available would make it possible to add SD card support.

  • gcode transfer serial buffering is an ongoing issue. With a local file system we could transfer separately from the cutting process and the read from there while cutting instead.
  • This could make off-line operation possible as well.
  • Finally, some other processor boards have higher speed, but don’t have the non-volatile storage of the Mega. An SD card would open up those possibilities as well.

So, while I build my wish list, let me add at least the traces for a micro SD card :)

Any and all help is more than welcome, if you want to have a go at putting together a board with the TLE206 or any other chip that you think is worth a go I would love to try it out!

I agree that adding an SPI interface could be nice. My general preference is to keep the whole machine as simple and low cost as possible to keep it reliable and affordable, but that doesn't mean we couldn't have the pins broken out to attach an SD card daughter board. Going to SPI for the motor controllers is also an option. I used the simplest most reliable interface for the boards so far because I wanted to focus on getting as simple and robust a system as possible built, but now that we have a stable platform to work from, there's no reason not to try new things.

That’a an interesting chip - bigger and more expensive, but it makes the detailed failure info available.

Have you seen anything that could take the burden of interfacing with the motor encoders? That’s presently handled using interrupts on the Mega, and the code for that is inline assembly in order to keep up. I think it might be limiting how fast we can travel. Surely something else could watch the encoder pulses and provide direction and step count when queried. I’ve seen this LSI-LS7184, but they aren’t widely available.

I see there is an SPI version, LS7366, that includes the counter as well, but only available from the manufacturer :(

@JDogHerman, it doesn't look like the TLE5206 will do speed control. Am I missing something? I'm disappointed, I like the TO220 thru-hole option.

Never mind, I found it - you need to be able to PWM both the motor control pins. Not a drop-in replacement as far as the firmware is concerned, but not impossible. That also means that the error flag won't need another pin. Do you have any experience with the Locked Anti-Phase Control mode?

If you're considering a significant re-design of the Shield board, please consider adding the necessary provisions to allow installation of a cheap (iOS compatible) Bluetooth Module .

Is there any description / datasheet for the motors used? I can't find it in the wiki. Thinking about starting a redesign of the board with better heatsinking of the ICs, and better diodes, but want more details on the motors before I start the design phase. Board would be optimized for automated assembly, not hand assembly.

A description from the wiki:
Motor/Gearbox/Encoder (291:1 reduction gearbox with worm gear to prevent back driving motor, 30kg/cm torque, 20 rpm, 12 volts)

Some discussion on the forum, here.

@dmouw25 In tinkering with the shield, attempting to get a bluetooth module integrated, I'll note that it would be very useful if all the unused pins, but most especially the digital pins, passed (unmolested) through the shield and were able to be accessed from 'above'.

I created a branch design using the TLE5206-2G not sure how people feel about it but here it is.
https://github.com/jdogherman/electronics/tree/TLE5206-2G-Board

This looks good! I wonder if a few more vias non the M1-, M2- and M3- lines would be advisable. Not much current capacity in a via! Alternately, make those larger to allow a wire thru-soldered.
Looks like it might be possible to alter this for the thru-hole, standing heat sink version :)

@blurfl good point! I have updated the design with 4 vias per leg.

I'm not seeing the 4-via version in your repository yet?
Are all the signals the same, only the H-bridges changed?

wow somehow I missed adding the new file. It's there now. The signals are all the same but the 12v lines have more vias.

I hate to say, but the commit show 0 changes in 0 changed files. GitHub is a fickle mistress...

Sorry been under the weather and I must not be thinking too clearly. I see the changes on JDogHerman@d9fb86b Can you check that you can see the changes?

@JDogHerman, I've been looking at the TLE5205 and TLE5206 again lately. Have you looked at the firmware changes to drive these?

I have a working board using the TLE5206. It requires changes to System.cpp and Motor.cpp for new pins and a different method of controlling the chip,

With the release of the TLE5206 board in the Community Garden, most of the ideas have been implemented with the exception of the connection for a Bluetooth module.
Would it make sense to close this?