domingo, 23 de julio de 2017

Microwave Oven Daewoo

A Daewoo Microwave Oven
In a previous page I have reviewed in some detail a microwave oven (Teka MW170).
I have found at home the electrical parts of another microwave oven, whose origin I do not remember, likely recollected from some street. It seems of the Daewoo brand.

I will review here the electrical parts, referring to the previous page for the common elements.

Wiring Diagram
The wiring diagram that I have prepared from the parts and the circuit is this one:

The diagram is incomplete as the timer/power motors are missing, but the connectors are there.

Power Source
While the Teka 170 had just a fuse, this one has a filter unit for high frequencies.
The board is labelled DWLF-M13 SS.

The fuse is rated 15 A at 250 V.
R1 is 1.5 Mohm
C1 is a film capacitor from Pilkor, box shaped, PCX2 335M MKP, with 100 nF, tolerance class M.
C2 and C3 are labelled "NW 222 MX1Y2", ceramic capacitors for interference filtering (X1Y2), 2.2 nF and tolerance class M.
No clue about L1...

S1, S3: from Gersun, GSM V1603A2, 16 A at 250 VAC, SPST NO,
S2: from Starion, SZM V16-FA-61, 16 A at 250 VAC, SPDT.
S4: from Starion, SZM V16-FA-63, 16 A at 250 VAC, SPST NO.

Thermal Swiches
- TH1: NT101 KTE, N1CO 90 5331
- TH2: NT101 KTE, N65 75 5324.
I have no information on where they were installed. From the wiring diagram it seems TH2 is on on the magnetron, the other in the oven's food compartment.

Turn-table Motor
Synchronous motor from GPS Corp. 5-6 rpm, 3-2.5 W, 220-240 V. Model ST-16 MN73MQAD.
Daewoo sees to use them frequently ( here).

Fan Motor
Moor shaded pole, with no references.
The motor was covered in grease, so either the ventilation was crappy, or the users of the oven were doing heavy cooking.

(Sorry, the plate was under the grease! Manufactured by Daewoo Electronics Corp. Label: "MV10CA, M02, 230 V 50 Hz,  0.28 A max, Z.P. B Class").
The motor runs an axial fan (on the Teka it was a centrifugal fan). Impeller diam. 11 cm.

Timer and Power Switch
The mechanism (motor) activating he timer is not in the parts that I have, just the geared switch and selector. 
One of the switches (TIM1) is normally off, and is set on when the time selector is moved from its zero position.
The function of the other switch (POW1) is unclear.

Transformer Feed
The power supply to the transformer is regulated by a small board, whose main element is a relay.
The board is labelled as "DWSR 1".

The relay, from Texcell, is model KH, contact arrangement 11 (form A, SPST-NO), termination TMP (for PCB), E-24H. Specifications are likely similar to these ones
It is unclear to me the operation of this relay. The model seems out of manufacture, and I have not found direct references to it. As per one catalog from Texcell for similar relays,  the schematics would be:

Based on this, the scheme of the regulating relay would be:
Transformer, Capacitor and Magnetron
The transformer is from Daewoo Electronics Copr., with no indication of ratings (230 V, 5 Hz, Class 220, R1S80).

The HV capacitor has a capacity of 0.98 uF, rated at 2100 V, with an internal resistor of 10 Mohm.
The diode is marked "C1 01" (o, perhaps, "1010").
The fuse is marked as: " 5 kV, 550 mA".

Finally, the magnetros is from Daewoo, 2M218 50323AN JF.

viernes, 21 de julio de 2017

Microwave Oven Teka MW-170

A Microwave Oven
The economic crisis seems to be over (in Spain): this is good for many reasons, but one kinda weird is that households are renewing their equipment, and one, me, can find old electronic apparel by the garbage containers: a real mine!

One of my recent findings is a microwave oven model Teka MW-170, made in Korea. I have not found any specific image of it in internet, and I disassembled the casing without taking all the necessary pictures, as I see now.

Model 170G, of which there is more information available and seems more recent, is similar but I have noticed at least several differences: MW-170 has one button to open the door plus another one to start the machine, and it has no turning table (the tempered glass is square!), while 170G does not have door-open and power-on buttons (just open and close the door), and it has a turning table. The documentation of the MW-170G also mentions a couple of heaters and additional switches which are not present in my model.

The specifications: 950 W nominal power, 500 W max output, working at 2450 MHz:

Wiring Diagram
Here the wiring diagram included in the machine:

And a picture of the innings from the side:

I have dismantled the parts and the wiring diagram is OK:

Operation and Components
It is labelled "BUSS MDA 7" and "250 VOLT". It is a ceramic type fuse, similar to this one.
Thermal Cut-Out
It is mounted on one side of the magnetron box. It is labelled in the metal face: "CS-7SA", "2208", "150", and in the plastic cap "CLINAC", "CS 7".
It is a bimetallic thermostat, whose typical applications include microwave ovens, as per this page. The switch is rated for 7.5 A at 250 V.
The switch is normally on, and is disconnected when the temperature exceeds the set value, likely 150 ºC (not checked).

Both the fuse and the thermal cut-out can independently open the circuit.

The lamp is incandescent, mounted on a plastic lamp holder labeled "BOSUNG", "BS77", "2A 250V T180". The lamp is 20 W, from Okusun, for E12 socket (narrow screw, candelabra type) and bulb shape T8 (tubular, 1 inch diameter).
As per the wiring diagram, as soon as the timer is activated the light will also be lit on, regardless of any other switch (exception made of the thermal protection).

The oven has five on/off switches: two "manual" (open/close door and power on/off), one safety element (the "monitor switch"), and two switches related to selectors (power level and timer).

The three independent switches are from Yamatake-Honeywell, series micro:
- the primary switch is model V-5130D 2-88-P Y111, NO (normal open), rated 16A at 250 VAC,
- the secondary switch is model V-5132D 12-87P Y111, also NO and same rating,
- the monitor switch is model V-5423D-049 8812J, T85, NC (normal closed), rated 5A at 250 VAC.
They seem similar to these more modern ones.

The switch on the variable motor setting the power level is from Matushita, model AV53606 T105, NO, rated 15A at 250 VAC. It is fixed to the motor.

The last switch, for the timer, is incorporated inside the timer.

It is worthy looking again at the wiring diagram for the control system for the function of the "monitor switch". 
The diagram shows that if the timer and primary switches are closed, there will be a short through the monitor switch. The occurrence of this short is a protection introduced after a US safety standard required in 1974 an interlock monitor switch (also called safety switch, short switch, sensing switch or failure detector switch). The principle is that under normal conditions opening the door should cut the power to the magnotron. The safety interlock assures that if the magnotron is powered and the door is opened, that is, in case of failure of the door switch, then a short will occur which will disable the appliance before the door is opened too much and dangerous levels of microwave radiation escape.  
I did not keep the mechanical part of the switches, but I assume the following detailed operation: the primary switch (the door switch) operates inversely to the monitor switch, with a slight time delay controlled mechanically, so they are not in closed position simultaneously unless in case of emergency: prior to closing the primary switch, the safety switch is opened; and slightly after opening the main switch, the safety switch is closed.
Anyhow, the amount of radiation emitted by a leaky microwave oven is very small, as indicated in these webpages of the WHO and the FDA.

The timer is set in a progressive scale: 90º corresponds to 3 min, 180º to 10 min, and 270º to 30 min, up to a maximum of 35 min, following approx. a logarithmic scale.

The timer operates as normally open; it closes the switch when the timer is on, and it remains closed until it reaches the set time, when it opens again. When the time is reached, a bell is mechanically hit. If the dial is turned on, then the switch is closed regardless of whether the timer is powered or not.

The timer is from Korea Nakagawa Elec. Ind. Co. Ltd, model "SE-35MF240IB" with a switch capacity of 12 A and 250 V. The manufacturer does not seem to produce this model any more, and I have also not found any reference to it in internet.

The fan is connected in parallel to the timer. Its purpose is to cool down the magnetron.
The maker is Samsung, model RP-0650TE(N) 220V50Hz.
The casing and the impeller are in plastic. The impeller diameter is approx 90 mm. I have not checked the speed.
The motor seems of the single-phase induction shaded-pole type.

Power Selector
The power selector is motorized.
The manufacturer is also Korea Nakagawa Elec. Ind. Co. Ltd. Model is DF-3CV24SI rated 15A at 250 VAC.
I have not found information on this motorized switch.
The drive is a small synchronous motor. The dial lever has 5 discrete positions, and its turning changes the position of an intermediate plastic wheel along the axis of the motor shaft. The motor turns this wheel, which is in discontinuous contact with the switch through a flapping plate. The shape of the wheel, and its position as regulated by the dial, control the amount of time per cycle of the motor that the switch is open/closed. This is how the power is controlled, just by varying the amount of time the magnetron is powered.

The transformer is from Hankook Steel Works Co. Ltd. in Korea. Model is H-5220-5(55VA) 220V 50 Hz. It is labelled as "DANGER HIGH VOLTAGE, "DISCHARGE CAPACITOR BEFORE SERVICING".
The transformer has two secondary windings, but no indication of the output voltage. Internet references point to 3-4 kV.

Magnetron and HV Capacitor
The magnetron used in the oven is from Samsung, model OM55A (20), many of which can still be found in ebay and similar places.

This webpage, on spares and replacement parts, defines it with the following features:
- voltage: 4.1 kV
- standard type (30 mm of antenna, upper box 80*95 mm)
- J configuration ("vents and mounting ears opposite filament leads")
- 700-850 watt
- 35 mm hole center.
From that page:


The magnetron is the core of the machine, the generator of the microwaves that heat the stuff.
The physics behind it are moderately advanced, but without entering in details the principles can be described here.
A high voltage is provided to an anode/cathode element. The cathode, a rod bar, is also heated, and this facilitates the emission of electrodes from it. The anode is ring shaped around the cathode. A magnetic field is applied parallel to the cathode. The electrons tend to jump from the cathode due to the differential electrical voltage, and being charged particles moving in a magnetic field, forces appear on them. The result of both electric and magnetic fields is that the electrons follow spiral trajectories in their way from the cathode to the anode.
The anode has several cavities in its body(these are called "cavity magnetrons"). The interference of the moving electrons and the cavities create certain electromagnetic resonance, which is manifested as microwave radiation. This radiation is collected with an antenna, and conveyed to the oven through a "wave channel".
An aluminium turning wheel ("stirrer fan") in the wave conduit helps distributing the radiation in all directions in the oven.

The magnetron requires DC voltage, and for this reason are provided the large HV capacitor and the diode: to rectify the AC current powering the magnetron into a low ripple, high voltage direct current.
Industrial applications have other power sources, pulsed or switched, but domestic appliances follow the conventional solution with capacitor and diode.
The capacitor is from Samsung, labelled H.V. CAPACITOR SCH-212904A1, 2100 W VAC, 0.90 uF T-70, INTERNAL RESISTOR, NO PCBs.
The capacitors are fitted with internal resistors to allow the discharge when not in use. In any case, the capacitor should be discharged prior to handling it, with a suitable resistor (see here).
The diode is labelled "HVR-1X 3", "SK 8120".

If you look for some more technical information on the cavity magnetron, see here.
A good and detailed page on microwave ovens here.

And a couple of books, which I have not checked:
- Davidson, Homer L. Microwave Oven Repair, 2nd edition. Tab Books Inc., 1991.
- Gallawa, J. Carlton. The Complete Microwave Oven Service Handbook: Operation, Maintenance. Prentice Hall, 1989.

domingo, 23 de abril de 2017

GPS and Arduino

0.- Readme
Nothing in this page is "new", of course.
It is a (reasonably complete, I think) compilation of information related to GPS and Arduino handling of GPS receivers.

If you are "simply" looking for direct printing out of GPS stuff on your screen, this video may help you. If you are a bit more curious, the following lines may be of interest. If, at the other end, you are an advanced programmer or have worked in details related to GPS for a while, probably nothing here will be new for you.

The starting point was that (as usual!) I simply had some practical trouble with several aspects of the GPS-Arduino thing, and it took me a bit of time to find the answers (which, once found, proved to be quite obvious!). Later I expanded it to provide a bit of depth into the reasons of why things are like they are.

The page is organized in five blocks:

- how GPS work,
- the GPS module GY-GPS6MV2 (also NEO6MV2),
- what is NMEA (meaning NMEA standard 0183),
- Arduino sketches for GPS receivers,
- Handling the GPS data.

1.- GPS

There are several satellite positioning systems, and overall they are known as GNSS, for Global Navigation Satellite System.
GPS is American (initially named Navstar GPS), GLONASS is managed by Russia, Galileo is being developed from Europe, and China has BeiDou, also in construction. 


The GPS (Global Positioning System) currently includes some 30 satellites orbiting the Earth at some 20,000 km of altitude. 
The satellites are travelling at fixed orbits (not geostationary). They keep track of their position and radiate it, together with the time when the signal is sent. 
At any time and any position on Earth, at least 4 GPS satellites are visible. 
The GPS receiver can calculate the distance to the emitting satellites in view. From the distance to at least four satellites the position of the receiver can be calculated. 

Now with some more detail.

Position of the Satellites

The precise number of satellites varies depending on the source, from 24 to 32. The minimum is 24. Additional satellites allow for increased precision, while some may be temporarily down.
The satellites travel at high orbits, which apparently are quite predictable. 
They are placed in six orbital planes, with at least 4 satellites on each. These orbits are equally inclined 55º from the Equator and are separated by 60º.
The satellites complete an Earth rotation twice per day, and due to the planet's rotation they repeat the same ground track once every day.

The theoretical position of all GPS satellites at any moment is stored in the "almanac" of a satellite. The almanac is, in general, valid for some 180 d as there are unforeseen actions on the satellite that may affect their position (errors in the initial placing location, gravitational forces from moon, solar pressure, loose atmospheric friction, etc). 

There are verifications of the satellites from radar ground stations. The checks include position, altitude, speed and operation, and are performed twice a day.
The deviations from the foreseen position are collected in the "ephemeris" of the satellite, which are uploaded from the ground stations into each satellite once or twice a day. (However, a reference indicates that the ephemeris is valid for about 4 hours).
With the almanac and the ephemeris, the GPS receiver can determine the precise location of the emitting satellite.
The information on the almanac also allows the receiver to search for the satellites expected to be located within its field of view.
More information on almanacs and ephemeris: herehere and here.

Communication Emitter-Receiver

The satellites emit messages in the radio-micro-wave spectrum. 
Two basic frequencies are used by GPS satellites: L1 at 1575.42 MHz and L2 at 1227.60 MHz, although up to five bands are studied or used. The frequencies are related to the on-board atomic frequency standard (10.23 MHz), itself related to the message coded length (see below).
The messages sent by the satellites contain three types of information:
- identification of the satellite and date+time of signal (plus other information on the health of the satellite),
- ephemeris data for the emitting satellite,
- almanac data for all the satellites in the system.
The structure of the message sent by a satellite is as follows:
- 25 frames of 1,500 bits per frame,
- each frame is divided into 5 sub-frames, each of 300 bits.
- each sub-frame is made up of 10 words, each of 30 bits.
The content is:
- the first sub-frame of each frame encodes the week, the time within the week, and data about the satellite's health,
- second and third sub-frames are used for the satellite's ephemeris,
- fourth and fifth sub-frames contain the almanac of up to 32 satellites, spread over the 4th and 5th sub-frames of the 25 frames of the message.
The navigation messages are broadcast at 50 bits/s, so the full message takes 750 s, or 12.5 min. Sub-frame #1 is therefore transmitted each 30 s.
All satellites transmit in the same frequencies, using encoding systems that allow the receivers to identify the emitting satellite.
There are two codes for the L1 and L2 carriers:
- C/A (Coarse Acquisition), for L1. It is the most common GPS signal, but also the less accurate. 
- P(Y) (Precise Code), available with both L1 and L2 frequencies. Encrypted and reserved for military use.
The original low-bit rate (50 bit/s) message is encoded in a PRN (pseudo random noise) code. 
The C/A PRN code has clock rate of 1.023 MHz (chip rate) and a period of exactly 1 ms (1023 chips).
The P(Y) PRN code has a clock rate of 10.23 MHz (chip rate) and a period of exactly one week (so it is a very long binary code).
The 50 bit/s data stream thus coded is then phase modulated over L1 or L2.
At the GPS receiver, the satellite message needs to be demodulated and separated from the signals sent by the other satellites with the same wave frequency.

More information:

- GPS Interface Control Document here
- Wikipedia's GPS Signals, here

Time and Distance

The calculation of the distance satellite-receiver is done measuring the time required for the signal to travel.
The travel time of the radio signal is approx. 65-70 ms. A positioning accuracy of 15 m requires to accurately measure 50 nanoseconds.
This accuracy is provided by atomic clocks, four of which are mounted on each GPS satellite. They are also monitored and controlled from the ground stations.
GPS receivers do not include atomic clocks, but just (high end) quartz crystals which by their lower accuracy have an offset to the satellite clocks (synchronized among them).
The time of transmission (TOT) of an element of the signal (the "epoch") is included in the message from the satellite. The time of arrival (TOA) of the epoch can be determined by the receiver's clock.
The time of flight (TOF) of the signal can be calculated, with the uncertainty of the offset between the satellites and the receiver's clocks.
The offset, constant for a measure, is an additional unknown to be solved.


It is sometimes stated that three satellite signals are needed to locate a receiver on the surface of the earth, an the fourth signal is required to calculate its actual elevation.
This does not seem to make much sense to me: the second geometrical solution is in the outer space, so it should be easy to grasp (point E in the following 2D sketch, which is to-scale).

The fourth satellite is required to solve for the four unknowns: the three spatial coordinates of the receiver plus the time offset.

More than four satellites over-determine the system of equations and then a best fitting method is required.

2.- GPS module GY-GPS6MV2 (also NEO6MV2)
I bought this module some time ago, likely from Alibaba, maybe this one.
The Module
Here there is a rather detailed description of a GPS module which seems to be like mine, item by item- but unfortunately I can not guarantee.

The schematics:

U-blox' NEO-6M
The core of the module [1], the "GPS unit", is from u-blox, a company specialized in wireless communications and industrial positioning.
My chip is a NEO-6M-0-001 (and this probably is why I have seen the module also labeled as GY-NEO6MV2). Funnily enough, the NEO-6M is not any more in the manufacturer's list of products. Anyhow, the datasheet is here. The receiver description, including the protocol specification is here.

3.3 vs 5 V

This latter datasheet (and some webpages) warn about burning the module by connecting it to the 5 V of Arduino: it should rather be connected to 3.3 V, or to an adequate resistor connected to the VCC but also, apparently, to the communication pins between the Arduino and the GPS module.
Fact is that, at least my module, has an on board voltage regulator (KB33 MIC 5205; [4]) and I have worked with no problem both with 3.3 and 5 V.
However, it is true that I cannot be sure about the long term effect of the 5 V on the communication connections. Indications on two possible solutions are provided here with diodes and here with resistors as voltage divider.


U-blox provides a software named u-center, which I find quite amazing. The company's page has a detailed User Guide, and a quick glimpse can be found here.


I have connected the module to the software in my PC through my USB to UART converter (chip CP2102).
(Please, just remind: RX is connected to TX, not to RX; otherwise it, of course, won't work.)
UART is not the only possible serial communication port. As indicated in the datasheet the receiver is "truly multi-port and multi-protocol [see below on this]". It has the following ports:
Although the baud rate defined by the standard NMEA protocol (see below) is 4800 b/s, and the Arduino sketches work at 9600 bauds (see below), the UART ports can be configured up to 115200 b/s.

The module has a small battery [3], which is, apparently, used for the secure storage of configuration data on a EEPROM [5].
The battery is rechargeable, but it may be faulty. Mine, for instance has dropped from 2.9 volts yesterday night to 0.9 V this morning. Upon re-connection it quickly grows again to 3.1 V, and one hour later, off the GPS, is at 2.5 V.  (Maybe there is a small leakage somewhere in the UART converter and the USB extender cable).
This may create some difficulties: drain most of the current at the starting and delaying the actual operation of the GPS, and, perhaps, losing the information in the EEPROM.
See here, for instance, in Spanish.

There is a small green LED [7] which blinks when the location is fixed.
The schematics above shows another LED, which I d not find in my module.


The GPS antenna [8] should be kept with the ceramic part upwards, looking to the skies!
(I have managed to break the shielded cable at the connector. Amazingly I have managed to recompose the connection, although the cable is approx. 1/20th of my fingers).

3.- NMEA

What is it
The data received from a GPS module like NEO 6 follows the standard 0183 from NMEA (National Marine Electronics Association), which supports "one-way serial data transmission from a single talker to one or more listeners".
The standard seems to be complex enough as it covers a wide range of equipment, but, on the other side, it follows a strictly defined coding with simple ASCII text.
NMEA 0183 is copyrighted, and not easy to find (but it can be bought at the association's webpage). Latest version is 4.10 (2012), and the previous version (3.01, dated 2002) can be found here.

Sentences for Communication

There are many sources of information on NMEA 0183 standard, but I have found this one particularly useful.
The key points, as far as I understand this issue, are:
- The communication from the GPS is done in sentences. One sentence is a line of data self-contained and independent from other sentences.
- There are standard sentences for each device category. There is also the possibility to define proprietary sentences for use by an individual company.
- The standard sentences have a two letter prefix that defines the device. For GPS receivers the prefix is GP. This prefix is followed by a three letter sequence that defines the sentence contents.
- Proprietary sentences begin with the letter P and are followed with 3 letters that identifies the manufacturer controlling that sentence: a Garmin sentence would start with PGRM.
- Each sentence begins with a '$' and ends with a carriage return/line feed sequence (<CR><LF>).
- Sentences can be no longer than 80 characters of visible text (plus the line terminators).
- The data is contained within this single line. Data items are separated by commas. If data for a field is not available, the field is omitted but the delimiting commas are still sent, with no space between them
- The data itself is just ASCII text. It may extend over multiple sentences in certain specialized instances, but it is normally fully contained in one variable length sentence.
- There is a provision for a checksum at the end of each sentence which may or may not be checked by the data receiver.  The checksum field consists of a "*" and two hex digits representing the exclusive OR of all characters between, but not including, the "$" and "*". 
Among the different sentences included in the standard and which can be of use for a GPS, I have just selected here one example:
     GGA                       Global Positioning System Fix Data
     123519                Fix taken at 12:35:19 UTC
     4807.038,N         Latitude 48 deg 07.038' N
     01131.000,E      Longitude 11 deg 31.000' E
     1 Fix quality:      0 = invalid
                                    1 = GPS fix (SPS)
                                    2 = DGPS fix
                                    3 = PPS fix
                                    4 = Real Time Kinematic
                                    5 = Float RTK
                                    6 = estimated (dead reckoning) (2.3 feature)
                                    7 = Manual input mode
                                    8 = Simulation mode
     08                          Number of satellites being tracked
     0.9                         Horizontal dilution of position
     545.4,M                Altitude, Meters, above mean sea level
     46.9,M                  Height of geoid (mean sea level) above WGS84 ellipsoid
     (empty field)      time in seconds since last DGPS update
     (empty field)      DGPS station ID number
     *47                        the checksum data, always begins with *

Implementation of Communication
With regard to hardware implementation:
- The interface speed can be adjusted on some models but the NMEA standard is 4800 b/s (bit per second rate) with 8 bits of data, no parity, and one stop bit. 
- At 4800 b/s only 480 characters per second can be sent. As an NMEA sentence can be as long as 82 characters the communication can be limited to less than 6 different sentences (the actual limit is determined by the specific sentences used but this shows that it is easy to overrun the capabilities with rapid sentence response).
- There is s HS (high speed) NMEA standard.
- The receiver of the data can watch for the data sentence that it is interested in and ignore other sentences. There are no commands in the standard to indicate that the GPS should do something different. There is also no way to indicate anything back to the unit as to whether the sentence is being read correctly or to request a re-send of some data. Instead the receiving unit just checks the checksum and ignores the data if the checksum is bad figuring the data will be sent again sometime later.

Further details can be found in, for instance:

According to the protocol specification, the NEO 6 GPS receiver uses version 2.3 of the NMEA standard. Version 2.1 can also be selected by configuring the receiver.
The GPS receivers use NMEA protocols, but they can also communicate with the "proprietary UBX protocol".
The receiver can be configured in a number of ways, for example:
- dynamic platform settings, according to the use of the receiver that can improve the performance and accuracy: portable, stationary, pedestrian, automotive, at sea, and airborne.
- Navigation output filters, which control the validation of calculated fixes.
- Static hold, which I guess is an intermediate to the stationary and pedestrian settings above.
- Control of degraded navigation, with less than 4 satellites in use.
- SBAS (Satellite Based Augmentation Systems).
- Filtering of output data.
- Power management 
The configuration of the receiver is done with the UBX configuration messages. 
The UBX protocol is proprietary of u-blox, and it is described here.
The configuration of the GPS receiver with the UBX protocol can be done with u-center. Some pages on this: here, here.
(When you're done, go to Receiver>> Action>> Save Config. Otherwise, every time you unplug the GPS, it will revert back to the original configuration.)

4.- Arduino
Simple Sketches
A bare-bone sketch is GPS_bas_01, (here) which simply reads as text the data from the receiver and prints it down.
The resulting output is something like this:

As per the NMEA standard (see above) this would correspond to:
  • $GPGGA (fix data): 16:55:12.00 (time UTC), 39º28.19043' N (lat), 0º23.07436' W (lon), 1 (data valid, GPS Quality Indicator), 05 (satellites in view), 1.61 (HDOP, horizontal dilution of precision), 107.0 m (altitude), 50.1 m (geoidal separation), 0 (age of differential GPS data), 0 (differential reference station ID), *4 (checksum).
  • $GPGSA (GNSS receiver mode): A (automatic mode), 3 (3D), 29, 21 ,… (ID numbers of satellites in solution), 2.42 (PDOP, position dilution of precision), 1.61 (HDOP, horizontal dilution of precision), 1.80 (VDOP, vertical dilution of precision), *01 (checksum).
  • $GPGSV (GNSS satellites in view):  4 (total number of GSV sentences), 1 (sentence number), 14 (total number of satellites in view), 04 (satellite ID number), 61 (elevation in º), 326 (azimuth in º), 0 (SNR, signal to noise ratio), 05, 06, … (data for up to 4 satellites in view per line), *77 (checksum).
  • $GPGLL (geographic position latitude, longitude): 39º28.19043' N (lat), 0º23.07436' W (lon), 16:55:12.00 (time UTC), A (data valid), A (autonomous mode), *76 (checksum).
  • $GPRMC (recommended minimum specific specific GNSS data): 16:55:13.00 (time UTC), A (data valid), 39º28.19045' N (lat), 0º23.07436' W (lon), 0.304 (speed over ground), 0 (course over ground), 230417 (date, ddmmyy), 0, 0 (magnetic variation), A (autonomous mode), *6E (checksum).
  • $GPVTG (course over ground and ground speed): 0, T (course over ground, º true), 0, M (course over ground, º magnetic), 0.304, N (speed over ground, knots), 0.562, K (speed over ground, km/h),  A (autonomous mode), *25 (checksum).
The sketch is quite simple, but still it uses a library (SoftwareSerial).
A side note on this: many of the sketches and libraries that I have seen use pins 3 and 4 for serial communication with the GPS module. However, not all Arduino boards allow those pins to be used for that purpose: check SoftwareSerial and avoid silly headaches on why the dammed GPS is not working with your Mega or Pro.

Some pages mention that Ublox modules may have timing issues with SoftwareSerial, and they recommend to use the hardware UARTS on the Arduino for communication with the GPS. I have not gone beyond this.

It is possible to avoid SoftwareSerial and directly connect through the hardware serial pins RX/TX (D0 and D1 in Pro Mini). GPS_bas_00, (here) does the same as the previous sketch but directly with Serial (not with the SoftwareSerial library).
In this case the bytes read from the GPS receiver are placed into a char array and the serial print to the monitor is used only once for each NMEA sentence.
In Arduino Pro Mini the pins RX/TX D0/D1 are connected to the UART RX/TX pins, so both sets of serial pins are actually the same and cannot be used simultaneously. It is therefore necessary to disconnect (at least un-power) the GPS when loading the sketch, otherwise the board will receive input from the GPS when trying to close the communication with the Arduino IDE, and the uploading will not work. Once the sketch is loaded, the GPS can be re-connected to the Arduino (power and RX/TX on pins D0/D1) and the results from the GPS can be read through the serial monitor (RX/TX of the UART-UBS). Although in this case there are two "serial units" connected to a single serial port, they are not interfering: the GPS is acting as the serial transmitter and  the monitor as the serial receiver.
Other Arduino boards are easier on this regard, as they have several separated serial connections. See Serial or the different board specs for details. 
Of course SoftwareSerial avoids these problems.

GPS_bas_00 is quite simple, but is it possible to make it even simpler?

Here there is a project on high altitude balloons. They use Arduino and a different model of Ublox GPS module (MAX6). From them I got the idea that maybe the (almost) empty sketch might work:
void setup() {

void loop() 
As far as the GPS is powered, it just sends the NMEA sentences which it has been configured to spit out. So, if we just read from the serial port, no instruction involved, it might work.
Well, it does not work ...

The balloon project goes well beyond this. For instance here they have prepared a sketch to dynamically configure the GPS from Arduino (which can normally be done from Ublox's u-center software, as mentioned above).
In this other page , also dealing with high altitude stuff, they configure the Ublox GPS from Arduino (in this case module NEO-6Q/MAX-6Q).

GPS Arduino Libraries
The main library for (this) GPS module is, as far as I have investigated, TinyGPS from Mikal Hart. The library is also in GitHub.

There is a Tiny GPS++ (TinyGPSPlus) library (here the GitHub) The main differences, compared to TinyGPS and according to the author (also Mikal Hart), are that its "programmer interface is considerably simpler to use than TinyGPS, and the new library can extract arbitrary data from any of the myriad NMEA sentences".

NeoGPS is an Arduino library which is "fully-configurable Arduino library uses minimal RAM, PROGMEM and CPU time, requiring as few as 10 bytes of RAM866 bytes of PROGMEM, and less than 1mS of CPU time per sentence.

There are libraries for specific GPS receivers. For instance, Adafruit_GPS library for the MTK33x9 chipset, is "the ultimate GPS library for the ultimate GPS module!".

GPS NEO-6M is another Arduino library for GPS interfacing, whose creator affirms has been tested with the NEO-6M.

Another library that claims to be used with "any GPS receiver that uses standard NMEA sentences" can be found here.

Maarten Lamers wrote the NMEA library "for easy decoding of GPS data on the Wiring i/o board". As the points in the webpage, the Wiring was a predecessor of the Arduino, and the library has not been tested on Arduino. Still, he mentions that TinyGPS is based on this library (duly acknowledged by Mikal Hart).

UBX-GPS library is designed for "fastest and simplest communication with u-blox GPS modules".

5.- Handling GPS Data

Once the GPS receiver has transmitted the NMEA sentences to the Arduino, and they have been properly read and stored in nice and "simple format", then what follows?

There are several options to convert the "simple format" data into more general format (GPX, KMZ, etc.). For instance:
- GPS Visualizer is a free online utility "that creates maps and profiles from geographic data". You can input a CSV or tabbed file, a spreadsheet, or drag and drop the data. The appearance of the page is a bit odd (so un-Apple!) but the content is good.
-GPS Prune is intended to view, edit and convert GPS data. It allows to load text files as well as NMEA files (with .nmea extension?), among quite a number of other options.

- Finally, GPS Babel seems to be the most known GPS data converter. It reads text files with NMEA sentences.