The Joan Miro Foundation can be reached by public transport. You may use the bus line BCTO which will take you directly to the foundation.