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

 

How to program relay32s

 

          How to program relay32s

What you need:
1PCS Relay32s
1PCS USB to TTL Module (please install driver in your PCc)
1PCS Power Supply
4P Female to Female Dupont Cable

The pinout for program:

 

Connection:
Relay32s              USB to TTL Module             Terminal

GND  (J1)               GND(white)

TX                           RX(black)

RX                          TX(grey)

GND                                                                      -(yellow)
Connection as below :
 

Open FLASH_DOWNLOAD_TOOLS_V3.4.4 file

Open ESPFlashDownloadTool_v3.4.4.exe

Setting as below:

Click START

Connect the yellow cable

Connect Power supply:

Then it will show downloading….

Once download is finished, it will show

At last you open serial port software to test it, it will show as below

FAQ

Q: It shows error when program
A: 

  1. Please unplug the power supply, then plug it , until the software show downloading…
  2. Please exchange TX and RX and have try it again

website link  http://www.diymalls.com/esp32-wifi-bluetooth-relay-module?search=relay
Any question please email sales@diymalls.com

 

Arduino RC522 RFID Module

What you need:
1PCS Arduino UNO R3
1PCS USB Cable
1PCS RC522 RFID Module
7P Female to Male Dupont Cable

Connection:

 

Code:

/*

* ——————————————————————————————————————–

* Example sketch/program showing how to read data from a PICC to serial.

* ——————————————————————————————————————–

* This is a MFRC522 library example; for further details and other examples see: https://github.com/miguelbalboa/rfid

*

* Example sketch/program showing how to read data from a PICC (that is: a RFID Tag or Card) using a MFRC522 based RFID

* Reader on the Arduino SPI interface.

*

* When the Arduino and the MFRC522 module are connected (see the pin layout below), load this sketch into Arduino IDE

* then verify/compile and upload it. To see the output: use Tools, Serial Monitor of the IDE (hit Ctrl+Shft+M). When

* you present a PICC (that is: a RFID Tag or Card) at reading distance of the MFRC522 Reader/PCD, the serial output

* will show the ID/UID, type and any data blocks it can read. Note: you may see “Timeout in communication” messages

* when removing the PICC from reading distance too early.

*

* If your reader supports it, this sketch/program will read all the PICCs presented (that is: multiple tag reading).

* So if you stack two or more PICCs on top of each other and present them to the reader, it will first output all

* details of the first and then the next PICC. Note that this may take some time as all data blocks are dumped, so

* keep the PICCs at reading distance until complete.

*

* @license Released into the public domain.

*

* Typical pin layout used:

* —————————————————————————————–

*             MFRC522      Arduino       Arduino   Arduino    Arduino          Arduino

*             Reader/PCD   Uno/101       Mega      Nano v3    Leonardo/Micro   Pro Micro

* Signal      Pin          Pin           Pin       Pin        Pin              Pin

* —————————————————————————————–

* RST/Reset   RST          9             5         D9         RESET/ICSP-5     RST

* SPI SS      SDA(SS)      10            53        D10        10               10

* SPI MOSI    MOSI         11 / ICSP-4   51        D11        ICSP-4           16

* SPI MISO    MISO         12 / ICSP-1   50        D12        ICSP-1           14

* SPI SCK     SCK          13 / ICSP-3   52        D13        ICSP-3           15

*/

 

#include <SPI.h>

#include <MFRC522.h>

 

#define RST_PIN         9          // Configurable, see typical pin layout above

#define SS_PIN          10         // Configurable, see typical pin layout above

 

MFRC522 mfrc522(SS_PIN, RST_PIN);  // Create MFRC522 instance

 

void setup() {

Serial.begin(9600);      // Initialize serial communications with the PC

while (!Serial);         // Do nothing if no serial port is opened (added for Arduinos based on ATMEGA32U4)

SPI.begin();             // Init SPI bus

mfrc522.PCD_Init();      // Init MFRC522

mfrc522.PCD_DumpVersionToSerial(); // Show details of PCD – MFRC522 Card Reader details

Serial.println(F(“Scan PICC to see UID, SAK, type, and data blocks…”));

}

 

void loop() {

// Look for new cards

if ( ! mfrc522.PICC_IsNewCardPresent()) {

return;

}

 

// Select one of the cards

if ( ! mfrc522.PICC_ReadCardSerial()) {

return;

}

 

// Dump debug info about the card; PICC_HaltA() is automatically called

mfrc522.PICC_DumpToSerial(&(mfrc522.uid));

}

Result:

amazon link   https://www.amazon.com/dp/B07PY38DMP
Any question please email sales@diymalls.com

Arduino MPU-6050 Accelerometer Gyro Sensor

   Arduino MPU-6050 Accelerometer Gyro Sensor

 What you need:
1PCS Arduino UNO R3
1PCS USB Cable
1PCS MPU-6050 Accelerometer Gyro Sensor
5P Female to Male Dupont Cable

Connection:

Code:
// MPU-6050 Short Example Sketch

// By Arduino User JohnChi

// August 17, 2014

// Public Domain

#include<Wire.h>

const int MPU_addr=0x68;  // I2C address of the MPU-6050

int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;

void setup(){

Wire.begin();

Wire.beginTransmission(MPU_addr);

Wire.write(0x6B);  // PWR_MGMT_1 register

Wire.write(0);     // set to zero (wakes up the MPU-6050)

Wire.endTransmission(true);

Serial.begin(9600);

}

void loop(){

Wire.beginTransmission(MPU_addr);

Wire.write(0x3B);  // starting with register 0x3B (ACCEL_XOUT_H)

Wire.endTransmission(false);

Wire.requestFrom(MPU_addr,14,true);  // request a total of 14 registers

AcX=Wire.read()<<8|Wire.read();  // 0x3B (ACCEL_XOUT_H) & 0x3C (ACCEL_XOUT_L)

AcY=Wire.read()<<8|Wire.read();  // 0x3D (ACCEL_YOUT_H) & 0x3E (ACCEL_YOUT_L)

AcZ=Wire.read()<<8|Wire.read();  // 0x3F (ACCEL_ZOUT_H) & 0x40 (ACCEL_ZOUT_L)

Tmp=Wire.read()<<8|Wire.read();  // 0x41 (TEMP_OUT_H) & 0x42 (TEMP_OUT_L)

GyX=Wire.read()<<8|Wire.read();  // 0x43 (GYRO_XOUT_H) & 0x44 (GYRO_XOUT_L)

GyY=Wire.read()<<8|Wire.read();  // 0x45 (GYRO_YOUT_H) & 0x46 (GYRO_YOUT_L)

GyZ=Wire.read()<<8|Wire.read();  // 0x47 (GYRO_ZOUT_H) & 0x48 (GYRO_ZOUT_L)

Serial.print(“AcX = “); Serial.print(AcX);

Serial.print(” | AcY = “); Serial.print(AcY);

Serial.print(” | AcZ = “); Serial.print(AcZ);

Serial.print(” | Tmp = “); Serial.print(Tmp/340.00+36.53);  //equation for temperature in degrees C from datasheet

Serial.print(” | GyX = “); Serial.print(GyX);

Serial.print(” | GyY = “); Serial.print(GyY);

Serial.print(” | GyZ = “); Serial.println(GyZ);

delay(333);

}

Result:

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

Any question please email  sales@diymalls.com

Arduino Sound Detection Sensor

What you need:
1PCS Arduino UNO R3
1PCS Sound Detection Sensor
3P Female to Male Dupont Cable

Pin Outs:

Connection:

Code:

//Henry’s Bench

//Arduino Sound Detection Sensor Module

 

int soundDetectedPin = 10; // Use Pin 10 as our Input

int soundDetectedVal = HIGH; // This is where we record our Sound Measurement

boolean bAlarm = false;

 

unsigned long lastSoundDetectTime; // Record the time that we measured a sound

 

 

int soundAlarmTime = 500; // Number of milli seconds to keep the sound alarm high

 

 

void setup ()

{

Serial.begin(9600);

pinMode (soundDetectedPin, INPUT) ; // input from the Sound Detection Module

}

void loop ()

{

soundDetectedVal = digitalRead (soundDetectedPin) ; // read the sound alarm time

 

if (soundDetectedVal == LOW) // If we hear a sound

{

 

lastSoundDetectTime = millis(); // record the time of the sound alarm

// The following is so you don’t scroll on the output screen

if (!bAlarm){

Serial.println(“LOUD, LOUD”);

bAlarm = true;

}

}

else

{

if( (millis()-lastSoundDetectTime) > soundAlarmTime  &&  bAlarm){

Serial.println(“quiet”);

bAlarm = false;

}

}

}

Result:

amazon link  https://www.amazon.com/dp/B07NQHC3PQ
website link  
http://www.diymalls.com/arduino-Sound-Detection-Sensor?search=sound

Any question please email sales@diymalls.com

 

 

How to use SH-HC-08 Bluetooth Module

You need prepare:
SH-HC-08       1pcs
Serial Module  1pcs
APP
SerialPort software

Connection
SH-HC-08 Bluetooth Module                               CP2102 (set to 5V)
RXD                                                                                     TXD
TXD                                                                                      RXD
GND                                                                                      GND
VCC                                                                                      5V

Download APP:
IOS is HM10 bluetooth serial lite, you can search it in APP Store
Android is DSD TECH Bluetooth, you can search it in Google Play

Open APP in your phone, open serial port software in your computer, then you can send and receive message between your phone and computer
For example, you enter message on your phone: hi, then you will see hi in the SerialPort software

DIYmall 2 Channel Relay Module GSM Remote Control Switch SMS Manual

Before using this device, please send a text message for authorization first. Then you can send a message command to control relay.

Authorized number configuration: This system supports up to 3 authorization numbers. Format:*code*# N Authorized number #, after setup successfully, the device will reply, SMS Content is: User(N) Number: number is set ok.
For example, if system code is 123456, and you want to set the first authorized number is 18846919911, you can send the SMS:*123456*#118846919911#
The device will reply, content is: User1 Number: 18846919911 is set ok! The new authorization number is saved in the device; and you want to set the second authorized number is 18846919900, you can send the SMS:*123456*#218846919900#
The device will reply, content is: User2 Number: 18846919900 is set ok!. The new authorization number is saved in the device.

Code configuration: Format: *6 old code number**6 new code number*. After setup successfully, the device will reply, SMS Content is: SYS Code: 6 new code numbers set ok. For example, if system code is 123456, you want to revise the new code is 666666, send the SMS:*123456**666666*
The device will reply, content is: SYS Code: 666666 Set OK. Note that only authorized number can change the code. The new code is saved in the device.

The cell phone SMS control
Relay1 On command: ON1, after successful setup, the device will reply SMS is: REALY1 set on! For example, send the SMS: ON1. Relay status will be saved

Relay1 Off command: OFF1, after successful setup, the device will reply, SMS Content is: REALY1 set off! Send the SMS: CMOF. Relay status will be saved

Relay2 On command: ON2, after successful setup, the device will reply SMS is: REALY2 set on! For example, send the SMS: ON2. Relay status will be saved

Relay2 Off command: OFF2, after successful setup, the device will reply, SMS Content is: REALY2 set off! Send the SMS: OFF2. Relay status will be saved

System status query instruction: STA. For example, sends the SMS: STA. The device will reply the state of two relay

Any question please email sales@diymalls.com

ebay link: https://www.ebay.com/itm/273103300932
aliexpress link: http://aliurl.cn/NG035S
website link: