Author Topic: Arduino  (Read 449 times)

The Grand Poohbah

  • Strong Breeze
  • ***
  • Posts: 235
  • Developer of WeatherCat for iOS, tvOS, and watchOS
    • EW6355 KCANEVAD43
    • Hopeful Hill Ranch
  • Station Details: Vantage Pro 2, aspirated, solar radiation, uv, soil temp and moisture
Arduino
« on: November 20, 2017, 05:59:49 PM »
I recently discovered the Arduino Uno, an inexpensive (<$8) and versatile micro controller that's programmable in C. There are a lot of hardware add-ons available and the software libraries are free and abundant. My first project is to animate multi-colored LED strips for an outdoor Christmas decoration.

One strong feature of the Arduino is its ability to interface with the outside world. It has built-in digital and analog connectors for sensing and controlling in real time. I was wondering if anyone is using the Arduino with WeatherCat and weather stations.

CecilTheTurtle

  • Calm
  • *
  • Posts: 4
    • KMAMEDFO14
  • Station Details: Davis Vantage Vue
Re: Arduino
« Reply #1 on: January 13, 2018, 03:28:57 AM »
Iím thinking about it. Iíd like to add some other temperature sensors around my house and record the data in WeatherCat. Might use the EsP8266 board for cheap communication. Havenít got very far yet, just in data gathering mode at the moment.

mcrossley

  • Strong Breeze
  • ***
  • Posts: 220
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: WH1090
Re: Arduino
« Reply #2 on: January 13, 2018, 09:49:08 AM »
Not with WC obviously, but I am using one with my Davis VP2. I have made a "relay device" for the radio transmissions.

I suffered from a not uncommon problem with the VP2, namely the solar and UV sensors have to be attached to the ISS. I already had a separate wind transmitter to get those sensors up above my roofline and keep the ISS way down the garden away from the house. The solar and UV sensors really need to up above the roofline as well to avoid any shading by trees etc - you need visibility of the horizon almost all the way round at this latitude.

So I have a an Arduino (actually a Moteino with onboard radio module) the receives the transmissions from both the ISS (station id 2) and the wind transmitter (station 1) extracts any data and rebroadcasts it as station 3. The console just listens to station 3 as an ISS.

I moved the solar and UV to the wind transmitter (which is just an ISS with a different part number), and bingo, the console thinks it has a single ISS with temp, humidity, rain, wind, solar, and UV.
Mark

CecilTheTurtle

  • Calm
  • *
  • Posts: 4
    • KMAMEDFO14
  • Station Details: Davis Vantage Vue
Re: Arduino
« Reply #3 on: January 13, 2018, 04:25:10 PM »
how are you rebroadcasting as a Davis ISS? Everything I've seen so far in my (admittedly) short research only mentions receiving signals from an ISS, not broadcasts. Got any recommendations as a starting point?

 TIA

xairbusdriver

  • Storm
  • *****
  • Posts: 2054
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.13.4/WC 3.0
Re: Arduino
« Reply #4 on: January 13, 2018, 04:58:12 PM »
BTW...
Welcome AboaRd, CecilTheTurtle!

We have folks from around he globe, but I think you are the first turtle! [lol] Please go to the New Member Introductions forum and let us welcome you, officially! [tup] At least let us know if you are a fresh or salt water type!

CecilTheTurtle

  • Calm
  • *
  • Posts: 4
    • KMAMEDFO14
  • Station Details: Davis Vantage Vue
Re: Arduino
« Reply #5 on: January 13, 2018, 05:22:27 PM »
LOL. Freshwater I guess, as the Turtle is a reference to my old Jeep, which when flipped on its back would be in trouble. Not really a newbie, as I've been a WeatherCat user since 2012, but just haven't had a reason to post until now. Thanks for the welcome!

mcrossley

  • Strong Breeze
  • ***
  • Posts: 220
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: WH1090
Re: Arduino
« Reply #6 on: January 13, 2018, 07:08:56 PM »
how are you rebroadcasting as a Davis ISS? Everything I've seen so far in my (admittedly) short research only mentions receiving signals from an ISS, not broadcasts. Got any recommendations as a starting point?

 TIA
I posted my code on Github - I forked the excellent VPTools as a starting point, tweaked the base class slightly and added a RelayRxTx sketch.

I don't think git has my very latest code, but it should be functional.

It can output data in various formats to the USB port (I have mine plugged into the same Raspberry Pi I run my weather software and web page on), but I recommend you only use that feature for initial setup/debugging - writing the serial data ties up quite a lot of CPU cycles. You can set/tweak various parameters via the serial port to tune reception drift and timing etc, the values will be stored in non-volatile memory to survive power cycles of the Arduino.

I power my Motenio via the USB port, if you d this I recommend that you cut the link on the board that connects the link active line to the CPU reset, otherwise you reset the thing every time you establish a serial connection.

The Motenio is relatively expensive, but it does provide a very neat package to integrate Arduino and radio on a single board. Especially good if you are technically challenged with a soldering iron and SMD components like me.

EDIT: I see the VPTools author has added a Relay sketch to the base library now, and has been actively making updates - probably worth having a look at his code as well - it will no doubt be better structured than mine.
Mark

CecilTheTurtle

  • Calm
  • *
  • Posts: 4
    • KMAMEDFO14
  • Station Details: Davis Vantage Vue
Re: Arduino
« Reply #7 on: January 13, 2018, 07:50:56 PM »
Thanks for the info! Unfortunately Iím way better with a soldering iron than I am with code. This gives me a good start though!