1

(0 replies, posted in Technical)

Hi,
I had a new idea for modifing my scale.
Is it possible to replace the battery pack with one 18650 Accu (TrustFire 18650 Batterie 3,7 V 3400 mAh). It could be charged with a small solarpanel, but I don‘t know, if the accu gives enough energy.

What do you think about it?

Greetings

Michael

Hi,
I tried to play around with the openhivescale_v4.8.ino and then I want to compile it.
During this process I got the following error messages:

_________________________________________________________________________________________
error: 'IPAddress' was not declared in this scope

unsigned long sendNTPpacket(IPAddress& address, WiFiUDP udp)

                             ^_time:256:40: error: 'address' was not declared in this scope

unsigned long sendNTPpacket(IPAddress& address, WiFiUDP udp)

                                        ^

_time:256:49: error: 'WiFiUDP' was not declared in this scope

unsigned long sendNTPpacket(IPAddress& address, WiFiUDP udp)

                                                 ^

_time:256:60: error: expression list treated as compound expression in initializer [-fpermissive]

unsigned long sendNTPpacket(IPAddress& address, WiFiUDP udp)

                                                            ^

_time:305:25: error: variable or field 'GetNTPConfigureRTC' declared void

void GetNTPConfigureRTC(IPAddress& timeServerIP) {

                         ^

_time:305:25: error: 'IPAddress' was not declared in this scope

_time:305:36: error: 'timeServerIP' was not declared in this scope

void GetNTPConfigureRTC(IPAddress& timeServerIP) {

                                    ^

modem:4:39: error: 'File' has not been declared

void modemSendCommand(String command, File logfile) {

                                       ^

modem:18:36: error: 'File' has not been declared

String modemGetAnswer(int timeout, File logfile) {

                                    ^

In file included from C:\Users\vornk\Documents\Arduino\openhivescale_v4.8\openhivescale_v4.8.ino:11:0:

debug.h:7:53: error: 'void debug(String, bool)' was declared 'extern' and later 'static' [-fpermissive]

static void debug(String text, bool sameLine = false);

                                                     ^

debug:8:6: error: previous declaration of 'void debug(String, bool)' [-fpermissive]

void debug(String text, bool sameLine) {

      ^

In file included from C:\Users\vornk\Documents\Arduino\openhivescale_v4.8\openhivescale_v4.8.ino:11:0:

debug.h:8:54: error: 'void debug(int, bool)' was declared 'extern' and later 'static' [-fpermissive]

static void debug(int intInput, bool sameLine = false);

                                                      ^

debug:30:6: error: previous declaration of 'void debug(int, bool)' [-fpermissive]

void debug(int intInput, bool sameLine) {

      ^

In file included from C:\Users\vornk\Documents\Arduino\openhivescale_v4.8\openhivescale_v4.8.ino:12:0:

telnet.h:11:26: error: 'void telnetHandle()' was declared 'extern' and later 'static' [-fpermissive]

static void telnetHandle();

                          ^

telnet:4:6: error: previous declaration of 'void telnetHandle()' [-fpermissive]

void telnetHandle() {

      ^

In file included from C:\Users\vornk\Documents\Arduino\openhivescale_v4.8\openhivescale_v4.8.ino:13:0:

_time.h:39:60: error: 'long unsigned int sendNTPpacket(IPAddress&, WiFiUDP)' redeclared as different kind of symbol

unsigned long sendNTPpacket(IPAddress& address, WiFiUDP udp);

                                                            ^

_time:256:15: error: previous declaration of 'long unsigned int sendNTPpacket'

unsigned long sendNTPpacket(IPAddress& address, WiFiUDP udp)

               ^

C:\Users\vornk\Documents\Arduino\openhivescale_v4.8\_time.ino: In function 'long unsigned int sendNTPpacket(IPAddress&, WiFiUDP)':

_time:256:60: error: 'long unsigned int sendNTPpacket(IPAddress&, WiFiUDP)' redeclared as different kind of symbol

unsigned long sendNTPpacket(IPAddress& address, WiFiUDP udp)

                                                            ^

_time:256:15: error: previous declaration of 'long unsigned int sendNTPpacket'

unsigned long sendNTPpacket(IPAddress& address, WiFiUDP udp)

               ^

C:\Users\vornk\Documents\Arduino\openhivescale_v4.8\_time.ino: In function 'void GetNTPConfigureRTC(IPAddress&)':

_time:322:43: error: 'sendNTPpacket' cannot be used as a function

   sendNTPpacket(timeServerIP, udpNtpClient); // send an NTP packet to a time server

                                           ^

_time:327:45: error: 'sendNTPpacket' cannot be used as a function

     sendNTPpacket(timeServerIP, udpNtpClient);

                                             ^

Bibliothek ESP8266WiFi in Version 1.0 im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266WiFi  wird verwendet
Bibliothek Wire in Version 1.0 im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\Wire  wird verwendet
Bibliothek Time-1.5.0 in Version 1.5 im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\Time-1.5.0  wird verwendet
Bibliothek EEPROM in Version 1.0 im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\EEPROM  wird verwendet
Bibliothek Ticker in Version 1.0 im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\Ticker  wird verwendet
Bibliothek ESP8266WebServer in Version 1.0 im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266WebServer  wird verwendet
Bibliothek ESP8266HTTPClient in Version 1.1 im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266HTTPClient  wird verwendet
Bibliothek ESP8266HTTPUpdateServer in Version 1.0 im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266HTTPUpdateServer  wird verwendet
Bibliothek TinyGsm im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\TinyGsm (legacy) wird verwendet
Bibliothek ArduinoHttpClient im Ordner: C:\Users\vornk\Documents\Arduino\hardware\esp8266com\esp8266\libraries\ArduinoHttpClient (legacy) wird verwendet
exit status 1
'IPAddress' was not declared in this scope
_________________________________________________________________________________________

This is in file _time.ino in line 305 (void GetNTPConfigureRTC(IPAddress& timeServerIP) {)

Could you please tell an absolute arduino beginner, where and how I can define the variable IPAdress?

Maybe, I have the wrong version of the Time lib (I use Time-1.5.0)

Thank you

Michael

Thank you to both!
Looks like had a little bit of work :-)
Maybe the video of Pierre could help. Let's see.

Hi,
I have observed that the measured weight oscillates up and down.
After changing the battery I tested the system first without any weight and then with about 27 kg.
The scale measured the following data:


https://i.postimg.cc/TyTs6NMs/Screen-Shot-228-Bienenmonitor-Mozilla-Firefox.png

So my questions are:
Is there a problem with my system?
Is the possible solution to measure twice or three times and take the mean?

All tips are welcome.

Thank you

Michael

5

(2 replies, posted in Technical)

Hi Pierre,
thank you for your answer!!!

Many greetings

Michael

6

(2 replies, posted in Technical)

Hi,
is it possible to read (and add it to the url) voltage of the batteries?

Thank you

Michael

7

(2 replies, posted in Technical)

Hi every body,
after assembling my scale and installing the electronic part, I could get access to the admin panell (192.168.4.1).
I configured it and made an update. After the scale has rebootet every thing looked fine and so I removed the jumper from the config mode.
Next day I had to recognise, that there must be a failure in my config. The scale didn't connect to my router and couldn't find the monitor server.
So I tried to get again into the config mode. But my neiter my Ipad nor my notebook could get access to the scale.
It looks like if they connect to the internal wifi, but they couldn't open the admin page.

My idea is, to reset the panel. I saw, that the jumper has on the other side of the config-mode a "flash mode".
Is this the option the reset the board? And could I connect after a rest to the admin panell (192.168.4.1)?

Thank you for your help

Michael