Any Garage Door Opener Folks Here?

Im looking for some help. Today my grandson came in from the garage and said the door opener (which was open at the time) light was flickering. By the time I got there it was out.

But the wall switch (door bell kind) was flickering and the opener would not work. Car remote would not work either.

I tried a working wall switch, unplugged the motor for awhile and then tried it, no go. The door sensor is green and goes out when blocked so I assume it's good.

There is a very slight "clicking " for lack of a better word inside the motor box. I pulled a cover and didn't see anything obvious.

Does anyone have any ideas on what it could be. Thanks!