You can obtain a patent by visiting you local patent office. Be ready patents can be very pricey. Some people say you can protect your ideas using a poor mans patent. Mail your idea to yourself and leave the envelope sealed. It could help if you need to prove your idea later.