The present invention provides a system for detecting and analyzing at least one of an electric field and an electromagnetic field. The system includes a micro/nanomechanical oscillator which oscillates in the presence of at least one of the electric field and the electromagnetic field. The micro/nanomechanical oscillator includes a dense array of cantilevers mounted to a substrate. A charge localized on a tip of each cantilever interacts with and oscillates in the presence of the electric and/or electromagnetic field. The system further includes a subsystem for recording the movement of the cantilever to extract information from the electric and/or electromagnetic field. The system further includes a means of adjusting a stiffness of the cantilever to heterodyne tune an operating frequency of the system over a frequency range.