For our solenoid driver, we have individual transistors for driving each output, which means that we need to protect them with flyback diodes.
The important things we need for a flyback diode are to handle the maximum reverse voltage (30V or so) and be fast—there is a peak current of an amp or so, but it's near-instantaneous, so we're not as worried about continuous current.
We'll also need 8, so let's make sure they're not too expensive!
See the chosen part on DigiKey https://www.digikey.com/short/prdhzvw1
-----------------------------------------
Visit the Adafruit shop online - http://www.adafruit.com
LIVE CHAT IS HERE! http://adafru.it/discord
Subscribe to Adafruit on YouTube: http://adafru.it/subscribe
New tutorials on the Adafruit Learning System: http://learn.adafruit.com/