The present invention relates to a microdevice for emitting electromagnetic radiation, the microdevice being adapted so as to be controllable by electromagnetic radiation, such as light. The microdevice comprises a first electromagnetic radiation emitting unit arranged to emit electromagnetic radiation 1728, so as to be able to irradiate electromagnetic radiation onto a structure of interest 1740. The microdevice further comprising means for enabling non-contact spatial control over the microdevice in terms of translational movement in three dimensions, and rotational movement around at least two axes. The present invention thus provides an instrument which enables controlled irradiation of light onto very well defined areas on the nano-scale of objects of interest. Furthermore, the device enables receipt of light and may thus work as an optically controlled microendoscope.