LC-EM-1281
Contents
Product Name
USB interface 16 channel 12 bit AD sampling data acquisition STM32 UART communication ADC module
Regarding LC-EM-1281
The LC STM32 16 channel ADC sampling module uses the internal 16 channel ADC resources of the STM32F103R8T6 microcontroller from ST company as the sampling core. The obtained sampling data is transferred to memory through the internal DMA of STM32, reducing the burden on the CPU and enhancing the stability and accuracy of AD sampling. At the same time, the onboard USB to serial chip CH340T can transfer data to the upper computer, and users can use Type_C data cable to achieve code burning
LC-EM-1281 View
LC-EM-1281 Front View
LC-EM-1281 reverse view
Explanation and Introduction
Board size: 33 * 65mm/25g
Hardware Introduction
1. ADC acquisition channel 8- channel 15
2. BOOT0 port: Connect BOOT0 to 3V3 for burning mode; Connect BOOT0 and GND to run mode
3. CH340T chip: USB to serial port
4. Type-C interface
5. Reset key
6. Linear regulator AM11117: Used for converting 5V voltage to 3.3V voltage
7. ADC acquisition channel 0- channel 7
8. UART serial communication interface
9. SWD serial debugging interface
10. MCU:STM32F103R8T6
Functional Features
- Using STM32F103R8T6 as the main control chip
- Onboard CH340T chip, AD sampling results can be viewed on PC through Type-C data cable
- Reserve UART serial communication interface and SWD serial debugging interface
- What is the size of a 16 channel 12 bit AD acquisition channel (resolution 4096)
Instructions for use
1. Accessories need to be prepared
1. SSCOM32 software, used to view AD sampling results on PC
2. FlyMcu software, used to update firmware
3. DuPont line, used for sampling data
2. Interface Description
- IN0-IN15: 16 channel AD sampling voltage input
- GND: Power supply negative terminal/sampling voltage common ground interface
- TX, RX: UART communication interface
- TCK, TMS: SWD debugging interface
- 3V3/5V: Reserved 3.3V/5V power input port
3. Using on PC:
Install the driver for USB to serial chip CH340, plug the module into the computer, connect IN0-IN15 to the positive pole of the sampling voltage, and GND to the negative pole of the sampling voltage (i.e. common ground processing)
Open the serial debugging assistant, select the correct COM port and baud rate (115200), and you can view the AD sampling results
The sampling results are refreshed every 500ms, and customers can modify this time based on the source code
Here is a sample of the module's built-in 3.3V voltage. The steps are as follows: prepare a DuPont wire, connect one end to the module's built-in 3.3V pin, and sequentially contact the other end with the IN0-IN5 pins. The data sent through the serial port shows that the sampling result has been changed. The wiring diagram and sampling result diagram are as follows:
From the test results, although it is not a specialized AD sampling chip and only uses the internal AD resources of STM32, the accuracy is still good
4. Connect MCU using
If you want to directly use an external MCU to obtain sampling data, you can connect the 3.3V, RX, TX, and GND of the MCU to the 3.3V, TX, RX, and GND of the module respectively. Of course, it is also possible to use 5V to power the module. For the protocol of serial data transmission, please refer to the source code
5. Regarding Updating Firmware
If the customer wants to modify the source code themselves and rewrite the program. The method is as follows: Insert the module into the USB port of the computer, and plug the jumper cap on the module into the 3.3V end (note to plug it back to GND after programming is completed).
Open the programming software FlyMcu, open the hex file, set the port number, baud rate and other related parameters, click "Start Programming", and then press the reset button to
Attention:
1. The sampling voltage input terminals IN0-IN9 can be fully connected or only partially connected. When there is no sampling voltage input in a certain channel, the output result of that channel is a random value. Unused ports can also be modified to be used as regular I/O ports
2. The voltage used should not exceed 3.3V, otherwise there is a possibility of damaging the chip
Download LC-EM-1281 User Manual
For more information on the use of LC-EM-1281, please refer toBaidu Cloud Drive Extraction code: iz4j