Sunday, August 16, 2020

NodeMCU (ESP8266) + 1.44" 128x128 TFT with ST7735 SPI driver (KMR1441_SPI V2)





This video show how to driver 1.44" 128x128 TFT with ST7735 SPI driver (KMR1441_SPI V2) with NodeMCU (ESP8266) using ssd1306 library. Using Arduino IDE.

- In Arduino IDE, open library manager, search ST7735, and install ssd1306 library.

- Open Example > ssd1306 > demos > st7735_demo

- Connect ESP8266 to LCD
ESP8266 LCD
===================
3V3 VCC
GND GND
D1 A0 (D/C)
D2 CS (CS)
RX RESET (RES)
D7 SDA (DIN)
D5 SCK (CLK)
LED (Open in my test)

Thursday, July 23, 2020

ATGM336H-5N/ESP32, read GPS position using TinyGPS++

To read ATGM336H-5N GNSS Module from ESP32/ESP8266, or Arduino, the TinyGPS++ library can be use.


 TinyGPS++ is a new Arduino library for parsing NMEA data streams provided by GPS modules. To install this library, download here, unzip the archive into the Arduino “libraries” folder, and restart Arduino. You should rename the folder “TinyGPSPlus”.

The TinyGPS++ connect GPS module using SoftwareSerial. To make it work on ESP32, install EspSoftwareSerial in Arduino IDE Library Manager.



Now you can open TinyGps++ DeviceExample.


Modify the RXPin and TXPin to match with you connection. It's 16 and 17 in my case. And change GPSBaud to 9600.
/*
Connection between ESP32 and ATGM336H-5N:
ESP32		ATGM336H-5N
-----------------------
VCC		VCC
GND		GND
16 (RX)		TX
17 (TX)		RX
*/
static const int RXPin = 16, TXPin = 17;
static const uint32_t GPSBaud = 9600;

Verify and Upload to run it.



Wednesday, July 22, 2020

ATGM336H-5N, GNSS Module support BDS (BeiDou Navigation Satellite System)

ATGM336H-5N is a BDS/GNSS Whole Constellation Positioning And Navigation Module.






The BeiDou Navigation Satellite System (BDS) (北斗卫星导航系统) is a Chinese satellite navigation system.

reference: Wikipedia - BeiDou

The ATGM336H-5N series of module, package size for the 9.7mmX10.1mm is a
general term of high performance BDS/GNSS whole constellation positioning and
navigation module series.The series of module products are based on the fourth
generation low power consumption GNSS SOC single chip of Zhongke micro -
AT6558,support a variety of satellite navigation systems, including the Chinese BDS
(Beidou satellite navigation system), American GPS, Russian GLONASS, EU Galileo,
Japanese QZSS and Satellite enhanced system SBAS (WAAS,EGNOS,GAGAN,
MSAS)). AT6558 is a real sixes in one multi-mode satellite navigation and
positioning chip, including 32 tracking channels, can simultaneously receive GNSS
signals of six satellite navigation systems and implement joint positioning, navigation,
and timing.

ATGM336H-5N series of modules have high sensitivity, low power, low cost and
other advantages, suitable for vehicle navigation, handheld positioning, wearable
devices and you can directly replace the LEA series modules of Ublox. 



To first test the ATGM336H-5N module. I install Ublox's u-center on Windows, connect the module using a FTDI FT232RL USB to Serial board.

Connection between ATGM336H-5N and FT232RL
VCC(ATGM336H-5N) <---> VCC(FT232RL)
GND(ATGM336H-5N) <---> GND(FT232RL)
TX(ATGM336H-5N)    <---> RX(FT232RL)
RX(ATGM336H-5N)    <---> TX(FT232RL)

Install and run Ublox - u-center (GNSS evaluation software for Windows)






Next: