oscilloscope using arduino uno

Maybe you can build up from this code
http://www.negtronics.com/simplot