It was invented by Samuel Finley Breese Morse, an important landmark in the electrical communication system. Though the necessary elements for constructing an electrical communication system were discovered in the early nineteenth century, it was only in the 1840s, that the first telegraphy system was invented by Samuel Finley Breese Morse in the United states, which was referred to as the Morse code. Samuel Morse, born on April 27, 1791, in Charlestown, Massachusetts, was a professional painter and the founder of the Royal Academy. He was inspired to work on electromagnets, after a discussion on his return voyage to America in 1832. Morse worked rigorously for constructing the telegraph, in partnership with Leonard Gail, a professor and Alfred Vail. In 1854, he received the patent for Morse code from the Supreme Court of United States. (Content from http://www.buzzle.com/articles/history-of-morse-code.html)
Have some fun, and try out Morse Code for yourself below!!