Broccoli needs full sun.
The best time to grow broccoli is in spring, before the weather turns hot and dry. The plants will grow faster and better, and the plants are more likely to survive the summer heat. For your garden, plant the broccoli in a corner of the garden that gets lots of sun.