Jump to content



  • Content Count

  • Joined

  • Last visited

Everything posted by tekkydave

  1. Might be worth putting that on the Duet forum. It's not one I have seen before. What version of DWC do you have. The latest stable version is 3.1.1 with 3.2 out soon. If you are still on 2.x it might be worth considering the upgrade to v3.
  2. The class I posted is part of the aggregation functions in my system. I have a separate logger that just puts raw values into the db with minimal processing for speed. The aggregation functions read from the db and write back things like wind speed & direction concensus that depend on values over a set period. Also I have hourly, daily, monthly, yearly aggregation of temperature, rainfall and wind speed going on in the background. My database is at 1.5Gb already with data going back to 2016. Daily backups happen automatically
  3. I put everything in the same class as it writes them to the database as a single row. You are probably only interested in the direction bits.
  4. If you read Java this is my class package piweather4jv2; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; // Class constructed using instructions at: http://www.beals5.com/wx/faqs.htm public class WindConcensus { public void readWindConcensus(Database db, int dbSensorId, FileManager fm) { List<Double> windDirectionResults; List<Double> windSpeedResults; List<Double> windGustResults; double windSpeed = 0; double windGust = 0; int[] bin = new int[20]; bool
  5. I used the algorithm on this web site for my calculations.
  6. Check you have USB enabled in the VMs settings: and also when you connect a USB device to the host PC select it from the Devices --> USB menu so the VM can capture it from the host.
  7. Isn't the browser fetching data from the esp32? You need to do the same. Try curl maybe.
  8. The very first 1-wire wind-vane I had contained 8 reed switches. It selectively shorted out resistors in a chain to give a 4-bit analogue reading. This was read by a 4-bit 1-wire AtoD chip and the software then used the values to calculate 1 of 16 compass directions. I'll see if I can find the original circuit. Edit: found it! This is pdf so d/l then open up CalculatingWindSpeedAndDirection.PDF
  9. Could a pi be set up to poll the ESPs in turn to get the latest/current values?
  10. Have you considered storing your readings in a database. Then you can split the system into 2 parts; 1. A part based on the ESP32 that simply takes readings & logs raw data to the database 2. A front-end based on a pi or pc that displays the data. This can be more powerful for the processing required. Having the data in a db also allows you to keep a history of your readings. I now have readings going back to 2016 in my weather db.
  11. Do you mean web server or web service? Running a web service on the ESP32 would be a good solution as it can be accessed over the wifi from any other networked device easily. Almost like a one-way MQTT
  12. I think MQTT is definitely worth considering. All you need is a server/broker (RPi?) which is easy to set up. Then you can send messages (data etc) between clients easily. The ESP32 should have an MQTT library and there will be one for whatever language you go with on the indoor side. There are also free sites on the web that you can use as your broker - see CloudMQTT. I have used it just for testing so you can play with the client ends without needing to build the broker. So it might look like this: (WiFi) (WiFi/Eth) Weather Station <----
  13. Buck converters are ideal for this. Make sure each one has sufficient current rating and put a fuse on each individual output too
  14. Programming ESP32 via Arduino IDE Note: Also works using Arduino IDE in Linux
  15. ESP8266 only has one analogue input - you need the ESP32 I think The ESP chips can be programmed via the Arduino IDE as if they were arduinos with the addition of a few extensions.
  16. The ESP32 seems endowed enough for a weather station: 18 Analog-to-Digital Converter (ADC) channels 10 Capacitive sensing GPIOs 3 UART interfaces 3 SPI interfaces 2 I2C interfaces 16 PWM output channels 2 Digital-to-Analog Converters (DAC) 2 I2S interfaces
  17. Why do you need nano as well as the ESP8266? Is it just a lack of I/O pins on the ESP?
  18. Appreciate that but I thought those sensor chips look interesting to have a play with
  19. Maybe it uses one of these.
  20. I have had one of these inspeed eVane wind vanes for many years now. Claims to use a Hall effect sensor but I'm not sure how they get the analogue output as a proportion of the input voltage. It works great with 1-wire AtoD to give a very accurate reading to less than 1 degree resolution. It's a sealed unit so I'm in the dark about how it works internally.
  21. You do realise you are now on two slippery slopes; astro and 3d printing
  22. Not sure why he wants to build it on stilts!
  23. Well spotted. I might get some of those
  24. You don't need a bolt in every hole - I have one every fourth hole and it is well secured to the extrusion. I think I need to get a dust cover for my printer though
  • 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.