Update: Week of Feb 17th

Tasks Completed:

During the week the coding sub team tested and coded a PWM signal that was capable of reaching a frequency of 500 Hz and have its duty cycle regulated. The actuator states were finished as well so that when an email is received by the modem, the code will determine what outputs to send to the actuator. The bash script was also coded to recognize the format of incoming emails and parse them for particular values and keywords.

The shaft for the wind-direction sensor was built which contained a threaded axle and three plates that were cut in specific patterns so that they could be used to describe the wind’s direction in 3 bits using gray code and infrared sensors.

Tasks to be completed:

The housing for the wind direction sensor as well as a shaft to allow easy rotation still needs to be built. The wind direction sensor also requires a static shaft to mount the infrared sensors, this will also have to be built. We also need to assemble and solder the circuit for the gray code detector. The final steps also include integrating the completed hardware with the software and making sure inputs can be read. We will also need to calibrate input data to display meaningful information.

Standard

Update: Week of Feb. 10

The team is working under a software sub team and hardware sub team. The software team is tasked with creating the code based back bone of the project while the hardware sub team works on the actuators and sensors.

Accomplished:

  • Prepared code for reading all the planned weather sensors (temperature, wind direction and wind speed). After calibration, the conversion factors will be implemented and then the sensor component will be complete besides soldering.
  • Finalized the email format so that it is easy to implement with the bash scripting
  • Prepared test code for the alarm system of the actuator. It theoretically should pulse a timer that will allow the alarm to have varying rates depending on the emergency.
  • Still need to determine if a PWM signal can be generated so that a servo can be used for actuation, otherwise an array of LEDs will be used to indicate the direction the windmill should face
  • Improved the bash script which retrieves and sorts emails from the Orbcomm
  • Implemented process to run the script at set intervals
  • Implemented conditional statements in the script to send various tasks to the actuator via email
  • Created excel file which will automatically update with data from text files as new emails from the Orbcomm arrive
  • Created housing for the wind speed sensor, and designed and built the cups and shaft for the same
  • Designed shaft for wind direction sensor

Challenges:

The challenges faced mostly involved the design of an algorithm that will sample all the sensor inputs and will choose an appropriate actuation based those inputs and the remote user’s email. Learning and implementing bash scripting had a steep learning curve. This meant slow progress at the outset but after more experience with the process, the team is making better progress.

Next Step:

  • Build the appropriate parts for the wind direction meter that utilizes gray code to divide the direction of the wind into 3 bits
  • Calibrate wind direction meter, temperature and wind speed
  • Build the housing for the actuator
  • Solder any circuitry
Standard

Update : Week of Feb. 3

Lab 3 + 4:

Objectives:

  • Complete modifying DemoAppFFS
  • Completed coding timer functions (wait functions)
  • Wrote code to receive time from satellite and display it
  • Received and parsed incoming Email (in progress)
  • Bash scripting to create text file
  • Designed and built wind speed sensor
  • Designed and tested temperature sensor
  • Proved concept  of operation for wind direction sensor

Process:

The team continued to work as sub-teams, one dealing with actuators and sensors and the other working on the lab and the software component. This allowed us to cover more ground towards project completion and maximize each members productivity. The software sub-groups modified the AppFFS to read in our voltage level from the analog input and save it in the crumbs variable structure under longitude. Once the voltage was stored it was then read from flash memory and sent via email to our gmail account.

Our coding sub-team finalized the receiving email code so that the remote user can now send emails to the modem in order to change the state of the actuator. This process still needs to be automated by means of scripting; however, the template has already been written for that part of the code. Functions for parsing the receiving email were used to decipher the email in order to change the outputs to the actuator. A polling sequence was also built which cycles through the multiplexer selects in order to sample all the inputs from the weather sensors. Timing for this component still has to be fixed so that each email of the voltages of the various sensors is in sync with the readings.

The hardware sub-team implemented two different approaches to measure wind speed. The first approach was to use a optical sensor and a spinning 4-tooth gear on the rotating shaft to give the optical sensor pulses of different frequencies depending on the rpm of the shaft. This approach had the benefit of being near friction less as the shaft we used was from a VCR drum. However, this approach required a frequency to voltage converter and the turn around time to buy and implement that chip was very long. Our second approach, and the one we will be using, was to drive a DC motor as a generator via the rotating shaft. This approach was easily implemented and could be calibrated very quickly. We have both approaches on the sensor and we will reconsider the optical sensor closer to the deadline.

         

The temperature sensor was very easily tested. We used the LM335 chip, which acts as a voltage divider and the resistance of the chip changes with temperature. We acquired the chip and tested it on a breadboard to check its temperature dependencies. It performed admirably and the next step in this direction will be to calibrate the sensor to a temperature scale.

The wind direction sensor is an added feature the team is considering. We want to find a highly cost and time effective way of implementing the sensor. We are considering a multi turn potentiometer to be used as a voltage divider, this will be very straight forward to implement. We understand that there are some limitations to this approach, mainly that the potentiometer will move out of its range of operation after 10 revolutions. Based on the wind direction prevalent in Vancouver, we can see that wind direction often follows a very reliable daily and seasonal pattern. Therefore, it will be a considerable amount of time before the wind direction sensor stops functioning and will need maintenance. Also this maintenance will not be very time or cost intensive and can be done locally on site. Further more, the sensor itself will be very simple and resilient to the elements.

Challenges:

Debugging and troubleshooting the code takes a large portion of lab time as it relies on satellite communication. Due to this, testing a new version of the code can take a long time. The modem also seems to get a “backlog” of emails that are going to be sent out. This will most likely be fixed by just decreasing the time each email is sent out and to ensure that no more emails are sent until the current one has been received by the remote user.

Team Meeting Summary:

The team met on 3rd February to discuss the sensors and actuators we wanted to implement and how we wanted to implement them. There was also a discussion about how we would implement them in the code. It was also a time to set deadlines for various deliverables and assign them to responsible parties.

Standard