Solar power charge

Questions about the Waspmote v15 and its modules
libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Solar power charge

Post by libelium-dev » Fri Sep 13, 2019 12:53 pm

Hi,

We are sorry for the inconvenience. We are going to inform the developers of the App to try to improve it.

You can upload the firmware using arvdude software. You can use the following command

Code: Select all

avrdude -Cavrdude.conf -F -patmega1281 -cstk500v1 -P$PORT -b115200 -D -Uflash:w:$HEX_FILE:i
Replace $PORT with the USB port of the device and $HEX_FILE with the name of the file to upload. You can download avrdude and the avrdude.conf file in the following link
http://www.libelium.com/forum/libelium_ ... vrdude.zip

For example:

Code: Select all

avrdude -Cavrdude.conf -F -patmega1281 -cstk500v1 -P/dev/ttyUSB0 -b115200 -D -Uflash:w:SKETCH_.hex:i
We use linux to upload the file. Could you please use a linux computer?

Regards

jorgicus
Posts: 17
Joined: Mon Sep 02, 2019 9:04 am
Company: FULCRUM

Re: Solar power charge

Post by jorgicus » Tue Sep 17, 2019 11:31 am

I have never used Linux, is it strictly necessary?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Solar power charge

Post by libelium-dev » Tue Sep 17, 2019 3:01 pm

Hi,

We have tested and the SmartDeviceApp should work without internet connection in spite of the warning message. Do you use the SmartDeviceApp to upload codes with the same computer right?

Please open the SmartDeviceApp clicking with right button an executing it as admin. If still not working try to download de SmartDeviceApp again and test in another computer.

Regards

jorgicus
Posts: 17
Joined: Mon Sep 02, 2019 9:04 am
Company: FULCRUM

Re: Solar power charge

Post by jorgicus » Thu Sep 26, 2019 8:53 am

I have brought the node and sensors to my laboratory.
First I loaded the firmware you sent and then I put the node connected to the power with the sensors plugged and inmersed in water.
Battery charges up to 95%, not to 100%. I will check todays discharge rate.

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Solar power charge

Post by libelium-dev » Fri Sep 27, 2019 9:05 am

Hi,

It is normal to get values between 90-100% when the battery is fully charged since it depends on the internal impedance of the components.

Regards

jorgicus
Posts: 17
Joined: Mon Sep 02, 2019 9:04 am
Company: FULCRUM

Re: Solar power charge

Post by jorgicus » Tue Oct 01, 2019 3:36 pm

[img]Now with new firmware discharge is 5% in 7 days without solar panel. Now I am going to prove solar panel battery charges.

Without and without solar panel pH and ORP levels are very different than levels with 220V/5V conexion. What are happening? Calibration is a process that must to be done with USB connection to the computer and seems that levels are very different in case os USB conection or solar conection.

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Solar power charge

Post by libelium-dev » Wed Oct 02, 2019 10:22 am

Hi,

The ground of the board isn't isolated and the voltage can increase a few millivolts when USB or panel solar is connected to the P&S. We recommend calibrating the sensors in the same conditions than will work later. For example, if the USB won't be connected to the P&S, we recommend sending the calibration values through the radio module

Regards

jorgicus
Posts: 17
Joined: Mon Sep 02, 2019 9:04 am
Company: FULCRUM

Re: Solar power charge

Post by jorgicus » Thu Oct 03, 2019 5:17 pm

What is the way of sending calibration values from PCS to waspmote with radio?

Thanks in advance

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Solar power charge

Post by libelium-dev » Mon Oct 07, 2019 9:08 am

Hi,

You can use the following code to send raw data of pH, ORP and temperature through Sigfox. Let us know if you need to send data from other sensors to calibrate them and we will include them in the code.

Code: Select all

#include <WaspSensorSW.h>
#include <WaspSigfox.h>
#include <WaspFrame.h>


//////////////////////////////////////////////
uint8_t socket = SOCKET0;
//////////////////////////////////////////////

uint8_t error;

float pHVol;
float temp;
float pHValue;

// Calibration values
#define cal_point_10  1.985
#define cal_point_7   2.070
#define cal_point_4   2.227

// Temperature at which calibration was carried out
#define cal_temp 23.7

pHClass pHSensor;
pt1000Class temperatureSensor;

float ORPValue;

// Offset obtained from sensor calibration
#define calibration_offset 0.0

ORPClass ORPSensor;


void setup()
{
  USB.ON();
  USB.println(F("pH example for Smart Water..."));

  // Store the calibration values
  pHSensor.setCalibrationPoints(cal_point_10, cal_point_7, cal_point_4, cal_temp);

  ///////////////////////////////////////////
  // 1. Turn ON the Smart Water sensor board
  ///////////////////////////////////////////
  Water.ON();

  //////////////////////////////////////////////
  // 1. switch on
  //////////////////////////////////////////////
  error = Sigfox.ON(socket);

  // Check sending status
  if ( error == 0 )
  {
    USB.println(F("Switch ON OK"));
  }
  else
  {
    USB.println(F("Switch ON ERROR"));
  }
}


void loop()
{
  ///////////////////////////////////////////
  // 2. read the sensors
  ///////////////////////////////////////////

  // Read the ph sensor (voltage value)
  pHVol = pHSensor.readpH();
  // Read the temperature sensor
  temp = temperatureSensor.readTemperature();
  // Convert the value read with the information obtained in calibration
  pHValue = pHSensor.pHConversion(pHVol, temp);

  // Reading of the ORP sensor
  ORPValue = ORPSensor.readORP();

  ///////////////////////////////////////////
  // 3. Print the output values
  ///////////////////////////////////////////

  USB.print(F("pH value: "));
  USB.print(pHVol);
  USB.print(F("volts  | "));
  USB.print(F(" Temperature: "));
  USB.print(temp);
  USB.print(F("degrees  | "));
  USB.print(F(" pH Estimated: "));
  USB.println(pHValue);

  //////////////////////////////////////////////
  // 2. send data
  //////////////////////////////////////////////

  // Create a new frame
  frame.createFrame(BINARY);

  // Add pH value
  frame.addSensor(SENSOR_WATER_PH, pHVol);
  // Add value
  frame.addSensor(SENSOR_WATER_ORP_E, ORPValue);
  frame.addSensor(SENSOR_WATER_WT, temp);

  frame.generateTinyFrame();

  USB.println(F("Sending a packet..."));

  // Send 12 bytes at most
  error = Sigfox.send(frame.bufferTiny, frame.lengthTiny);

  // Check sending status
  if ( error == 0 )
  {
    USB.println(F("Sigfox packet sent OK"));
  }
  else
  {
    USB.println(F("Sigfox packet sent ERROR"));
  }

  delay(10000);
}
Regards

jorgicus
Posts: 17
Joined: Mon Sep 02, 2019 9:04 am
Company: FULCRUM

Re: Solar power charge

Post by jorgicus » Wed Oct 09, 2019 11:19 am

Node have ORP, PH and DO sensors + turbidity.

Yesterday I installed it in his location, calibrated it via Sigfox and programed with this values via PCS. Battery has a discharge tax of 10% in 24h from 95% yesterday to 85% today.

It seems that deep sleep ins not working.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest