SIM7000A/G GSM Board compatible with Arduino

Document link
https://tinyurl.com/SIM7000X

Connection with serial module:
About the USB cable, you can make one as below
Note: you need install driver for serial module and need switch it to 3.3V    

Software:
You can use SSCOM or other serial port software
Choose COM port and set BaudRate to 115200
Send AT Command

SIM7000A/G is compatible with Arduino UNO.
First, you need set the baudrate to 9600

How to change the baud rate? Connect SIM7000A/G module with serial module (as the 1st picture showed)
Send AT Command AT+IPR=9600;&W

 When it shows OK, that means the BaudRate already set from 115200 to 9600
Just in case, you can choose BaudRate 9600 and send AT to test.

Connection with 5V MCU:
TXD to D0
V_MCU to 3V3 or 5V
RXD to T0
GND to GND
POWER to 5V

Upload code, code name is SIM7000X _test.ino (Please contact me for the example code if you need, betty@unikelc.com)
Open serial monitor window, it will show:

 

***********************************************************************************************

Purchase link:

SIM7000A:

https://www.diymalls.com/DIYmall-SIM7000A-NB-IOT-Breakout-Board

SIM7000G:

https://www.diymalls.com/SIM7000G-Breakout-Board-NB-IoT-Module

 

 

 

 

DIYmall 3.5 inch Touch Screen Display ILI9486 for Arduino UNO Mega2560 ESP32

What you need:
1 X Arduino UNO
1 X 3.5 inch Touch Screen Display
1 X USB Cable
1 X Micro USB Card
1 X Card Reader

Connection:
Please pay attention about the pin name before installation

Install below libraries through Sketch-Include Library-Manage Libraries.
Adafruit_GFX
Adafruit_TFTLCD
MCUFRIEND_kbv
TouchScreen


Arduino code download link:
https://tinyurl.com/3c77p9hx
https://tinyurl.com/4nf5bk28

Open example and Upload code

For touch screen function, you need calibration display first, then upload code.

Calibration code name is Example09-TouchScreen_Calibr_kbv, once calibration, you will get result:

Then you need change value in the Example10-Touch- Touch_shield_new.ino

After upload code, you can draw pictures:

 

 

 

Sparekleiot Smart Plug for Apple Homekit

Specification:
Input: 110-250V, 50/60Hz
Output: 110-250V, 50/60Hz, 10A maximum load
Max power:2000W
Button: On/Off Button, press and hold for 5 seconds to initiate factory reset process(LED blink fast)
Wi-Fi Required: WiFi 802.11 b/g/n 2.4G (2.4G ONLY)
Compatible with:Apple Homekit
APP: Home
Voice control: Siri
Works with:iPhone/iPad

Please connect your iPhone/iPad with 2.4G WiFi network, open iPhone/iPad Bluetooth


After power it, long press the button of smart plug over 5S until you see the indicator light blink fast

Open Home APP, click icon “+” to Add or Scan Accessory, scan the QR code of the plug


It will take a few seconds to add the switch:

Once added successfully, it will show below page:

You can choose the switch location and rename the switch



At last you can add it to home

You can control it by hand in APP or by Siri

Automation:
You can add HomePod、HomePod mini、Apple TV、or iPad as the center of your home. Control Homekit-enabled accessories remotely, grant access to the people you trust, and automate accessories to do what you want, when you want.
How to set up a home hub?
https://support.apple.com/en-us/HT207057

FAQ
Q: How to reset the plug to the default factory mode?
A: Long press the button of the smart plug over 5s and the indicator light will blink fast.

Q: Does this plug have Homekit Certification?
A: Yes, it has

Q: Does it work with 5G Router?
A: This Homekit Smart Plug does not support 5G router, it only support 2.4G router. If your router is dual frequency, please set different passwords for 2.4G signal and 5G signal or turn off 5G signal. Please remember do not open the function of dual-frequency combination.

Q: It said: Unable to add Accessory Connect to a 2.4GHz WLAN network and try again. How to solve this problem?
A: Please connect your phone with 2.4GHz WiFi network.

How to Program DIYmall ESP32-C3F

What you need:
1 X ESP32-C3F
1 X Programmer
1 X USB cable
Connection:

Open espressif website:
https://www.espressif.com.cn/en/support/download/other-tools

Download Flash Download Tools:

Open Flash Download Tools and make setting as below:

Upload bin file, set address as 0 , choose COM port and baud rate

Click START, when it show SYNC, press the FLASH button of the programmer

Then it will show Download

It will take a few seconds to program, once it is done, it will show FINISH

AI-THINKER ESP32-CAM Video Streaming

What you need:
1 X ESP32-CAM
1 X FTDI Module
1 X 5P Female to Female Dupont Cable
Connection:


In your Arduino IDE, go to File > Examples > ESP32 > Camera and open the CameraWebServer example.

The following code should load.

Before uploading the code, you need to insert your network credentials in the following variables:

Make sure you select the right camera module. In this case, we’re using the AI-THINKER Model.
So, comment all the other models and uncomment this one:

Go to Tools > Board and select AI-Thinker ESP32-CAM.
Go to Tools > Port and select the COM port the ESP32 is connected to.
Then, click the upload button to upload the code.
When it always show connecting………..,
1) please make sure GPIO 0 and GND are connected
2) press the ESP32-CAM on-board RST button
After uploading the code, disconnect GPIO 0 from GND.

Open the Serial Monitor at a baud rate of 115200. Press the ESP32-CAM on-board Reset button.
The ESP32 IP address should be printed in the Serial Monitor.

The IP address I got is http://192.168.0.186, copy it and paste it to browser, then you can see below page, also you will see the print information of Arduino serial monitor window:

 

 

 

LTR390-UV Sensor with Arduino

What you need:
1 X LTR390-UV Sensor
1 X Arduino UNO
1 X USB Cable

Pinout for LTR390-UV Ultraviolet Sensor (C):

Connection for LTR390-UV Sensor with arduino UNO:

 

Download code from this link:
https://www.waveshare.com/wiki/UV_Sensor_(C)

Waveshare_UV_C is Arduino code, zip the file

Add the Waveshare_UV_C.zip file to the Arduino IDE (Sketch-Include Library-Add .ZIP Library)

 

Choose board, COM port, upload code
After the code uploaded successfully, you can find the result in monitor:

Youtube link:
https://youtu.be/IOOn2IKP_f0

Purchase link:
https://www.diymalls.com/Digital-LTR390-UV-Ultraviolet-Sensor-I2C-Bus

Espressif ESP32-C3 Works with Arduino IDE

Install ESP32-C3 in your arduino IDE
1, click File-Preference, and copy below links to “Arduino Preferences Additional Boards Manager URLs”, then click “OK”.
https://raw.githubusercontent.com/espressif/arduino-ESP32/gh-pages/package_ESP32_dev_index.json

2, Click Tools-Board-Boards Manager, and search ESP32, you need download 2.0.0 version, (any version over 2.0.0 is ok)

Testing ESP32-C3:
1, Connect ESP32-C3 board with Mac or PC

2, Choose Tools-Board-ESP32 Arduino-ESP32C3 Dev Module
3, Choose Port

4, Upload code: File-Examples-WiFi-WiFiScan

5, Open Serial Monitor window, then you will find the wifi names.

Purchase link:

1, ESP32-C3-DevKitC-02 Development Board with ESP32-C3-WROOM-02 module:
https://www.diymalls.com/ESP32-C3-DevKitC-02-Development-Board-ESP32-C3-WROOM-02-Wifi-Module

2, ESP32-C3-DevKitM-1 Development Board with ESP32-C3-MINI-1 module
https://www.diymalls.com/ESP32-C3-DevKitM-1-Development-Board-Equipped-with-ESP32-C3-MINI-1-Module

 

 

DIYmall 4×4 Matrix Key Membrane Switch Keypad

 

What you need:
1 X 4×4 Membrane Switch Keypad
1 X Arduino Uno
1 X Jumper wires
1 X USB cable

4X4 Matrix Array Keypad Schematic

The wiring of 4X4 Keyboard with Arduino UNO R3 board is like the following picture:

You need install Keypad in your arduino IDE library if you not installed it before.

Click Sketch-Include Library-Manage Libraries, search “Keypad” and install it.

Open examples-Keypad and revise the code

Code:
#include <Keypad.h>

const byte ROWS = 4; //four rows
const byte COLS = 4; // four columns
char keys[ROWS][COLS] = {
{‘1′,’2′,’3’, ‘A’},
{‘4′,’5′,’6’, ‘B’},
{‘7′,’8′,’9’, ‘C’},
{‘*’,’0′,’#’, ‘D’}
};
byte rowPins[ROWS] = {9, 8, 7, 6}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {5, 4, 3, 2}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

void setup(){
Serial.begin(9600);
}

void loop(){
char key = keypad.getKey();

if (key){
Serial.println(key);

Choose board, COM port, and upload the code.

 

Open Serial Monitor window, and press the keyboard, the relative name of the pressed button will appear.

Here is the vedio link for your reference:

 

Purchase link for 4X4 Matrix Keypad:

https://www.diymalls.com/4X4-Matrix-Array-16-Keys-Membrane-Keypad-Switch

******************************************************************************************

 

 

Nextion

Official website:
https://nextion.tech/

Software:
Nextion Editor, Nextion Editor LTS

Download link:
https://nextion.tech/nextion-editor/#section1
https://nextion.tech/nextion-editor/#_section2

Note:
— If your HMI project was developed via 0.53 or prior version Nextion Editor, we recommend you to use the LTS version for project maintenance as the latest 1.63.3 version is not fully compatible with your existing source code and GUI design.

Document link:
https://nextion.tech/editor_guide/
https://nextion.tech/instruction-set/
https://nextion.tech/datasheets/

Where to buy:

https://www.diymalls.com/index.php/search=nextion

DHT11 Temperature Sensor XH2.54 terminal 1602 I2C LCD with Arduino

What you need:
1 X DHT11 Temperature Sensor XH2.54mm terminal
1 X 1602 I2C LCD Display module
1 X Arduino UNOR3
1 X 7P Female to Male Jump Wire
1 X USB Cable

Materials for DHT11 Temperature Humidity Measurement and display

Connection:
DHT11 to UNOR3:
S to D2
+ to 3V3
– to GND

1602 I2C LCD to UNOR3:
GND to GND
VCC to 5V
SDA to A4
SCL to A5

DHT11 sensor 1602 I2C LCD wiring with Arduino

Download below two libraries on your Arduino IDE:
DHT sensor library
LiquidCrystal I2C

 

Code:
#include <LiquidCrystal_I2C.h>
#include “DHT.h”
#define DHTPIN 2
#define DHTTYPE DHT11

LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x3F, 16 column and 2 rows
DHT dht(DHTPIN, DHTTYPE);

void setup()
{
dht.begin(); // initialize the sensor
lcd.init(); // initialize the lcd
lcd.backlight(); // open the backlight
}

void loop()
{
delay(2000); // wait a few seconds between measurements

float humi = dht.readHumidity(); // read humidity
float tempC = dht.readTemperature(); // read temperature

lcd.clear();
// check if any reads failed
if (isnan(humi) || isnan(tempC)) {
lcd.setCursor(0, 0);
lcd.print(“Failed”);
} else {
lcd.setCursor(0, 0); // start to print at the first row
lcd.print(“Temp: “);
lcd.print(tempC); // print the temperature
lcd.print((char)223); // print ° character
lcd.print(“C”);

lcd.setCursor(0, 1); // start to print at the second row
lcd.print(“Humi: “);
lcd.print(humi); // print the humidity
lcd.print(“%”);
}
}

After upload the code, the measurement of the temperature and humidity results displayed in 1602 LCD like below picture:

Note: if the lcd displays not properly after powered on, pls adjust the blue potentiometer on the IIC Adapter board which is installed in the backside of the lcd module.

 

Purchase link:

https://www.diymalls.com/DHT11-Temperature-Sensor-XH2.54-3P-Terminal-with-1602-I2C-LCD-Display-Module

***********************************************************************************

***********************************************************************************