Difference between revisions of "Serial Data Logger SKU: PZSSD003"
(→Example and Test Code) |
(→Example and Test Code) |
||
Line 54: | Line 54: | ||
Note: The DuPont wire female single-head wiring we distribute cannot be directly connected to the UNO R3 control board. When wiring, it is necessary to stack the sensor expansion board on the UNO R3 control board, or connect the male-to-male Dupont wire (bread wire) on the Dupont wire female single-head wiring. | Note: The DuPont wire female single-head wiring we distribute cannot be directly connected to the UNO R3 control board. When wiring, it is necessary to stack the sensor expansion board on the UNO R3 control board, or connect the male-to-male Dupont wire (bread wire) on the Dupont wire female single-head wiring. | ||
− | In the experiment, we connected the interface of the sensor to the UNO R3 control board | + | In the experiment, we connected the interface of the sensor to the UNO R3 control board. |
+ | |||
'''1.1 Download and Run the Test Examples''' | '''1.1 Download and Run the Test Examples''' |
Revision as of 12:02, 14 January 2023
Introduction
Compared to the old MicroSD Card Module, this Pzsmocn serial data logger V2 can store data more conveniently, and supports direct data printing through serial port without additional codes.
The Pzsmocn serial data logger V2 onboard high-performance AC6925B chip, provides 0.1G memory IC to store, no more TF card required. It comes with a USB function, which means you can directly connect it to a PC computer to read the stored files without using a card reader. Meanwhile, with the onboard LED indicator, data writing status can be viewed visually. and through the save button, it is easier to analyze the file storage data.
AC6925B Chip Specification Download
Media: AC6925B Datasheet V1.0.pdf
Application
- Offline Data Collection
- Capture Product Debug Logs
- Robots and Drones Debug
Specifications
Serial Data Logger V2 Specifications
- Model: PZSSD003
- Main Chip: AC6925B
- Supply Voltage: 3.3V to 5V
- Operating Current: 23mA
- USB Protocol: USB2.0
- Operating Temperature Range: -30 Degree Celsius to +85 Degree Celsius
- Operating Humidity Range: 5%RH to 85%RH
- Storage: 0.1G
- Dimension: 26.8mm * 34.7 mm
- Mounting Hole Size: 3.0mm
JST 4-Pin Cable Specifications
- Cable Specifications: 22AWG
- Material: Silicone
- Withstand Voltage: Less Than 50V
- Withstand Current: Less Than 1000MA
- Length: 21cm
- Line Sequence: Red-VCC, Black-GND, Green-TX, Blue-RX.
First Time Using
- Power on the module for more than 2S (non-USB host), so that the module will automatically generate the CONFIG.TXT file, and the SD light will flash once.
- Check whether the CONFIG.TXT file is generated normally. You can modify the communication baud rate and file storage name of the module by modifying CONFIG.TXT.
- Baud: Serial communication baud rate selection (00 corresponds to 2400 baud rate, 01 corresponds to 4800 baud rate), the module baud rate matches the main control serial port printing baud rate to store data normally.
- FIleNum: The file serial number of the next new file (FileNum=0099, the next generated file name is FILE0099.txt), if the file already exists, it will skip this file and continue to search.
Notice
- Do not send data to the serial port of the module before the CONFIG.TXT file is generated.
- Do not connect USB and serial port at the same time.
- Connect to the computer via USB, it is recommended to eject the U disk and then pull out the module.
Example and Test Code
1. Arduino Connection Method
Note: The DuPont wire female single-head wiring we distribute cannot be directly connected to the UNO R3 control board. When wiring, it is necessary to stack the sensor expansion board on the UNO R3 control board, or connect the male-to-male Dupont wire (bread wire) on the Dupont wire female single-head wiring.
In the experiment, we connected the interface of the sensor to the UNO R3 control board.
1.1 Download and Run the Test Examples
Media: PZSSD003_Arduino_Code.rar
1.2 Arduino test code
#define SPIN 6 //Connect the S pin of the module, and the low level triggers to save the file uint16_t i = 0; void setup(void){ Serial.begin(9600); delay(2000); //To prevent data loss, delay for a period of time and wait for the module to start pinMode(SPIN, OUTPUT); digitalWrite(SPIN, HIGH);} void loop(void){ Serial.println(String(i)); i++; if((i % 10) == 0){ digitalWrite(SPIN, LOW); delay(500); digitalWrite(SPIN, HIGH); } delay(300); }