×
INDI Library v1.8.6 Released (21 Aug 2020)

August 2020 release of INDI Library v1.8.6 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Indiduino MeteoStation (updated hardware and firmware)

10 months 1 week ago
anofeles
Senior Boarder
Senior Boarder
Posts: 48
More
Indiduino MeteoStation (updated hardware and firmware) #45879
If you would be so kind...

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

10 months 1 week ago
G_Gagnon
Expert Boarder
Expert Boarder
Posts: 149
Karma: 2
More
Topic Author
Indiduino MeteoStation (updated hardware and firmware) #45881
I just have to learn how to do a fork and pull request on github, never done that before! :-/
The following user(s) said Thank You TomAstro

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

10 months 1 week ago
TomAstro
Gold Boarder
Gold Boarder
Posts: 192
More
Indiduino MeteoStation (updated hardware and firmware) #45884
Can't wait to test it out! Thanks a lot.

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

10 months 1 week ago
G_Gagnon
Expert Boarder
Expert Boarder
Posts: 149
Karma: 2
More
Topic Author
Indiduino MeteoStation (updated hardware and firmware) #45885
Issued a fork and pull request but not sure if I did it correctly. If yes, and if the changes are appropriate, we may see it sometimes. :-)
The following user(s) said Thank You TomAstro

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

10 months 1 week ago
TomAstro
Gold Boarder
Gold Boarder
Posts: 192
More
Indiduino MeteoStation (updated hardware and firmware) #45888
SQM is using ttyUSB instead of ttyACM. Is your MeteoStation also using ttyUSB?

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

10 months 1 week ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 643
Karma: 6
More
Indiduino MeteoStation (updated hardware and firmware) #45892
Great work, Gilles, many thanks, having the tsl2591 as light sensor brings much value!

Since I am building my own small weather station I am very interested what type of enclosure you are using. Especially for the light sensor, is it possible to shield it from the weather without disturbing it?

Wolfgang

TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10

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

10 months 1 week ago
G_Gagnon
Expert Boarder
Expert Boarder
Posts: 149
Karma: 2
More
Topic Author
Indiduino MeteoStation (updated hardware and firmware) #45900
I am using a 3.3 volts, 8 MHz Arduino Pro Mini for its size and I2C supply compatibility, connected to the PC via a USB FTDI cable. It is recognized as a /dev/ttyUSB* device.

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

10 months 1 week ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 643
Karma: 6
More
Indiduino MeteoStation (updated hardware and firmware) #45901
I am using an Arduino Metro Mini, which works fine under Linux. What do you use as housing for the electronics?

TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10

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

10 months 1 week ago
G_Gagnon
Expert Boarder
Expert Boarder
Posts: 149
Karma: 2
More
Topic Author
Indiduino MeteoStation (updated hardware and firmware) #45902
Thanks!

The enclosure I am using is the one described in indilib.org/forum/general/2265-building-...d-housing.html#17029 , thanks to Magnus Eriksen. It uses a cavity in which the TSL is installed, protected by a TPU gasket and a plexiglass window. I am not sure if the plexi affects much the sensor reading as I have not verified that yet.

The only drawback of the enclosure is the space available for the Arduino, it is very small and I had to use an Arduino Pro Mini to make things easier. Apart from that, the enclosure design is very nice and prints well with PETG.

Gilles

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

9 months 3 weeks ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 643
Karma: 6
More
Indiduino MeteoStation (updated hardware and firmware) #46466
Hi Gilles,
many thanks again for your update of the Arduino firmware for new new sensors. I tested it, everything works fine. Only for the meteoWeb page I needed to make some minor changes so that it could show the SQM values instead of IR-Radiance.

But with the variety of sensors comes in a new complexity for users. Depending on the specific set of sensors, users need to change both the firmware, the INDI skeleton file and in some cases even the HTML page and the python scripts.

What do you think if we reduce the Arduino firmware in such a way that it gives access to sensors, but all calculations are shifted up to the INDI driver. As a mid term goal it would be great if everything can be configured through the INDI driver without touching the firmware.

Does that make sense?
-- Wolfgang

TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10

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

9 months 3 weeks ago
G_Gagnon
Expert Boarder
Expert Boarder
Posts: 149
Karma: 2
More
Topic Author
Indiduino MeteoStation (updated hardware and firmware) #46540
Hello Wolfgang,

Thanks for your encouraging comments, they are very much appreciated.

Jasem has asked me to work on the MeteoStation documentation which would benefit from a refresh and an up-to-date upgrade, given the possibility of new/different sensors. I am thinkering on that while working on my automated observatory, based on Gonzo the Great's idea and concept. So time is shared between family and many projects and things don't get done as quickly and efficiently as I would wish.

Back to your suggestions, the users who embark on building the indiduino MeteoStation need to specify whatever sensors they intend to use so there is no easy way around configuring the firmware. Maybe we could put the sensor configuration elements (sensors related #define) in an include file instead of the actual "indiduinoMETEO.ino" file. The users would only have to edit that "indiduinMETEO.h" file and we could put enough info in it to make it simple to configure. the INDI skeleton files should not require modification if you use the appropriate 'virtual' driver (Arduino MeteoStation or Arduino MeteoStation SQM) but I can take a look at that to make sure. Concerning the HTML page and python scripts, not having much experience there, I can't unfortunately be of much help, even though I can have a look.

As far as reducing the Arduino firmware and shifting calculations to the INDI driver, as the firmware is based on the Arduino firmata sketch, I am not sure this can be done easily. I am far from being an expert (more like novice) with firmata so I do not really know what is involved in that change. Furthermore, except for the SQM sensor which adjust its gain and integration time in the firmware, all the other sensors just provide values that are scaled and sent to the /usr/bin/indi_duino driver. I will take a closer look at what we can do to make things easier but can't promise much yet.

Thanks again for your ideas/suggestions/comments.

Gilles

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

9 months 3 weeks ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 643
Karma: 6
More
Indiduino MeteoStation (updated hardware and firmware) #46544
I think updating the documentation is top priority, but it should not be too complicated. Maybe you have the chance to update the Arduino part. I think the Trinket Pro isn't the best choice, since it needs an additional FTDI chip for USB connection. Understanding this took me a while, since it was my first Arduino project. Using an Arduino Nano or a Arduino Pro Mini is a lot easier, since they bring a full fledged USB Serial interface.

Just one hint: with your change the HTML code needs an update as well to show the SQM values.

Regarding the code change: I have an idea how it could work. We could build an INDI driver on top of the current firmware making part of it superfluous. When I find some time, I'll make a suggestion.

I sent you a PM here in the forum so that we can exchange our ideas without discussing everything here in all details.

Wolfgang

TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10

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

Time to create page: 0.438 seconds