×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Building the induino MeteoStation with 3d printed housing

  • Posts: 271
  • Thank you received: 72
I think that AVERAGEvalues.json might be related to the MinMax error in the console.

I'm guessing you are getting that too?
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19600

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
game over....

Timeout MeteoStation HR
Timeout MeteoStation HR
Timeout MeteoStation HR
Timeout MeteoStation HR

I was testing the new box outside, rain got in....


edit:
Loaded up a DHT test code and I get:

I shall leave it alone until tomorrow and see how it goes, if not... I'll order a new one on fleebay....


edit 2:
looks like there is a reset feature...
forum.arduino.cc/index.php?PHPSESSID=v4t...sg1026234#msg1026234

edit 3:
DHT22 datasheet : www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf
"Avoid using the sensor under dew condition"
Last edit: 6 years 7 months ago by Gonzothegreat.
6 years 7 months ago #19601

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I was able to save my DHT22 sensor with a hairdryer, seems to be working ok now. I just need to review my box design a little bit so that the sensor is protected from direct rain.
6 years 7 months ago #19627

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72

Get the 3d printable housing :-)
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19628

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223

I do not have a 3D printer :(
6 years 7 months ago #19629

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72

There are two options that I know about for those without a 3d printer.

The files are hosted on Thingiverse.com, and there is a 'order this part printed' button.

There is also 3DHub (i linked to it in the tutorial). Anyone with a printer can add a hub, so it's likely that there is one close to you.

I have not tried either my self, but if you google you might find some reviews.

PETG or ABS is good for the housing. Then TPU for the gaskgets (or other flex filament). The themplate to cut the window is ok in PLA.
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
The following user(s) said Thank You: Gonzothegreat
6 years 7 months ago #19630

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
Thinking back about the DHT22 sensor, it "failed" as the sensor reached 99.90% humidity, anywhere in the code where I can see this to a slightly higher value for example 99.99 instead?
6 years 7 months ago #19631

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
ok, so I think the DHT22 is dead after all. It's not even raining and it has reached 99.90% again.... :(
off to fleebay to get another one.
6 years 7 months ago #19632

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
A value of more than 99.90% should not be a issue at all. However the sensor might have been unable to read, and the result nan.

I see in the exaple sketch that there is a check if the read is nan, so it can exit early. As dewpoint is calculated from the temp and humidity, it might have been doing aritmetric with nan (not a number)

I can add this check
// Check if any reads failed and exit early (to try again).
  if (isnan(h) || isnan(t) || isnan(f)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }

It will not help with the sensor reporting 99.90% humidity, but can help the firmware to keep going on sensor failure.
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19633

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
unrelated but super cool !!!!
build/upload your sketches from the Linux command line
inotool.org/

Just tested it, works perfectly fine.
The following user(s) said Thank You: Magnus
6 years 7 months ago #19635

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
That's very nice.
Don't like the Arduino IDE at all, and there is no refresh all files for when I edit them in vim.

Will give it a go
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19636

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I know this is going side track from this thread but...
root@ubuntu:/home/beep# ino build -m nano328
Searching for Board description file (boards.txt) ... /usr/share/arduino/hardware/arduino/boards.txt
Searching for Arduino lib version file (version.txt) ... /usr/share/arduino/lib/version.txt
Detecting Arduino software version ...  1.0.5 (2:1.0.5+dfsg2-4)
Searching for Arduino core library ... /usr/share/arduino/hardware/arduino/cores/arduino
Searching for Arduino variants directory ... /usr/share/arduino/hardware/arduino/variants
Searching for Arduino standard libraries ... /usr/share/arduino/libraries
Searching for make ... /usr/share/arduino/hardware/tools/avr/bin/make
Searching for avr-gcc ... /usr/share/arduino/hardware/tools/avr/bin/avr-gcc
Searching for avr-g++ ... /usr/share/arduino/hardware/tools/avr/bin/avr-g++
Searching for avr-ar ... /usr/share/arduino/hardware/tools/avr/bin/avr-ar
Searching for avr-objcopy ... /usr/share/arduino/hardware/tools/avr/bin/avr-objcopy
src/sketch_sep17f.ino
Searching for Arduino lib version file (version.txt) ... /usr/share/arduino/lib/version.txt
Detecting Arduino software version ...  1.0.5 (2:1.0.5+dfsg2-4)
Scanning dependencies of src
Scanning dependencies of arduino
Scanning dependencies of DHT
Scanning dependencies of Adafruit_Unified_Sensor
src/sketch_sep17f.cpp
DHT/DHT.cpp
DHT/DHT_U.cpp
Linking libDHT.a
arduino/wiring_shift.c
arduino/WInterrupts.c
arduino/avr-libc/malloc.c
arduino/avr-libc/realloc.c
arduino/wiring_analog.c
arduino/wiring_digital.c
arduino/wiring_pulse.c
arduino/wiring.c
arduino/HardwareSerial.cpp
arduino/USBCore.cpp
arduino/CDC.cpp
arduino/Stream.cpp
arduino/WMath.cpp
arduino/new.cpp
arduino/IPAddress.cpp
arduino/Tone.cpp
arduino/main.cpp
arduino/WString.cpp
arduino/Print.cpp
arduino/HID.cpp
Linking libarduino.a
Linking libAdafruit_Unified_Sensor.a
Linking firmware.elf
Converting to firmware.hex
root@ubuntu:/home/beep# 
root@ubuntu:/home/beep# 
root@ubuntu:/home/beep# 
root@ubuntu:/home/beep# ino upload -m nano328
Searching for stty ... /bin/stty
Searching for avrdude ... /usr/share/arduino/hardware/tools/avrdude
Searching for avrdude.conf ... /usr/share/arduino/hardware/tools/avrdude.conf
Guessing serial port ... /dev/ttyUSB0
 
avrdude: AVR device initialized and ready to accept instructions
 
Reading | ################################################## | 100% 0.01s
 
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file ".build/nano328/firmware.hex"
avrdude: writing flash (8546 bytes):
 
Writing | ################################################## | 100% 4.28s
 
avrdude: 8546 bytes of flash written
avrdude: verifying flash memory against .build/nano328/firmware.hex:
avrdude: load data flash data from input file .build/nano328/firmware.hex:
avrdude: input file .build/nano328/firmware.hex contains 8546 bytes
avrdude: reading on-chip flash data:
 
Reading | ################################################## | 100% 3.68s
 
avrdude: verifying ...
avrdude: 8546 bytes of flash verified
 
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
 
avrdude done.  Thank you.
 
root@ubuntu:/home/beep# 
 
root@ubuntu:/home/beep# ino serial -p /dev/ttyUSB0 
Searching for Serial monitor (picocom) ... /usr/bin/picocom
picocom v1.7
 
port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 9600
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : yes
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
 
Terminal ready
DHTxx Unified Sensor Example
------------------------------------
Temperature
Sensor:       DHT22
Driver Ver:   1
Unique ID:    -1
Max Value:    125.00 *C
Min Value:    -40.00 *C
Resolution:   0.10 *C
------------------------------------
------------------------------------
Humidity
Sensor:       DHT22
Driver Ver:   1
Unique ID:    -1
Max Value:    100.00%
Min Value:    0.00%
Resolution:   0.10%
------------------------------------
Temperature: 12.90 *C
Humidity: 99.90%
 
Thanks for using picocom
root@ubuntu:/home/beep# 


you may have to download some libraries too, for example:
www.arduinolibraries.info/libraries/dht-sensor-library
www.arduinolibraries.info/libraries/adafruit-unified-sensor
Last edit: 6 years 7 months ago by Gonzothegreat.
6 years 7 months ago #19637

Please Log in or Create an account to join the conversation.

Time to create page: 0.362 seconds