ellak-monades-aristeias / beescale Goto Github PK
View Code? Open in Web Editor NEWOpensource & Openhardware - Ηλεκτρονικό σύστημα παρακολούθησης κυψέλης μελισσών από απόσταση
License: Other
Opensource & Openhardware - Ηλεκτρονικό σύστημα παρακολούθησης κυψέλης μελισσών από απόσταση
License: Other
Το πιο σημαντικό πρόβλημα. Έχω δει πως γίνειται suspend ο microcontroller και όντως τρώει πολύ λίγο ρεύμα σε αυτή την κατάσταση. Πρέπει να
θα υπαρχει καποιο προβλημα με τον κωδικα αν αντι για την gsm shield που χρησιμοποιησατε βαλουμε ενα gsm module οπως αυτο? https://www.hellasdigital.gr/electronics/transceivers-and-communications/sim900a-v4.0-kit-wireless-extension-gsm-module-for-arduino/
Αντί για την SD κάρτα μπορεί να χρησιμοποιηθεί και μνήμη flash. Το atmega328 ήδη έχει λίγη flash αλλά μπορεί να χρησιμοποιηθεί πρόσθετη flash.
Το issue αυτό αφορά την δημιουργία side projects για πειραματισμό πάνω στη χρήση της flash.
Good afternoon,
I am graduated student of Electronic engeenering and also a beekeeper. I took „GSM beehive scale” as a theme for my final exam. Looking on Net I have found Your Arduino project and do some corrections ( I do not need temperature and humidity, only weight) to be informed. Also instead M10 GSM Arduino shield I am using A6 GSM module. I have connected it as in project: I have found RX, TX and Reset pins and connected it to Arduino. I had problem in compiling with last line of program delay(10000):
///////////////////////////////////////////////////////////
wait=1;
}
delay(1000);//delay
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
wait++;
delay(500);
}
delay(10000);
}
so I have changed to:
////////////////////////////////////////////////////////////////////////////////
wait=1;
}
delay(1000);//delay
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
wait++;
delay(500);
}
/////////////////////////////////////////////////////////////////////////////////
What is a purpose of this line> delay(10000)?
Always when GSM is connected to Arduino, It is used D0(Rx) and D1(Tx) for connection with
Arduino. Here You use D2 and D3. Is it correct?
Finally, how this program works? When I connect weight and start Serial monitor,
I got only:
wait= 1
wait= 2
wait= 3
maza in main is -345.6
and I do not receive any SMS.
is it possible to change program: to answer me when I send Arduino some string, for example:
weigh.
Here is a code I am using>
#include "HX711.h"
#include <LowPower.h>
// Include the GSM library
#include <GSM.h>
//Initialize instances of the classes you're going to use. You're going to need both the GSM and GSMSMS class.
GSM gsmAccess;
GSM_SMS sms;
// PIN Number
#define PINNUMBER ""
// Array to hold the number to send sms
char numtel[20]= "xxxxxxxxxx";
float maza;
// ************** hx711
// HX711.DOUT - pin #A4
// HX711.PD_SCK - pin #A3
HX711 scale(A4, A3); // parameter "gain" is ommited; the default value 128 is used by the library
void setuphx711() {
// Start up the library
// zero factor from SparkFun_HX711_Calibration by sarahalmutlaq
//long zero_factor = scale.read_average(); //Get a baseline reading
long zero_factor = 8510214;
scale.set_scale(2280.f); // this value is obtained by calibrating the scale with known weights; see the README of the library for details
//scale.tare(); // reset the scale to 0
scale.set_offset(zero_factor); //Zero out the scale using a previously known zero_factor for a permanent weight on the scale
}
void readhx711(){
maza= scale.get_units(10), 1;
scale.power_down(); // put the ADC in sleep mode
delay(1000);
}
//Main Code
int wait=1;
void setup(void) {
// start serial port
Serial.begin(9600);
setuphx711();
}
void loop(void) {
Serial.print("wait =");
Serial.println(wait);
if(wait>=3){
scale.power_up();
delay(500);
readhx711();
Serial.print("maza in main is ");
Serial.println(maza);
delay(500);
// ************** GSM
// connection state
boolean notConnected = true;
// Start GSM shield
// If your SIM has PIN, pass it as a parameter of begin() in quotes
while (notConnected)
{
if (gsmAccess.begin(PINNUMBER) == GSM_READY)
notConnected = false;
else
{
Serial.println("Not connected");
delay(1000);
}
}
Serial.println("GSM initialized");
delay(500);
// send the message
sms.beginSMS(numtel);
sms.print("zigizei");
sms.print(maza);
sms.print("grammaria ");
sms.endSMS();
Serial.println("\nto minima stalthike!\n");
wait=1;
}
delay(1000);//delay
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
wait++;
delay(500);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.