Jump to content

NLCbanner2024.jpg.2478be509670e60c2d6efd04834b8b47.jpg

Gina

Beyond the Event Horizon
  • Posts

    45,326
  • Joined

  • Last visited

  • Days Won

    120

Posts posted by Gina

  1. I checked the volt drop on the LEDs at the current of 5mA that I'm using and they are 1.20v.  The supply will be around 6v.  Vin for the ESP32 is quoted as 5-12v though lower voltages mean less power on the voltage regulator.  This is not necessarily "carved in stone" I could wire the LEDs is pairs and use 2 resistors.

    • Like 1
  2. Circuit diagram for the connections to the ESP32 for the wind sensors.  On the left are 4 optical sensors that read the direction from the encoder in the vane unit and on the right the Hall effect sensor in the anemometer that counts the revolutions to give wind speed.

    1453509793_VaneSensors1.thumb.png.0d82eeb771777d0d7a06ef33186d947b.png

  3. Working on the wind sensor connections to the ESP32 module.

    The Hall sensor in the anemometer is connected to D4 on the ESP32 and the optical sensors to D34, D35, D32 and D33 in sequence.  This is the order of pins on the ESP32 module.  The collectors of the phototransistors are commoned and taken to 3.3v.  The emitters are connected to the ADC pins just mentioned with resistors to Gnd.  The IR emitter diodes are connected in series and connected between Gnd and 5v via a resistor to limit the current.  I have yet to perform tests to find the values for these resistors.  Once I've done this I'll draw and post a circuit diagram.

  4. WOW!!  That sure is a lightweight roof framework!  I have a pair of 100x25mm each side with the wheels in between.  The main roof framework is mostly 4x2 with some 6x2 (dropped back into Imperial!).  Studding to support the 6mm plywood is 2x2.  EPDM on top of the plywood.  OK so I'm into over-engineering!  🤣.  But it was that same roof that was lifted off by wind and dumped onto the fence upside down several years back.  It too 4 blokes to lift it back on!!  I have some very helpful neighbours.

    • Like 1
  5. RPi Zero W now replaced with the RPI 3B with wired comms, all clients updated to the new broker IP address and everything working.  The microSD card from the Zero now in the 3B and all Node-RED links were preserved.  Display seems solid!  What a difference!!  Of course, logged data is gone but it was getting to the state where the display was just occasionally working for a few seconds and virtually useless.

    986782328_Screenshotfrom2020-08-2314-03-18.thumb.png.ee60ce2671b23113703cb05b5137e45c.png

  6. I  shall look at all ideas for logging weather data and displaying and also the Arduino UNO hardware that I used before plus other ideas.  I think I would like to save the data to an SD card.  I haven't decided on a format for certain but comma delimited text looks a prime candidate.  I like simple.  I still hope to make a wall weather display with gauges and a 360 degree wind direction dial.  Servo motors would make good gauges I'm thinking with stepper motors for the wind direction.

  7. Guess I'll just use what I've got rather than try such a "way-out" solution.  I've already got the wind vane with built-in Gray encoder printed and just have one or maybe two more parts to print and I shall have the vane hardware finished.  Have the stripboard and components to solder though.  There are 4 resistors needed for the optical sensors.  Not sure about the IR emitters - I'll connect them all in series and see if a resistor is needed to run off the 5v supply.  I'll sort that out tomorrow - I've finished for tonight.

  8. Found an example of a single track Gray encoder.  That would produce a much smaller and simpler wind vane encoder, but this is a 5 bit coding yielding 30 different positions.  The down side is an extra optical sensor and more complex decoding.  Probably the "sledge hammer" method of a look-up table would be to simplest approach.  Also, the smoothing algorithm may not work.  So whilst this is very interesting I'm afraid it's probably "too clever"!!

    Link here :- Gray Code

    695708143_Screenshotfrom2020-08-2220-49-04.thumb.png.0ba3034a2f4443d031936077ce574185.png

    https://en.wikipedia.org/wiki/File:Animated_Graycode.gif

    • Like 1
  9. No problem with developing the sensor sketches - they are coming on nicely.  My main concern is displaying the dashboard.  It keeps losing the connection.  The RPi is only about a metre from the WiFi AP.  Maybe the WiFi on the RPi Zero W is poor.  Wondering if I would be better off with an RPi 3B which has Ethernet and to use a wired connection rather than WiFi.

    Opinions most welcome.

  10. Had to take the anemometer apart because the pivot had come loose.  Replaced the nut with a Nylock - it won't come loose again!  One of the magnets came out so I'm running on one magnet.  I'll rebalance it later if needed.  It will need 4.4s Interval to to give mph from the pulse count.  I don't think using 4.4s instead for the Gust period rather than 3s will matter much - it won't be going towards an official weather report!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.