This is the forth week of the wireless weather station project.
The main progress of the lab day was divided into two parts. One was on detecting the signal types of the wind direction and wind speed and the other was programming.
- Detect signal types
To achieve this task, the outside sensor from WH1081 is taken apart as photo shown below:
In terms of the signal type that wind speed sensor sends, it has been clarified that every 120 degrees the outside jacket rotates, it would generate a digital pulse signal. It means that every time the sensor makes a round, three digital pulses will be sent.
Seen from the first photo, the sensor below is the one for wind direction whose inside chip is like:
- Programming
One of the group member focused on writing the code, especially the signal receiving function. The present code is shown as below:
没有评论:
发表评论