Yeah - it can. But from what I remember from other similar L298 h-bridge boards like you have, the +5 volt pin is actually an -output- and not an input. That, or it's an input for the 5 volt section for an external regulated 5 volts. It all depends on an on-board jumper.
There is an on-board voltage regulator that provides the 5 volts for the logic of the L298; VCC is supposed to be for the input voltage on the board; a jumper selects whether the 5 volts comes from the regulator (taking VCC - which is for the motors and regulating it down to 5 volts for the logic of the L298), or whether it is supplied from an outside, regulated 5 volts to the +5 pin.
When it is using the on-board regulator (with the jumper placed properly), then the +5 pin is an output from the regulator; when it is jumpered the other way, the +5 pin is an input directly to the 5 volt logic side of the L298. The VCC pin is the supply for the motors (and the L298 logic via the regulator - again, depending on the jumper setting).
If you were applying 24 volts to the +5 pin - depending on the jumper setting you likely have either fried the L298 or the regulator (maybe both). You will need to either get a schematic for the board, or trace one out yourself from the PCB traces (and a multimeter and the L298 datasheet) to determine what everything is for, how the inputs and outputs and connected, and how the jumpers are supposed to be set (and what is currently set when you applied power).
Posted in the comments on the Amazon page was this forum thread:
http://forum.arduino.cc/index.php?topic=110876.0
Which shows a similar (but not the same) board - along with some discussion on how to hook it up. There's also a link to the ebay supplier of the board in the thread, here:
In that ebay listing is a schematic (presumably) of the board being sold (again - not the same as your board, but it will serve as an illustration). If you look at the schematic (which is difficult to see because it isn't very large, and it is blurry), note the sub-schematic in the upper left corner. That shows the LM7805 5 volt regulator circuit for the on-board 5 volts to power the L298 logic side. On the left side is the three pin power connector - one pin for 12 volts one pin for ground, and one for 5 volts. Next in series comes the enable jumper; when this jumper is connected, it sends 12 volts to the LM7805 regulator (next in line), which then shows the +5 pin as an output (pin 1 on the three pin connector).
Now the other schematic is the L298 diagram. Notice how the +12V is connected to the L298 motor input - but the +5V is connected to the VSS (logic voltage) section of the L298. Also note how (in this diagram) there isn't a jumper from the 3 pin voltage input for the +5 volt pin, nor between the output of the LM7805 and the +5V pin.
So - if your board is similar (and I am not saying it is - again, only you will be able to determine this by reverse engineering your own schematic) - then by applying 24 volts to that +5 pin - you applied 24 volts to the output of the LM7805 as well as to the 5 volt logic side of the L298 (and I don't know if you had connected the 24 volts to the other pin on the 3 pin connector; you didn't say).
You are probably going to have to do some reverse engineering yourself if you want a schematic for the board (I doubt the supplier has one, and there have been so many manufacturers of these boards in china that there are tons of revisions and versions of the same basic module - so reverse engineering your own schematic is likely preferable).
You might also try this (but even if it works, I would still suspect the board for damage and not use it):
- Hook your 24 volt supply to the VCC and ground pins on that 3 pin connector - leave the +5 pin empty.
...UGH - see my next reply.