How to distinguish the power supply adapter

Today, I got 2pcs power supply adapter from 2 different supplier

Out of curiosity, I unassemble them.  Found they power supply module is quite different.

The one is bad , PCB is old , a lot of glue on the board, and there are lots of dust on the PCB, if the glue loose and two parts touch each other, it will cause fire

Below is the good one, PCB is new and clear, there is no glue

How to change logo to arduino code?

  1. Download  GIMP , link https://www.gimp.org/
  2. Open GIMP, then click file-open  choose the logo picture( you need edit your logo in photoshop first, to make the logo size almost full size of the whole picture)
  3. In GIMP, Colors-desaturate, to convert the logo color to black

  4. Image-mode-indexed, choose use black and white(1-bit) in palette
  5. File-export as-XBM
  6. Open the XBM file in textedit, you will get code like this:
    #define DIYmall_width 120
    #define DIYmall_height 64
    static char DIYmall_bits[] = {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x01,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0xf0, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0xf8, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x01, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0xe0, 0xff,
    0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x07, 0x00, 0xfe, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x1f,
    0x00, 0x00, 0x00, 0xfc, 0x07, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00,
    0x80, 0xff, 0xff, 0x0f, 0x00, 0x10, 0xf0, 0x0f, 0x00, 0xe0, 0x07, 0x00,
    0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0x00, 0xf0, 0xe0, 0x3f, 0x00,
    0xf8, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0x01, 0xf0,
    0xc1, 0x7f, 0x00, 0xfc, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3f, 0xe0,
    0xff, 0x07, 0xf0, 0x07, 0xff, 0x00, 0xfe, 0x03, 0x00, 0x00, 0x00, 0x00,
    0x80, 0x3f, 0x00, 0xfc, 0x0f, 0xf0, 0x07, 0xfe, 0x03, 0xff, 0x01, 0x00,
    0x00, 0x00, 0x00, 0x80, 0x3f, 0x00, 0xf0, 0x1f, 0xf0, 0x07, 0xfc, 0xc7,
    0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3f, 0x00, 0xc0, 0x3f, 0xf8,
    0x07, 0xf8, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3f, 0x00,
    0xc0, 0x3f, 0xf8, 0x07, 0xe0, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x80, 0x3f, 0x00, 0x80, 0x7f, 0xf8, 0x07, 0xc0, 0xff, 0x0f, 0x00, 0x02,
    0x00, 0x08, 0x03, 0x80, 0x3f, 0x00, 0x80, 0x7f, 0xf8, 0x0f, 0x80, 0xff,
    0x87, 0x87, 0x07, 0x00, 0x0c, 0x03, 0x80, 0x3f, 0x00, 0x80, 0x7f, 0xf8,
    0x0f, 0x00, 0xff, 0x83, 0x87, 0x07, 0x00, 0x0c, 0x03, 0x80, 0x3f, 0x00,
    0x80, 0x7f, 0xf8, 0x0f, 0x00, 0xff, 0x83, 0x8f, 0x07, 0x00, 0x0c, 0x03,
    0x80, 0x3f, 0x00, 0x80, 0x7f, 0xf8, 0x0f, 0x00, 0xff, 0x81, 0xcd, 0x07,
    0x3f, 0x0c, 0x03, 0x80, 0x3f, 0x00, 0xc0, 0x3f, 0xf8, 0x0f, 0x00, 0xfe,
    0x81, 0xcd, 0x86, 0x71, 0x0c, 0x03, 0x80, 0x3f, 0x00, 0xc0, 0x3f, 0xf8,
    0x0f, 0x00, 0xfe, 0x80, 0xcd, 0x86, 0x60, 0x0c, 0x03, 0x80, 0x3f, 0x00,
    0xe0, 0x1f, 0xf0, 0x0f, 0x00, 0xfe, 0x80, 0xd9, 0x06, 0x70, 0x0c, 0x03,
    0x80, 0x3f, 0x00, 0xf8, 0x0f, 0xf0, 0x07, 0x00, 0xfe, 0x80, 0xf9, 0x06,
    0x7f, 0x0c, 0x03, 0x80, 0x3f, 0x80, 0xff, 0x07, 0xf0, 0x07, 0x00, 0xfe,
    0x80, 0x79, 0x86, 0x61, 0x0c, 0x03, 0x80, 0xff, 0xff, 0xff, 0x03, 0xf0,
    0x07, 0x00, 0xfe, 0x80, 0x79, 0xc6, 0x70, 0x0c, 0x03, 0x80, 0xff, 0xff,
    0xff, 0x00, 0xf0, 0x07, 0x00, 0xfe, 0x80, 0x71, 0xc6, 0x79, 0x0c, 0x03,
    0x80, 0xff, 0xff, 0x3f, 0x00, 0xe0, 0x03, 0x00, 0xfe, 0x80, 0x31, 0x86,
    0x6f, 0x0c, 0x03, 0x00, 0xfc, 0xff, 0x03, 0x00, 0xe0, 0x01, 0x00, 0x78,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  7. Save the arduino code

DIYmall Ublox NEO-6M Arduino GPS Module with EEPROM

 

 1   Please solder the pin header, then connect like this
GPS module        Arduino
VCC                            5V
GND                          GND
RX                              4
TX                               3

2     Connect UNO R3 to your computer
y
ou can download library from this link:
https://github.com/mikalhart/TinyGPSPlus
as the default baud rate for this gps module is 9600, so you need change static const uint32_t GPSBaud = 9600 to static const uint32_t GPSBaud = 4800, after uploading the code, you can open the serial monitor , please choose Both NL&CR 115200 baud, then you can get the GPS , below is the information I got:

 

Any question please feel free to contact

Email:sales@diymalls.com
Skype:freezone992
Phone/Whatsapp/Wetchat:0086-18576406709

Website:www.diymalls.com

Amazon link https://www.amazon.com/dp/B01H5FNA4K

Aliexpress link http://s.aliexpress.com/IjYvYFja

Replace VK16E GMOUSE Arduino GPS Module U-BLOX UBX-G7020-KT G28U7FTTL Tutorial

Today we will learn use how to use arduino GPS module

1.Please solder the pin header, then connect like this
GPS module             Arduino

VDD(red line)               5V
GND (black line)         GND
RXD(blue line)              3
TXD(green line)            4

 

2. Connect UNO R3 board to computer.
You can download library from this link:
https://github.com/mikalhart/TinyGPSPlus
as the default baud rate for this gps module is 9600, so you need change static const uint32_t GPSBaud = 9600 to static const uint32_t GPSBaud = 4800, after uploading the code, you can open the serial monitor , please choose Both NL&CR 115200 baud, then you can get the GPS , below is the information I got:

You need to solder the pin header to the cable first

You can download arduino gps module code from   https://github.com/mikalhart/TinyGPS

Any question please feel free to contact

Email:sales@diymalls.com
Skype:freezone992
Phone/Whatsapp/Wetchat:0086-18576406709
Website:www.diymalls.com
amazon link  https://www.amazon.com/G/dp/B015R62YHI
ebay link   http://www.ebay.com/itm/172775394259