How to set refresh rate for GPS Module

You need install driver and u center first

Windows driver link
https://www.u-blox.com/en/product-resources/field_file_category/driver-221
Driver name is u-blox GNSS Standard Driver for Windows, v1.2.0.8

 Ublox u center software link
https://www.u-blox.com/en/product/u-center

U center user guide link
https://www.u-blox.com/sites/default/files/u-center_Userguide_%28UBX-13005250%29.pdf

After open u center, you choose COM port and press F8 to open text console

Then press F9 to open the NEMA setting page:

You click UBX-CFG-RATE(Rates),  you will see the setting area in the right,  in the Measurement Period you can set it to 100ms, then the Measurement Frequency will change to 10.00Hz automatically
At last, you click Send to save the setting

Where to buy:
http://www.diymalls.com/index.php?route=product/search&search=gps

Any question please email sales@diymalls.com

 

USBASP

Driver link: https://zadig.akeo.ie/

Video link: https://youtu.be/54cAKaolOQY

Connection like below, then connect it to the PC USB interface:
You can use 2.54mm Pitch Jumper Cap or DuPont Cable

Install driver: Driver name is Zadig
Options-choose List All Devices

Choose USBasp,  Driver libsubK(v3.0.7.0) , you need click the drop-down menu to choose the correct driver

 

After install the driver successfully,  you can open device manger and see the device as below:

 

Open AVRDUDESS and setting as below:
Programmer: Uptanium USBASP
Port: usb
MCU: ATmega8
Flash: choose hex you want to use
Click Detect, then click Go
Please pay attention about the print information in the window

 

It will show writing …   Reading…, once done it will show avrdude.exe done.  You can check the details as below:

Any question please contact via sales@diymalls.com
Website: www.diymalls.com

DIYmall USBASP Programmer

Burn bootloader Use  USBISP and Arduino UNO via Arduino IDE

Connection:

Open Arduino IDE, choose board: Arduino uNO, programmer: USBasp, then click Burn Bootloader

 

 

 

 

User guide link: https://protostack.com.au/download/Users%20Guide%20(AC-PG-USBASP-UG-V2.0).pdf
Document link: https://tinyurl.com/USBASP-guide
Driver link:
https://zadig.akeo.ie/
Youtube link:

Where to buy:
https://www.amazon.com/dp/B07NZ59VK2 http://www.diymalls.com/USBASP-51-AVR-Microcontroller-Programmer-Downloader-10P-to-6P-Adapter-Board?search=USBASP

Any question please email sales@diymalls.com

DIYmall AS3935 Lightning Detector Sensor

What you need:
1PCS Arduino UNO
1PCS USB Cable
1PCS AS3935 Light Sensor
6P Female to Male Dupont Cable

Connection:
AS3935       Arduino UNO
VCC                   5V
GND                  GND
SCL                   A5
SDA                  A4
IRQ                    D5

First you need use IIC.ino to find the IIC address of the AS3935 sensor

Then you need change IIC address in the AE_AS3935DEMO-.ino, upload the code and open the serial monitor, please choose 9600 baud.
In my case, I changed the Line 11 and Line 66 to 0x03

11 #define AS3935_ADRS 0x03 66 Wire.write(0x03);

Below is the result

Code  link
https://github.com/PlayingWithFusion/PWFusion_AS3935_I2C

Manual link
https://tinyurl.com/y5vnlwjd

Video link
https://youtu.be/uQwvpUYsRok

Website Link
http://www.diymalls.com/GY-AS3935-Lightning-Detector-Digital-Sensor
Alibaba Link                        http://aliurl.cn/axyizl
Aliexpress link    http://aliurl.cn/as06xt
Amazon link                          www.amazon.com/dp/B087358RNT

Any question please email sales@diymalls.com

 

DIYmall 0.96’’ OLED works with NodeMCU

What you need:
1PCS NodeMCU
1PCS 0.96” OLED
4P Female to Female Dupont Cable

Connection:
0.96” OLED               Nodemcu
VCC                                 3V3
GND                                GND
SCL                                 D1
SDA                                D2

Code download link:
https://github.com/adafruit/Adafruit_SSD1306
https://github.com/adafruit/Adafruit-GFX-Library

Once download, please choose ssd1306_128X64_i2c in the example, in the code, there are 2 lines you need change as below:

#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)

if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3D for 128×64

Amazon Link
https://www.amazon.com/dp/B00O2LLT30
https://www.amazon.com/dp/B00O2LKEW2
https://www.amazon.com/dp/B00O2KDQBE

Website Link
http://www.diymalls.com/index.php?route=product/search&search=oled

Alibaba Link
https://chinaflyfun.en.alibaba.com/search/product?SearchText=0.96

Tutorial link

ESP8266 0.96 inch OLED Display with Arduino IDE

Any question please email sales@diymalls.com

Optical Fingerprint Reader Sensor with Arduino

DIYmall Optical Fingerprint Reader Sensor with Arduino

What you need:
1PCS Arduino UNO R3
1PCS USB Cable
1PCS Fingerprint Sensor
1Set Dupont Cable

Connection:

 

Code link:
https://github.com/adafruit/Adafruit-Fingerprint-Sensor-Library

Video link
https://www.youtube.com/watch?v=QP9Q075vuJ0&t=200s

Website link
http://www.diymalls.com/Optical-Fingerprint-Reader-Sensor?search=fingerprint

amazon link 
https://www.amazon.com/dp/B07BQ9VNWR

https://www.amazon.com/dp/B07551XV2T
https://www.amazon.com/dp/B077GKPWMN

Any question please email sales@diymalls.com

DoHome Homekit Smart Plug

This DoHome smart plug can work with iPhone’s Home APP,  and you can control other devices via Siri directly

How to add the smart plug in Home APP?

When you plug it in and turn it on, you will look in your Wifi settings section for a device called HomeKit_XXXX. This is the DoHome plug

Connect to it.

Then the wifi network list will pop up automatically
If the list did not pop up, please open a browser and point to 192.168.4.1. The DoHome plug will then present you with a list of Wifi Networks that it sees.

Choose the one the you normally use, and supply the password. You should be returned to your browser, because the plug is on your regular network.

Use the HomeKit app in IOS to find your plug to add.

Add Accessory
I don’t have a code or cannot scan
You should see your device labeled Switch-YYXXXX, where XXXX match the letters of the original DoHome network
Manual Code 12345678

Then the Switch-YYXXXX in your Home APP, you can change the name Switch-YYXXXX by yourself

Now, you can control it via Siri
Such as:
Hi Siri, turn off the switch
Hi Siri, turn on the switch

NOTE: The network must be 2.4Ghz, this plug can not work 5Ghz

Here is the product page:

https://www.amazon.com/dp/B07ZCN9M57

Any question please email sales@diymalls.com

How to use app to control relay32s

 

How to use app to control relay32s

What you need:
1PCS Relay32s
1PCS Power Supply
APP name: DIYmall Relay Control

Download APP:
iPhone: please search “DIYmall Relay Control” in APP store
Android: please find this apk file(Requires Android : 4.1 and up)

Power the relay32s
Input: 6V 0.6A (NOTE: if the board does notwork, please change power  to 9V 1A or 12V 1A)
Enable Bluetooth in your phone

Then the relay32s will connect your phone automatically(No need to pair, because it use BLE)

You can click the 4 red button to turn on and turn off the 4 relays

Once click, it will show ON, and the buttons turn green

Then we try to connect via wifi.  Please close the Bluetooth and connect the wifi “TEST”, password is 123456789


On the app, the connection will show wifi, and you can click the 4 red buttons to control the replay status

Video Link: https://youtu.be/xwVyXb_0DKM

FAQ

Q: Does this module include a web server?
A: Yes, simple HTTP GET requests to 1) turn on/off module, 2) get states of relays in JSON format

Q: Can the module be controlled by a browser on a PC (Firefox / Windows)?
A: Yes. http://192.168.1.1/h1 (activate relay 1), http://192.168.1.1/l1 (deactivate relay 1), http://192.168.1.1/j (JSON format, information on all relay states)

Q: Can the module operate in client state, and connect to my existing AP, so I can control it over my existing LAN?
A: AP only, but can send the firmware to the user to modify easily to add to client state if the user is advanced (just need usb-to-serial). Requires firmware change.

Q: And then, using port forwarding, can I control if over WAN?
A: If you do the above firmware change and you set up the relay client as the DMZ, yes

Q: Can I change wifi password?
A: Yes, you can change password by modifying the firmware, change this line:
https://github.com/cyoung/esp32-webserver/blob/master/main/main.c#L123

Q: Does this work with Google home?
A: Google home – no, but they could potentially plug into IFTTT with firmware changes

Q: How to control relays with my own program?
A:
1. Connect to hotspot (ssid=TEST, password=123456789).
2. Use http://192.168.1.1/j for JSON output to obtain relay states.
3. Change relay states: http://192.168.1.1/h1 (‘high’, relay 1 – on) or http://192.168.1.1/l1 (‘low’, relay 1 – off).

Q: How to change the firmware?
A:

  1. Install esp-idf. http://esp-idf.readthedocs.io/en/latest/get-started/
  2. Modify firmware (https://github.com/cyoung/esp32-webserver/blob/master/main/main.c) to add your SSID and password.
  3. Compile firmware.
  4. Flash with the ESP32-Flasher-GUI http://iot-bits.com/esp32/esp32-flash-download-tool-tutorial/

Q: Can the Bluetooth pair with multiple phones? And can it stay paired
A: It can work with multiple phones on Bluetooth
It actually doesn’t pair because it uses BLE
Q: Can the firmware be updated with a raspberry pi?
A: No, can’t be. best to use CP2102 dongle

website link  http://www.diymalls.com/esp32-wifi-bluetooth-relay-module?search=relay

Any question please email sales@diymalls.com