Periscope

A periscope is an instrument for observation over, around or through an object, obstacle or condition that prevents direct line-of-sight observation from an observer's current position.
In its simplest form, it consists of an outer case with mirrors at each end set parallel to each other at a 45° angle. This form of periscope, with the addition of two simple lenses, served for observation purposes in the trenches during World War I. Military personnel also use periscopes in some gun turrets and in armoured vehicles.
More complex periscopes using prisms or advanced fiber optics instead of mirrors and providing magnification operate on submarines and in various fields of science. The overall design of the classical submarine periscope is very simple: two telescopes pointed into each other. If the two telescopes have different individual magnification, the difference between them causes an overall magnification or reduction.
Early examples.
Johannes Hevelius described an early periscope (which he called a "polemoscope") with lenses in 1647 in his work "Selenographia, sive Lunae descriptio" [Selenography, or an account of the Moon]. Hevelius saw military applications for his invention.
In 1854, Hippolyte Marié-Davy invented the first naval periscope, consisting of a vertical tube with two small mirrors fixed at each end at 45°. Simon Lake used periscopes in his submarines in 1902. Sir Howard Grubb perfected the device in World War I. Morgan Robertson (1861–1915) claimed to have tried to patent the periscope: he described a submarine using a periscope in his fictional works.
Periscopes, in some cases fixed to rifles, served in World War I (1914–1918) to enable soldiers to see over the tops of trenches, thus avoiding exposure to enemy fire (especially from snipers). The periscope rifle also saw use during the war – this was an infantry rifle sighted by means of a periscope, so the shooter could aim fire the weapon from a safe position below the trench parapet. 
During World War II (1939–1945), artillery observers and officers used specifically-manufactured periscope binoculars with different mountings. Some of them also allowed estimating the distance to a target, as they were designed as stereoscopic rangefinders.
Armored vehicle periscopes.
Tanks and armoured vehicles use periscopes: they enable drivers, tank commanders, and other vehicle occupants to inspect their situation through the vehicle roof. Prior to periscopes, direct vision slits were cut in the armour for occupants to see out. Periscopes permit view outside of the vehicle without needing to cut these weaker vision openings in the front and side armour, better protecting the vehicle and occupants.
A protectoscope is a related periscopic vision device designed to provide a window in armoured plate, similar to a direct vision slit. A compact periscope inside the protectoscope allows the vision slit to be blanked off with spaced armoured plate. This prevents a potential ingress point for small arms fire, with only a small difference in vision height, but still requires the armour to be cut.
In the context of armoured fighting vehicles, such as tanks, a periscopic vision device may also be referred to as an episcope. In this context a periscope refers to a device that can rotate to provide a wider field of view (or is fixed into an assembly that can), while an episcope is fixed into position. 
Periscopes may also be referred to by slang, e.g. "shufti-scope".
Gundlach and Vickers 360-degree periscopes.
An important development, the Gundlach rotary periscope, incorporated a rotating top with a selectable additional prism which reversed the view. This allowed a tank commander to obtain a 360-degree field of view without moving his seat, including rear vision by engaging the extra prism. This design, patented by Rudolf Gundlach in 1936, first saw use in the Polish 7-TP light tank (produced from 1935 to 1939). 
As a part of Polish–British pre-World War II military cooperation, the patent was sold to Vickers-Armstrong where it saw further development for use in British tanks, including the Crusader, Churchill, Valentine, and "Cromwell" models as the Vickers Tank Periscope MK.IV.
The Gundlach-Vickers technology was shared with the American Army for use in its tanks including the Sherman, built to meet joint British and US requirements. This saw post-war controversy through legal action: "After the Second World War and a long court battle, in 1947 he, Rudolf Gundlach, received a large payment for his periscope patent from some of its producers."
The USSR also copied the design and used it extensively in its tanks, including the T-34 and T-70. The copies were based on Lend-Lease British vehicles, and many parts remain interchangeable. Germany also made and used copies.
Periscopic gun-sights.
Periscopic sights were also introduced during the Second World War. In British use, the Vickers periscope was provided with sighting lines, enabling front and rear prisms to be directly aligned to gain an accurate direction. On later tanks such as the Churchill and Cromwell, a similarly marked episcope provided a backup sighting mechanism aligned with a vane sight on the turret roof. 
Later, US-built Sherman tanks and British Centurion and Charioteer tanks replaced the main telescopic sight with a true periscopic sight in the primary role. The periscopic sight was linked to the gun itself, allowing elevation to be captured (rotation being fixed as part of rotating turret). The sights formed part of the overall periscope, providing the gunner with greater overall vision than previously possible with the telescopic sight.
Modern specialised AFV periscopes.
In modern use, specialised periscopes can also provide night vision. The Embedded Image Periscope (EIP) designed and patented by Kent Periscopes provides standard unity vision periscope functionality for normal daytime viewing of the vehicle surroundings plus the ability to display digital images from a range of on-vehicle sensors and cameras (including thermal and low light) such that the resulting image appears "embedded" internally within the unit and projected at a comfortable viewing positions.
Naval use.
Periscopes allow a submarine, when submerged at a relatively shallow depth, to search visually for nearby targets and threats on the surface of the water and in the air. When not in use, a submarine's periscope retracts into the hull. A submarine commander in tactical conditions must exercise discretion when using his periscope, since it creates a visible wake (and may also become detectable by radar), giving away the submarine's position.
Marie-Davey built a simple, fixed naval periscope using mirrors in 1854. Thomas H. Doughty of the United States Navy later invented a prismatic version for use in the American Civil War of 1861–1865.
Submarines adopted periscopes early. Captain Arthur Krebs adapted two on the experimental French submarine in 1888 and 1889. The Spanish inventor Isaac Peral equipped his submarine (developed in 1886 but launched on September 8, 1888) with a fixed, non-retractable periscope that used a combination of prisms to relay the image to the submariner. (Peral also developed a primitive gyroscope for submarine navigation and pioneered the ability to fire live torpedoes while submerged.)
The invention of the collapsible periscope for use in submarine warfare is usually credited to Simon Lake in 1902. Lake called his device the "omniscope" or "skalomniscope".
 modern submarine periscopes incorporate lenses for magnification and function as telescopes. They typically employ prisms and total internal reflection instead of mirrors, because prisms, which do not require coatings on the reflecting surface, are much more rugged than mirrors. They may have additional optical capabilities such as range-finding and targeting. The mechanical systems of submarine periscopes typically use hydraulics and need to be quite sturdy to withstand the drag through water. The periscope chassis may also support a radio or radar antenna.
Submarines traditionally had two periscopes; a navigation or observation periscope and a targeting, or commander's, periscope. Navies originally mounted these periscopes in the conning tower, one forward of the other in the narrow hulls of diesel-electric submarines. In the much wider hulls of US Navy submarines the two operate side-by-side. The observation scope, used to scan the sea surface and sky, typically had a wide field of view and no magnification or low-power magnification. The targeting or "attack" periscope, by comparison, had a narrower field of view and higher magnification. In World War II and earlier submarines it was the only means of gathering target data to accurately fire a torpedo, since sonar was not yet sufficiently advanced for this purpose (ranging with sonar required emission of an electronic "ping" that gave away the location of the submarine) and most torpedoes were unguided.
21st-century submarines do not necessarily have periscopes. The United States Navy's s and the Royal Navy's s instead use photonics masts, pioneered by the Royal Navy's , which lift an electronic imaging sensor-set above the water. Signals from the sensor-set travel electronically to workstations in the submarine's control center. While the cables carrying the signal must penetrate the submarine's hull, they use a much smaller and more easily sealed—and therefore less expensive and safer—hull opening than those required by periscopes. Eliminating the telescoping tube running through the conning tower also allows greater freedom in designing the pressure hull and in placing internal equipment.