Micropython TPYBoard v102 SMS notification device temperature and humidity (based SIM900A module)

Foreword

2 Long time ago saw the chase, if you are feeling is directed at chasing the dragon chasing the dragon 2 1 point of view, then, advise you not to read, because chasing the dragon chasing the dragon with 2 1 fundamentally no contact, I feel like bomb disposal experts is to look like, it is estimated chasing the dragon 2 the name is just Cengceng heat to chase the dragon 1. But there are some plot has aroused my interest is Louis Koo began to open the phone to detonate a bomb that period. Thus triggering some of my thoughts, I do happen to have a SIM900A module, as used to play ah. I'll do a SMS notifier right temperature and humidity. SMS is specified command to SIM900A spring module, then TPYBoard v102 information collecting temperature and humidity and then fed back via SMS.

Purpose

1. simple I / O expansion interface method of learning in a PC system.

2. Further study design methodology developed by the data output of the program.

3. Learning control SIM900A TPYBoard transceiver module SMS.

Required components

A development board TPYBoard v102

Data line 1 of

DuPont line number

A temperature and humidity module DHT11

SIM900A module 1

What is SIM900A?

1, a new, cost-effective SIM900A GSM GPRS development board, board of SIM900A module for the new version of the original 64M with MMS function, not the old version 32M.
2, SIM900A SIMCOM module onboard the company's industrial-grade dual-band GSM / GPRS module: SIM900A, working band dual-band: 900 / 1800Mhz, can lower power consumption for voice, SMS (SMS, MMS), data transmission and fax messages.
3, SIM900A and LVTTL module supports RS232 serial port, and with hardware flow control, support wide operating range of 5V ~ 24V, so that this module can easily be connected to your product, thereby providing a product to your voice, SMS and GPRS data transmission functions.
4, this module power requirements: 5V power supply, computer early debugging USB-powered computer to meet the requirements. Because we added a large capacitance 1000UF of. Recommended time data transmission over large electricity 1A DC, TTL level serial port compatible adaptive 3.3V and 5V microcontroller. It can be directly connected to the microcontroller. Standby around 80MA, you may be disposed about the sleep state 10MA low power consumption. Computer debugging USB - 232 and USB - TTL can, according to their accessories may be. Support SMS, data, multimedia, Internet and so on. Reset pin lead, may be implemented on-site unattended remote reset with function DTMF remote control function.
5, the biggest advantage is the retention module 232, in learning or development can monitor the implementation of the 51 low-end microcontroller module and instruction to more quickly identify the cause, saving development time and learning.

Instructions for use

1.SIM900A module requires a separate external power supply voltage of 5V, the current 1A. User manual provided, said initial commissioning short period of time can also be USB-powered computer. Starting with a TTL module (CH340) debugging, sending AT command module no return, TTL module is available, do not know what the reason, the manual says is best to use USB to TTL module CP2012 chip. Able to do so when debugging is best to use an RS232 interface. I use a board to write a serial port of the forwarding of the program was to get rid of debugging problems.

2. Give before the module is powered SIM900A, please correct SIM card into the slot, connect the GSM antenna. After power can be substantially determined by observing the operation state of the module and the operating state D5 and D6. Download details see in [12, debugger tutorial information on must-see / Global Hawk sim900 V3.8.1 user manual .pdf].

3.SIM900A module supports Mobile, China Unicom 2G networks do not support Telecom.

4. 5VR module and the serial TTL compatible 5VT 3.3V and 5V, and if the TTL level voltage of 3.3V your microcontroller, the microcontroller can be connected to TXD 5VR on the module, RXD connections 5VT, microcontroller the module is connected to GND GND, VCC_MCU on the module connected to a DC 3.3V.
Similarly if 5V level, VCC_MCU received on 5V.

Described above can be found in the user manual, the issue we read in the manual is basically encountered can be solved.


Wiring

TPYBoard v102 --> SIM900A
---------------------------------
Y1(UART6-TX) --> 5VR
Y2(UART6-RX) --> 5VT
3V3 --> Vcc_mcu
GND --> GND


TPYBoard v102 --> DHT11
---------------------------------
VIN --> VCC(+)
Y12 --> DATA(out)
GND --> GND(-)

Debugging

1, the program will start running some initial configuration, such as access to the signal quality, operators, etc.;
2, when the output PuTTY waiting for the arrival of a new message, on-board LED2 lights up, indicating the initialization is complete;


3, the mobile phone number to send text messages to the SIM card installed on the module, content tpyboard;


4, after receiving the new SMS LED3 is lit, reads the content is determined whether there tpyboard;
. 5, stored, then start collecting temperature and humidity information DHT11 module, edit the message sent;


6, then LED4 lights up, the phone will receive a text message with the temperature and humidity information.

 

Source & Download

github Address: https:. //github.com/TPYBoard/TPYBoard-v102/tree/master/42 temperature and humidity messaging prompter (SIM900 module)

Related information SIM900A modules: http: //old.tpyboard.com/download/data/202.html

 

Guess you like

Origin www.cnblogs.com/xiaowuyi/p/11307132.html
Recommended