Advertisement
pleasedontcode

GPSSTARTER rev_02

Nov 11th, 2023
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /********* Pleasedontcode.com **********
  2.  
  3.     Pleasedontcode thanks you for automatic code generation! Enjoy your code!
  4.  
  5.     - Terms and Conditions:
  6.     You have a non-exclusive, revocable, worldwide, royalty-free license
  7.     for personal and commercial use. Attribution is optional; modifications
  8.     are allowed, but you're responsible for code maintenance. We're not
  9.     liable for any loss or damage. For full terms,
  10.     please visit pleasedontcode.com/termsandconditions.
  11.  
  12.     - Project: GPSSTARTER
  13.     - Source Code compiled for: Arduino Uno
  14.     - Source Code created on: 2023-11-12 04:05:33
  15.     - Source Code generated by: Mahendra
  16.  
  17. ********* Pleasedontcode.com **********/
  18. /****** DEFINITION OF LIBRARIES *****/
  19. #include <Arduino.h>
  20. #include <SIM800L-SOLDERED.h>
  21.  
  22. /****** SYSTEM REQUIREMENT 1 *****/
  23. /* When power on Read after 3 second VINPUT VALUE */
  24. /* if  READ VVALUE=2.5v+-10%  Led on and print PUMP */
  25. /* ON  Delay 3second  Read AVALUE=2V+-10%  IF READ */
  26. /* OVER RANGE  LED OFF AND PRINT PUMP OFF      PRINT */
  27. /* IN DISPLAY AND MASSEGE IN */
  28. /****** SYSTEM REQUIREMENT 2 *****/
  29. /* Read massage work and replay ON MOBILE NO  Read */
  30. /* massage =1  Send AINPUT ,VINPUT,PUMP ON/PUMP OFF */
  31. /* READ MASSAGE =2  OUTPUT LED ON  REPLAY PUMP ON */
  32. /* READ MASSAGE =3  OUTPUT LED OFF REPLAY PUMP OFF */
  33.  
  34. /****** FUNCTION PROTOTYPES *****/
  35. void setup(void);
  36. void loop(void);
  37.  
  38. /***** DEFINITION OF ANALOG INPUT PINS *****/
  39. const uint8_t VINPUT_PIN_A0 = A0;
  40. const uint8_t AINPUT_PIN_A1 = A1;
  41.  
  42. /***** DEFINITION OF DIGITAL OUTPUT PINS *****/
  43. const uint8_t Output_LED_PIN_D2 = 2;
  44.  
  45. /***** DEFINITION OF Hardware Serial *****/
  46. SIM800L sim800(8, 9);
  47.  
  48. void setup(void)
  49. {
  50.   // put your setup code here, to run once:
  51.  
  52.   pinMode(VINPUT_PIN_A0, INPUT);
  53.   pinMode(AINPUT_PIN_A1, INPUT);
  54.  
  55.   pinMode(Output_LED_PIN_D2, OUTPUT);
  56.  
  57.   sim800.begin();
  58. }
  59.  
  60. void loop(void)
  61. {
  62.   // put your main code here, to run repeatedly:
  63. }
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement