Wireless reed type anamometer using Nrf24l01 or 433mhz

Greetings,
I currently am successfully using a adafruit type ( generator) anamometer with a analog output utilizing nrf24l01 radio for wireless communication.
I was wondering how I would go about using a reed switch/magnet type anamometer using the nrf24l01 or 433mhz type tx/ex? The output of course would be a pulse type input in the ardunio but I'm not sure how to do it wirelessly. Any guidance and or suggestions would be appreciated.

Yes, it would be possible. Arduino is a general purpose MCU, nrf24l01 is a general purpose RF tranceiver. They don't care what kind of anemometer you use.

Obviously, the code will need to change significantly. Did you write the code you are currently using or did you copy it?

The generator type anemometers output a voltage which I assume is read by an Arduino analog input, and the value used to calculate the wind speed, which is then transmitted over RF.

With a reed switch anemometer, your code needs to count the pulses over a fixed time and use that count to calculate the wind speed. Transmitting that wind speed over RF is no different from using any other type of anemometer.

Thank you for your reply, I actually used different snippets of code that I came across and combined them into one using Dht22/adafruit anamometer/ windvane using 20k bourns potentiometer 360 rotation. combined with a nrf24l01 radio. It works rather well. But I was wanting to implement another anamometer but the adafruit anamometer are rather expensive compared to reed type. I know the code would have to be completely different but I havent been able to locate for guidance any such type code to get started on.

I have written code for the reed switch anemometer in my weather station.

You should post a link to the specs or data sheet of the anemometer you plan to use.

I am having complication error at the line "bitSet(PRR, PRUSI); // disable USI. ERROR : PRUSI was not declared in this scope. I have addressed the other issues I had it was from the copy and paste asci hex issue . Any ideas? Thanks Paul

USI is a basic serial peripheral for the older Attiny MCUs. The sample code above is for an Attiny85. Yours is probably running an Atmega328P which uses a dedicated SPI hardware

Yes indeed you are correct . My original circuit was based on a nano and adafruit anamometer with voltage output applied to the analog inputs. Was looking for a way to apply a reed type anamometer to such a setup ( nano/nrf24l01) I know the code would have to be substantially changed but after searching I couldn't seem to find such applications for which I was trying to achieve

So which anemometer are you p[lanning on using? Counting pulses on an Atmega328P is fairly straight-forward.

Thank you for your reply, I am planning on using the Sparkfun SEN-0842 weather sensor. I have build a homemade reed/ magnet type anamometer and successfully ( somewhat for a homemade job) been able to verify that it does work with code using a wired connection. But implementing it to a 433/ Nrf24l01 type system for remote transmission has been unsuccessful so far any ideas/help would be appreciated. Tnx

Start with getting the radio side working first. There's a lot of example code for the NRF24 modules floating around. The most basic is get some messages exchanged between two devices. Once that is working, you can proceed to sending weather data.

I have successful NRF24L01 communication with a adafruit ( generator type 0.40 -2volt output depending on wind speed)) remote anamometer that is working great, but I want to implement a reed type anamometer in its place. I have searched rather extensively for some information on taking a reed type anamometer and accomplishing it do the same thing over the Nrf24l01 network with no luck any ideas guys?