Jump to content

Gina

Beyond the Event Horizon
  • Posts

    45,326
  • Joined

  • Last visited

  • Days Won

    120

Everything posted by Gina

  1. I may have a change of plan with a much simpler set of electronics. Using a NodeMCU Module ESP8266 ESP-12E WiFi device.
  2. I reckon I may be able to use the ESP8266 for my observatory roof control. Current design uses an RPi and Arduino Nano. It only needs the Nano to read one analogue signal otherwise it's digital I/O.
  3. Well, well, well, that's the same circuit as an earlier WS of mine using 1-wire. Except mine didn't use two reeds for the anemometer. The ESP8266 has just one ADC input. The NodeMCU Module ESP8266 ESP-12E version has just been delivered. It's only very slightly smaller than the ESP32! So I haven't gained much - just a couple of quid cheaper. I may go back to the ESP32 and use this for something else. I'm not sure there's any advantage in the 8266.
  4. Looks like the NodeMCU Module ESP8266 ESP-12E that is on the way to me won't work in the way I want. There may be a way round it using fewer pins - I shall have to think...
  5. I don't quite understand your first paragraph, I'm afraid. I have nothing ATM. My plan is to connect the reed switches to the ESP and use internal PU if available with the other ends connected to Gnd.
  6. Found this - think I may have problems! The ESP8266 as a microcontroller - Hardware
  7. I'm trying to find info on the IZOKEE NodeMCU Module ESP8266 ESP-12E but not having much joy. I shall want 9 digital inputs for the wind sensors. I do have info on programming it with the Arduino IDE though. Programming ESP8266 ESP-12E NodeMCU Using Arduino IDE - a Tutorial EDIT :- I think some of the info I want is in this tutorial. Seems there are 10 digital GPIOs. Don't know about internal pull-up resistors.
  8. I decided to order a pack of 10 plastic housed reed switches due to arrive tomorrow. This would give the easiest system to mount and the smallest also probably simplest to connect.
  9. The ESP8266 only has one ADC so it has to be the ESP32 if I want to use the optical sensing. Otherwise if I want to use the ESP8266 I have on order it will have to be magnetic. That's reed switches or Hall devices. Reed switches are easier to mount and easier to connect and need no power supply, connecting directly to the ESP with pull-up resistors enabled on those pins. My only real query with reed switches is reliability and longevity being mechanical.
  10. Hmmm... A problem with optical then! Can I make the inside of the casing dark enough??? At least reed switches and Hall devices don't respond to the earth's magnetic field.
  11. Latest test result with 1K pull-up resistor to 2.3v gave 1.3v and 0.3v at the collector. This seems to be optimal but shielding the sensors from daylight will be essential unless I use another optical sensor as a reference but this is definitely dodgy!
  12. New test result:- Collector still saturates to 0.16v with a curved white PLA reflector at around 3mm and goes up to 0.6v without it - more if shaded from the light coming in through the window. Think it wants a lower value pull-up resistor. I'll try 1K.
  13. Just been checking the optical sensor again to see how well it works with a curved reflecting surface. Didn't get very far. I found the photo transistor responded to daylight and the collector saturated with 0.16v. Shading from daylight let the voltage rise a bit but not enough. The phototransistors are supposed to have filtering to exclude daylight. I'll try again with a smaller pull-up resistor. Using two diode volt drops gives 2.3v (3 gave 3.6v) with 10mA. Half way would be well adequate voltage change for ADC input so if I get 0.5mA collector current from the reflective surface the PU resistor value becomes 1.2v @ 0.5mA = 2.4K. 2K2 will do - that'll give a volt.
  14. The ESP will be mounted in the same casing as the wind sensors so connections will be short. Yes, I shall have to check which pins to use.
  15. Reed switches (or Hall devices) would make for a smaller unit but the optical system would be more accurate with the angles preset in the Gray code disc. Needs fewer connections to the ESP (4 rather than 8), decoding is simpler, no debouncing code required. If I changed the orientation of the optical sensing I could make the surfaces vertical and avoid dust settling. I may also have an idea for reducing the size by not using a 3" (75mm) Gray code disc. There is no particular advantage in using a single Gray code disc - with 3D printing it's no problem making 3 cylindrical code parts.
  16. It seems the ESP32 has programmable pull-up or pull-down internal resistors on most pins. This may remove the need for external resistors. I'm hoping this applies to the ADC inputs - I see it certainly applies to most digital inputs. This makes reed switches more practical as they would only need connecting to ESP and Gnd. 9 connections total. Another possibility might be Hall switches but more connections needed and they need power.
  17. Hmmm... I admit I hadn't thought about muck.
  18. 8 reed switches or 4 opto sensors have the same number of connections but the opto system has fewer resistors and fewer connections to the ESP.
  19. Makes more sense to use the ESP32 alone than add a separate unit IMO. Thank you anyway.
  20. I'm referring to the wind vane with 8 reed switches not the anemometer. The latter is no problem and I'm using a Hall device. The 8 reeds and magnet are arranged with an overlap - two reeds connect when the magnet is between them. This give a 16 direction readout by measuring the output voltage with an ADC.
  21. OTOH I've been researching the resistor values and circuit for the reed switch system and it seems it needs very odd resistor values and quite complicated wiring. This may actually be more complicated than a Gray code disc, 4 optical sensors and ESP32 (or maybe ESP8266 with lots of pins).
  22. The ESP32 would be a good option for the temperature, humidity, pressure, etc. but I am wondering if I'm over thinking the wind vane sensor. The simplest solution would seem to be reed switches with a resistor network. My original ones were glass and an inch long also the wind vane was smaller than my current one so I'm thinking the magnetic attraction to the reeds would be a lot less with the modern 14mm long plastic cased reed switches than the earlier glass ones.
  23. Links to useful information and further reading (WIP) :- skybadger github for ESP8266 code (thanks@skybadger) Installing the ESP32 Board in Arduino IDE (Windows, Mac OS X, Linux) Getting Started with the ESP32 Development Board Build an All-in-One ESP32 Weather Station Shield
  24. Found information on the ADCs in the ESP32. LINK
×
×
  • 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.