In other words, is it possible to solder on an LED or a fan or a motor (perhaps even a custom-made piece of hardware) and then write software that can send power from a battery to the added device?
For example, let's say I want to use a Raspberry Pi to light up a few LED lights that I have, in specific orders depending on what kinds of songs are being played on the Raspberry Pi. Does this device allow someone to hook up the LEDs somehow and then write code to handle diverting battery power to the lights in a specific order depending on whatever pattern is obtained from specific songs?
I'm looking for a fun personal project to undertake and I was wondering if something like this falls into the Raspberry Pi's capabilities. Thank you for your time.