Weather meter


Published on

Published in: Education
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Weather meter

  1. 1. Ryan Massicci<br />Alan Lee<br />Troy Hawley<br />Weather Meter<br />
  2. 2. Product Deliverable<br />Product goal<br />To create a weather meter that displays temperature, wind speed, rain total, and allow the user to manually change brightness level of lights.<br />Target audience:<br />Any person(s) who wants to know the current weather conditions.<br />Those who have weather related jobs.<br />Hunters or fisherman who want to know how windy or rainy it is.<br />
  3. 3. Project Management<br />Microsoft Project was initially used to manage the project.<br />Tasks were divided as equally as possible amongst team members.<br />Tasks were completed in parallel when possible.<br />Jira was used to manage tasks<br />The scrum master helped monitored task progress.<br />Weekly “sprints” were completed with various goals.<br />
  4. 4. Project History<br />Determined the scope of the project.<br />What has to be included.<br />What we would like to include (wish list).<br />Divide work amongst group members.<br />Created the circuit to interface the Weather Meter with the MAVRK.<br />Created light dimmer custom component.<br />Created GUI on DE2 touch screen peripheral.<br />Based on Group 1 Winter Quarter GUI.<br />Pixel Buffer not used.<br />Interfaced Weather Meter with MAVRK via the circuit created.<br />Interfaced the MAVRK with the DE2 with RS232.<br />
  5. 5. Prototype<br />SolidWorks was used to create two prototypes for an indoor and outdoor module.<br />The indoor model was to simply have a simple thin touch screen design.<br />The outdoor model was designed to maximize its ability to gather solar power.<br />The models were made with steel.<br />
  6. 6.
  7. 7.
  8. 8. Weather Meter<br />Sparkfun Electronics<br />Cost: $69.95<br />Anemometer (wind speed)<br />Wind vane (wind direction)<br />Rain gauge<br />
  9. 9. Weather Meter Operation<br />Interfaced with two RJ11connectors<br />The rain gauge is a self emptying tipping bucket. After 0.011” of rain, a contact closure occurs (switch). This is a digital signal.<br />The anemometer is a cup-type that closes a contact as a magnet moves past a switch. <br />The wind vane is composed of 8 switches with each connected to a different resistor. The vane’s magnet can close 2 switches at once, allowing 16 different positions to be indicated. An external resistor can be used to form a voltage divider producing a measurable voltage output.<br />
  10. 10. Weather Meter Circuit <br />A circuit was made that included two RJ11 connectors.<br />Connector 1:<br />Pins 2 and 5 represented the wind vane<br />Pin 2 was connected to ground.<br />Pin 5 was connected to an ADC and a resistor which was connected to power.<br />Pins 3 and 4, which represented the anemometer acted as a switch.<br />Pin 3 was connected to power.<br />Pin 4 was connected to GPIO on the MAVRK and a resistor, which was connected to ground.<br />
  11. 11. Weather Meter Circuit (Continued)<br />Connector 2:<br />Pins 3 and 4, which represented the rain gauge acted as a switch.<br />Pin 3 was connected to power.<br />Pin 4 was connected to GPIO on the MAVRK and a resistor, which was connected to ground.<br />
  12. 12. Weather Meter Circuit (Continued)<br />
  13. 13. Dimmer Module<br />A dimmer module was made in order to allow the user to manually or automatically change the brightness of the LEDs.<br />This module took in an input integer from 0 – 9 and converted that to a respective duty cycle value from 0% to 90%.<br />The respective duty cycles represented the brightness levels.<br />
  14. 14. MAVRK<br />
  15. 15. MAVRK<br />Modular and Versatile Reference Kit.<br />Allows for quick development and evaluation of prototypes.<br />MAVRK system is based around a motherboard and has multiple connectors for RF, AD/DA, transceivers, and signal conditioning interfaces.<br />Programmed with C with IAR Embedded workbench.<br />
  16. 16. MAVRK<br />The weather meter circuit is connected to the MAVRK through SCI(signal conditioning interface) and AFE(Analog Front End)<br />Wind Direction SCI I2C input AFE UART output<br />Wind speed AFE GPIO input AFE UART output<br />Rain Gauge AFE GPIO input AFE UART output<br />Temperature On chip temp sensor AFE UART output<br />
  17. 17. MAVRK C Code<br />Wind Speed<br />A count was incremented on every revolution of the anemometer. After one second the number of revolutions is checked and multiplied by 1.49 MPH. ( One revolution per second = 1.49MPH)<br />Temperature <br />The MSP430 microprocessor has an on chip temperature sensor. This sensor is constantly read and sent to the GUI once every second.<br />Rain Gauge <br />A buffer holds the last six readings for rain depth. Every ten minutes a new reading is written to the buffer. This allows the system to always show the rain depth for the last hour.<br />
  18. 18. MAVRK to DE2 Communication <br />An RS-232 Cable is connected between the MAVRK and DE2.<br />A character is sent from the DE2 to the MAVRK corresponding to the button pressed on the GUI.<br />A character array is sent from the MAVRK to the DE2 containing the data that corresponds to the input character.<br />The data is sent from the MAVRK once every second.<br />
  19. 19. DE2 GUI <br />DE2 code is written in VHDL and C.<br />VHDL simply maps the pin connections (SDRAM, GPIO, LEDR, etc).<br />C code handles all data input from the RS-232 Serial port.<br />Data is received in the C code using scanf() and reads for 4 characters which are passed as ASCII represented numbers.<br />A switch statement is used to draw the correct number to the LCD Touch screen because only images can be drawn.<br />
  20. 20. DE2 GUI<br />The LCD Touch screen listens for a touch interrupt and checks to see where the touch location occurred.<br />Based on this (x,y) position the code determined the next step of operations.<br />The entire GUI was made from images that were converted into .h files and included into the project.<br />
  21. 21. Future Additions<br />Implement the wind vane from the weather meter.<br />Implement a light detection sensor and set up an automatic dimming function.<br />Implement a humidity sensor and display it on the touch screen.<br />Outdoor temperature and more accurate indoor temperature.<br />