hi everyone, i would like to do a project in c where i can control hardware devices using c programming. where can i get the material(how to start n what are the prerequisites).plz help me

To control hardware, in general, you have to write a device driver, if of course there is no existing driver for your device, which satisfies your needs. Because the hardware devices cannot be accessed from user space, but only from kernel space. This is the classic book about writing linux device drivers http://lwn.net/Kernel/LDD3 It is likely much more difficult to control hardware in Windows, because all the kernel code is available in Linux, but only a restricted amount of information is available in Windows...