elleny

[Training Camp_Advanced Class] Based on 51 single machine and EMW3080 IoT socket

 
Overview
**Project Introduction:** A WIFI IoT gateway based on EMW3080BP collects on-site data through RS232 and finally transmits it to the Alibaba Cloud IoT cloud platform through WIFI. The cost of this solution is low. The main core components it relies on are: STC15W4K56S4 and EMW3080 (Alibaba ilop Feiyan firmware). Directly connected to the Alibaba ilop Feiyan cloud platform through AT commands. This program is developed based on the Zero Yao Internet of Things full-stack tutorial. I would like to thank you for taking me from the circuit in the end. Design to PCB, mount it yourself, and share the debugging process with all the experts and enthusiasts, let us learn together on the Lichuang EDA platform. **1. Introduction to core components**: (1) Introduction to EMW3080B EMW3080 is an embedded Wi-Fi module based on MX1290V2 SOC with a single 3.3V power supply, integrated Wi-Fi and Cortex-M4F MCU, and supports a maximum frequency of 62.5M With 256K RAM, powerful floating-point operations, rich memory and peripheral interface resources, it can meet most application needs and multi-cloud requirements. (2) What are the characteristics of the stc15w4k56s4 microcontroller, how many pins does it have, and how big are the program memory and data memory? Let’s take a look: Number of pins: This mainly depends on the packaging form. The pins are 44 pins respectively. (LQFP44 package), 40 pins (DIP40), 48 pins (LQFP48), 64 pins (LQFP64S and LQFP64L packages); Data memory size: 4KB (4096); Program memory size: 56KB; Built-in EEPROM size: 3KB; times Features of the microcontroller: 1. Enhanced 8051 CPU, 1T, single clock/machine cycle, 8-12 times faster than ordinary 8051 2. Working voltage: 2.5V - 5.5V 3. 56K bytes on-chip Flash program memory, erasable More than 100,000 times 4. On-chip large-capacity 4096-byte SRAM, including conventional 256-byte RAM and internal extended 3840-byte XRAM 5. Large-capacity on-chip EEPROM, more than 100,000 erase times 6. ISP /IAP, programmable in the system/programmable in the application, no programmer/emulator required 7. A total of 8 channels of 10-bit high-speed ADC, the speed can reach 300,000 times/second, 8-channel PWM can also be used as 8-channel D/A � 8. 6-channel 15-bit dedicated high-precision PWM (with dead zone control) + 2-channel CCP (using its high-speed pulse output function to achieve 11~16-bit PWM) ---- can be used to implement 8-channel D/ A, or 2 16-bit timers, or 2 external interrupts (support rising edge/falling edge interrupts) 9. 6-channel enhanced PWM 10. Internal high-reliability reset, 16-level reset threshold voltage optional during ISP programming, can Completely eliminating external reset circuit 11. Operating frequency range: 5MHz ~ 30MHz, equivalent to 60MHz ~ 360MHz of ordinary 8051 12. Internal high-precision R/C clock (±0.3%), ±1% temperature drift (-40℃~+ 85℃), the temperature drift is ±0.6% at normal temperature (-20℃~+65℃), the internal clock can be set from 5MHz~30MHz during ISP programming (5.5296MHz / 6MHz /11.0592MHz / 12MHz /18.432MHz / 20MHz / 22.1184MHz / 24MHz / 27MHz / 30MHz) 13. A set of high-speed synchronous serial communication port SPI. **2. Software preparation** Lichuang EDA, Keil5, Geshe FiberHome **3. Electrical schematic design considerations** (specific I won’t talk about the schematic diagram, there is already a detailed schematic diagram in the project) ![QQ picture 20200817104241.png] * Unordered list In the picture above, we should pay attention to why the input carbon of the reverser is pulled high, to ensure When the microcontroller is reset, the relay is guaranteed to be safe and does not operate. On the other hand, attention should also be paid to the gate voltage of the relay driving component. * ![QQ picture 20200817152559.png] * In order to prevent data backflow in the serial port line above, it is best to add a Schottky diode. (SS14) ![QQ picture 20200817113409.png] * In the unordered list, please note that 1 serial port is used to directly connect to the EMW3080 in the above picture! [QQ picture 20200817113531.png] * In the unordered list, please note that the relay normally open contact in the above picture Don't use it wrong, 2 and 5 are normally open. Other things to note on PCB: ![QQ picture 20200817110456.png] ![QQ picture 20200817110506.png] ![QQ picture 20200817110739.png] * Special attention should be paid to the area above the unordered list. Do not lay copper, if necessary. The electrical area also needs to be grooved. Pay attention to the safe distance between strong electricity and strong electricity, and between strong electricity and weak electricity (try to 3mm, consider trenching if it is less than 2mm, but the PCB strength issue must be considered); the trench width is generally 1mm, you can right-click after laying 1mm lines on the top layer Convert to slot. * After the power enters the PCB, it must first pass through the filter capacitor and then supply power to the device after filtering. In terms of physical location, the power line must first pass through the capacitor and then to the device; if the device is connected first and then the capacitor is connected, the capacitor will not play a big role. ![QQ picture 20200817110828.png] * The part where the EMW3080 antenna is located in the picture on the unordered list needs to be slotted. - Unordered list **4. Query module status** Open Gexi FiberHome, serial port COM6, baud rate 115200! [20190117222227808.png] Query the firmware version number and reply as follows, which means the firmware upgrade is successful! [2019-01-06 21:00:36.104 T]AT+FWVER? [2019-01-06 21:00:36.182 R]+FWVER:ilop\_AT\_V2.2.1
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-15 16:23:07
  • Prepare to spoof PSP
  • Low-level questions need answers from experienced people
  • How to add hard interrupt to DSP/BIO in DM6437
  • Does anyone know the MSP water flow rotation detection algorithm?
  • Register settings for differential signals of AD input
  • Analysis of the Basic Circuit of Charge Pump Electronic Ballast

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号