Coder Social home page Coder Social logo

ellak-monades-aristeias / beescale Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 11.0 14.62 MB

Opensource & Openhardware - Ηλεκτρονικό σύστημα παρακολούθησης κυψέλης μελισσών από απόσταση

License: Other

Arduino 100.00%

beescale's People

Contributors

stathisliou avatar tgkarounos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beescale's Issues

Μείωση κατανάλωσης ρεύματος

Το πιο σημαντικό πρόβλημα. Έχω δει πως γίνειται suspend ο microcontroller και όντως τρώει πολύ λίγο ρεύμα σε αυτή την κατάσταση. Πρέπει να

  • Σβήνουμε το modem της SMS κάρτας.
  • Να βρεθεί μία λύση με τους αιρθητήρες. Λογικά καταναλώνουν είτε δουλεύει ο MC είτε όχι (αφού είναι συνδεδεμένοι με ρεύμα και γείωση).

Χρήση μνήμης flash για αποθήκευση μετρήσεων

Αντί για την SD κάρτα μπορεί να χρησιμοποιηθεί και μνήμη flash. Το atmega328 ήδη έχει λίγη flash αλλά μπορεί να χρησιμοποιηθεί πρόσθετη flash.

Το issue αυτό αφορά την δημιουργία side projects για πειραματισμό πάνω στη χρήση της flash.

Problem winh code. Please help_

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);

}
/////////////////////////////////////////////////////////////////////////////////

  1. What is a purpose of this line> delay(10000)?

  2. 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?

  3. 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.

  4. 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);

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.