
The LED on the module should alternate lit for about 3 seconds and off about 3 second if it enters AT mode. Then power up the Arduino board and HC05 module. Do that by connecting the EN pin to 3.3V, NOT 5V. To change the baud rate you must first put the HC05 into AT mode. HC05 TX to Arduino pin 2 and HC05 RX to Arduino pin 3 (through voltage divider).

Connect the HC05 as shown in the Martyn Currey page linked in my prior post. while (ss.This instruction is for the HC05 module marked ZS-040 connected to an Arduino Uno, Nano or any mega328 based board. This sketch listen to the GPS serial port, and when data is received from the module, it is sent to the serial monitor. If you’re using other pins you should edit that on the following line: SoftwareSerial ss(4, 3) Īlso, if your module uses a different default baud rate than 9600 bps, you should modify the code on the following line: ss.begin(9600) This sketch assumes you are using pin 4 and pin 3 as RX and TX serial pins to establish serial communication with the GPS module. The serial connection to the GPS module The module VCC pin is connected to Arduino 5V pinĬopy the following code to your Arduino IDE and upload it to your Arduino board.The module TX pin is connected to Arduino pin 4.The module RX pin is connected to Arduino pin 3.The module GND pin is connected to Arduino GND pin.Wire the NEO-6M GPS module to your Arduino by following the schematic below. You can use the preceding links or go directly to /tools to find all the parts for your projects at the best price! Arduino – read Best Arduino Starter Kits.Parts Requiredįor testing this example you’ll need the following parts: To get raw GPS data you just need to start a serial communication with the GPS module using Software Serial. The module communicates with the Arduino via serial communication using the TX and RX pins, so the wiring couldn’t be simpler: NEO-6M GPS Module The NEO-6M GPS module has four pins: VCC, RX, TX, and GND.

We recommend checking the NEO-6M GPS module page on Maker Advisor to compare the price in different stores and find the best one. You can get the NEO-6M GPS module for a price between $5 to $20.

To learn how to use the NEO-6M GPS module with the Raspberry Pi, you can read: Email Alert System on Location Change with Raspberry Pi and GPS Module. The NEO-6M GPS module is also compatible with other microcontroller boards.
