How close are we to controlling Machines with our Minds?

How close are we to controlling Machines with our Minds?

From outsmarting the self check-out to providing options for patients with communication disorders, merging mind with machine could be the next frontier for humanity. How close are we to controlling machines with our minds?