According to James Wyatt, PhD, a sleep expert and director of the Sleep Disorders Service and Research Center at Rush, for people with insomnia, using electronic devices such as texting, computer games or surfing the web in the hour before bedtime can stimulate the brain and make it difficult to wind down and fall asleep.