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 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

 

 

SIM800L GPRS GSM Module DIYmall

What you need 
SIM800L module X 1
GSM Antenna X  1
CP2102 Module X 1
Several Cables
DC Power Supply
Software SSCOM3.2

NOTE: The input voltage is  3.7-4.2V

Connection:

SIM800L      CP2102         DC Power Supply
TX                   RX
RX                   TX
GND                GND             GND
VCC                         VCC( 3.7-4.2V)


Open software SSCOM3.2, then you can send AT command:

For more AT command, please download from this link 
https://drive.google.com/open?id=1MR7HtLoeCq7svqtESLwl7Z8-Zvt40XwQ

Where to buy?
Product link http://www.diymalls.com/index.php?route=product/product&product_id=71&search=SIM800L

eBay link  https://www.ebay.com/itm/182736378127

aliexpress link  http://aliurl.cn/CUUDOG

Bulk order please contact sales@diymalls.com

DIYmall 9G Servo and Servo Tester

Today, we will learn how to test 9G servo
You need prepare:
9G servo
Servo Tester
USB to TTL serial cable

The connection as below:
9G Servo      Servo Tester  out              Servo Tester in         Serial Cable
Yellow              S                                                  S                                   White
Red                  +                                                   +                                    Red
Brown              –                                                    –                                   Black

Video link  https://youtu.be/1ECQAyoVbqU

Servo link https://www.amazon.com/dp/B012LZKTDO

9g servo link https://www.amazon.com/dp/B074SG74KV

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

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