You need to take a bus between Fiesole and Florence (ok - you can walk, but it takes about 1 hour). I think it's better to base yourself in a neighborhood in Florence. Fiesole is beautiful and can definitely be visited while in Florence, but I would skip it as a place to stay.