1
The noise from the street affects on my sleep.
The noise from the street affects my sleep.
Affect is a verb meaning ‘change or influence’. Put the person or thing directly after it; do not add on.
2
The noise from the street has a bad affect on my sleep.
The noise from the street has a bad effect on my sleep.
Effect is normally the noun: ‘have an effect on something’. Affect is normally the verb: ‘affect something’.