logo elektroda
logo elektroda
X
logo elektroda

SIM800L GSM Module and Arduino Nano: Automate Yard Hydration via SMS, Solenoid Valves, and Relays

mateusiak 4734 12
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16558401
    mateusiak
    Level 12  
    Hello, I have a GSM SIM 800L module and I would like to use it to turn on the hydration in the yard. I also have an Arduino nano but I don't know how to do it. It would work like this: I send an SMS to 800L, and this one activates the solenoid valves via relays and after some time 5-15 minutes it disconnects the solenoid valves. Module photo: SIM800L GSM Module and Arduino Nano: Automate Yard Hydration via SMS, Solenoid Valves, and Relays
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • Helpful post
    #2 16559910
    czareqpl
    Level 33  
    Hello,

    I am currently working with this module.
    I will not implement the service of incoming text messages until the coming month.

    Overall, the matter is quite simple:
    - You connect to the module via UART with arduino with parameters 9600/8 / n / 1
    - You communicate with the module using AT commands (you can find documentation on the Internet)
    - The module is quite demanding in terms of power supply and how many GSM modules generate a lot of EMC / EMI / AUDIO interference around them. It requires a power supply in the range of 3.7-4.2V and an instantaneous current efficiency of 2A.

    If you needed a printed circuit board to solder this system, the STM32 microcontroller would not hang on the wires, we will get along somehow. I have several laminates on sale ...

    Below I present a partial diagram of my implementation and the source code as such ... I am programming the STM32L152RE microcontroller.
    SIM800L GSM Module and Arduino Nano: Automate Yard Hydration via SMS, Solenoid Valves, and Relays
  • ADVERTISEMENT
  • #3 16559972
    mateusiak
    Level 12  
    Ok thanks for your help, I have a logic level converter and I would like to know if it is needed here.
  • #4 16560037
    czareqpl
    Level 33  
    The module works for me without any problems with the 3V3 logic.
  • ADVERTISEMENT
  • #5 16561873
    czasnagli
    Level 17  
    Added after 3 [minutes]:
    czareqpl wrote:
    Hello,


    If you needed a printed circuit board to solder this system, the STM32 microcontroller would not hang on the wires, we will get along somehow.

    Do you have etched tiles ready for sale?
  • ADVERTISEMENT
  • #6 16561943
    mateusiak
    Level 12  
    Can you see what this tile looks like?
  • #7 16565772
    czareqpl
    Level 33  
    The tiles I use for this are fully professional.
    4 layers, gold plating, double-sided solder mask and description. The dimension is 138x83mm I guess.

    This is what an already assembled module looks like:
    SIM800L GSM Module and Arduino Nano: Automate Yard Hydration via SMS, Solenoid Valves, and Relays

    SIM800L GSM Module and Arduino Nano: Automate Yard Hydration via SMS, Solenoid Valves, and Relays

    If necessary, I can also take a photo of the laminate itself, but this is a little later.
  • #8 16565812
    mateusiak
    Level 12  
    I don't know if I will be able to do anything about it without the code.
  • #9 16565818
    czareqpl
    Level 33  
    I can share the code. Same with the diagram and assembly drawing. There is an STM32L152RE microcontroller on the board or another STM32LXXX family can be soldered.
  • #10 16568253
    czareqpl
    Level 33  
    czasnagli wrote:
    Do you have etched tiles ready for sale?


    Yes, I still have 3 pieces of what is shown in the pictures and 1-3 pieces of an older generation PCB with minor errors in the audio track (which can be shown.)
  • #11 16568783
    czasnagli
    Level 17  
    Thanks for the info, but your board is too complex for me.
  • #12 16569280
    czareqpl
    Level 33  
    Cool. You don't have to use everything on it. Basically, for STM and GSM to work, you need a small LI-ion battery, one LMZ10501SILT inverter, TP4056 charger + protections and some capacitors.

    Maybe I have an inverter somewhere on another album that I could translate.
    What you can see in the pictures is a complex prototype that also includes a gyroscope, accelerometer, compass, bluetooth, raspberry pi, GPS and a GSM module. Each of these components is optional and the microcontroller will go without them.
  • #13 16615609
    krzbor
    Level 27  
    I used this module in audio and SMS communication. It works very simply through AT commands. This means that when the SMS arrives, its content will be sent to the UART. Now you need any uP (or uP module) with UART that will read the SMS, turn on irrigation and turn it off after a certain time. I recommend to connect this module to the computer via UART and UART USB converter. You can then play with AT commands from the terminal, see what comes, how it behaves after the reset, etc. This knowledge will be very useful when creating a program on uP. Watch out for power! I put this module in the Chinese breadboard and it wouldn't work. It took a long time to realize that the contacts at close range had 2ohm of resistance!

Topic summary

The discussion revolves around using the SIM800L GSM module with an Arduino Nano to automate yard hydration via SMS commands. Users share insights on connecting the module to the Arduino using UART with specific parameters (9600 baud rate, 8 data bits, no parity, 1 stop bit) and utilizing AT commands for communication. Power supply requirements are emphasized, noting the need for 3.7-4.2V and a current capacity of 2A. The conversation includes inquiries about logic level converters, PCB designs, and the sharing of source code for controlling solenoid valves through relays. Users also discuss the importance of testing the module with a UART USB converter to familiarize themselves with AT commands and troubleshoot power issues.
Summary generated by the language model.
ADVERTISEMENT