The first thing you need is a schematic of your board, though they seem hard to find.
Also you want to download the sim 800l datasheet.
Some Arduino Sim shields use a hardwate port to power the board off, but thats not on your basic board, so you can either build in such a circuit or use the software control to power it off; see page 24
If you were using just the actual module, it can be bone but as it comes already on the board there is no connection to use a pin to control the on and off. Check out the AT commands.
The battery life time depends, to a large extent on how long your sensors, display and GSM module are active.
You'd get a basic idea of the total current consumption by putting an ammeter in series with your power supply with all devices active.
For minimal power consumption, you'd have the arduino and peripherals shut down most of the time, waking up only occasionally to collect and send data. The backlight of the LCD would be switched on on demand.
The Uno is not a particularly good choice for minimal power consumption applications because of its regulator and USB controller.
With a friend I have 10 beehives (amateur - hobby) and I want to make one sms scale for "Measuring the weight of a beehive".
I own Arduino Uno, DTH21 (temperature and humidity sensor), and through eBay ordered a Load cell 150kg (max) with HX711, DS3231 and SIM800L. (all components except sim800 I burned previously with bad power supply from ebay)
I ordered ATMEGA328P (pair... just in case , if something blows again) chip so it can eventually reduce the size and battery consumption.
I'm interested in whether you have a project documentation and/or code (if you would be so kind and shared with me)?
For now I just did a piece of code that measures the temp / hum.
Next is calibration and zeroing of weight, then sending data over sms (that is 99% finished, but think about IOT services and GPRS) and at the end "wake up alarm".
My entire code is in segments , while I do not for all components, then it 'll consolidate.
How did you power the board and how long does the battery? I plan to use two 18650.
I will for sure work with microchip. Now I use the Arduino Uno as a programmer and solderless breadboard for the playground.
I have and the LCD1602 but I think that I will not use it.
Earlier in this forum I found a post for power sim800l, but it requires additional LM2596 that over Arduino pin turns on and off, simple and good solution. I think it would be great for you
I was just being tested to see if it works, but now I have a problem with scale, does not show the exact weight. I think the problem is in the HX711. I ordered a new and already have one hx711 burned (and ATMEGA328P and dht21 all with cheap Breadboard power from ebay).
I need at least four measurements during the day (it could be three), for example, 8-14-20 or 8-12-16-20. So I got the sms in 20 hours with all this data. Two alarms for me are not enough, although I do not know how to bring out with this DS3231 (or other).
At the end of all this I have put together in a single unit and probably a lot of code to customize.
I have chosen the wrong approach to work each component separately, in the end will be a problem. But I found a lot of code here on the forums, so I wanted to use it.
First i need to make that SIM800L module work on ATMEGA328, on uno works on microchip not...
I do my coding that way.. each component own scetch and then when each one works.. i combine them one by one into complete code, when i add one i test if ok i add another one, again test.. etc... so i get complete code.. and still have code separate for testing.
Ill think about this.. with lm2596...
you can try to wake it every full hour and then if hour match 8 -12 -16- 20 you mesure if not you put it back to sleep .. ill do that way
I measured the voltage, when for example: pinMode (6, OUTPUT) and digitalWrite (6, LOW); receive a voltage of 4.01V, and the end of the loop when the digitalWrite (6, HIGH); voltage is 0.00V.
For LM2596 ON / OFF voltages are 0.5V and 2.5V, I guess less than 0.5V and higher than 2.5V.
And for SIM800l my work with ordinary script, RX and TX are D7 and D8 (for that I put the ON / OFF pin to D6) and works great.
SMS_Send.ino:
#include <SoftwareSerial.h>
//SIM800 TX is connected to Arduino D8 and RX is connected to Arduino D7
#define SIM800_TX_PIN 8
#define SIM800_RX_PIN 7
//Create software serial object to communicate with SIM800
SoftwareSerial serialSIM800(SIM800_TX_PIN,SIM800_RX_PIN);
void setup() {
pinMode(6, OUTPUT); //SIM pin power ON/OFF.
digitalWrite(6, LOW); // turn the LM2596 on (LOW is the voltage level)
delay(1000); // wait for a second
//Begin serial comunication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
while(!Serial);
//Being serial communication witj Arduino and SIM800
serialSIM800.begin(9600);
delay(1000);
Serial.println("Setup Complete!");
Serial.println("Sending SMS...");
//Set SMS format to ASCII
serialSIM800.write("AT+CMGF=1\r\n");
delay(1000);
//Send new SMS command and message number
serialSIM800.write("AT+CMGS=\"+1234567890\"\r\n"); //my smartphone no.
delay(1000);
//Send SMS content
serialSIM800.write("TEST");
delay(1000);
//Send Ctrl+Z / ESC to denote SMS message is complete
serialSIM800.write((char)26);
delay(1000);
Serial.println("SMS Sent!");
delay(1000);
digitalWrite(6, HIGH); // turn the LM2596 off (HIGH is the voltage level)
}
void loop() {
}
For alarm I have not even tried. First I have to read sheet detail.
Today I worked around hx711. Tried to get a valid reading, but unsuccessfully, waitinng for the new one.
P.S.: Whether there is a chance to look at your code, working part (here or on PM or skype). I am interested in how did you organize your code.
Using LM2596 DC-DC converter - on this converter i have pin 5 unpined and connected to arduino, so i can turn on/off and also connected all other components on it (lcd, dht, hx711) so i reduce power consumption to minumum.
but i throw away all china 18650 now i am considering about original batteries (more expensive) or car battery and solar power (which is always good in beehouse).
Don't buy 18650 with capacity over 2.5Ah.. they are fake.
smfoto:
Using LM2596 DC-DC converter - on this converter i have pin 5 unpined and connected to arduino, so i can turn on/off and also connected all other components on it (lcd, dht, hx711) so i reduce power consumption to minumum.
but i throw away all china 18650 now i am considering about original batteries (more expensive) or car battery and solar power (which is always good in beehouse).
Don't buy 18650 with capacity over 2.5Ah.. they are fake.
As far as I can see LM2596 have min input 4.5V it'nt too low ? This bateries are 3,7V.
I'm just wondering if I could connect them directly to SIM800 without converter.