• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ProfessorKazarinoff/MATLAB-temp-sensor: A student project for ENGR114 at Portlan ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ProfessorKazarinoff/MATLAB-temp-sensor

开源软件地址(OpenSource Url):

https://github.com/ProfessorKazarinoff/MATLAB-temp-sensor

开源编程语言(OpenSource Language):

MATLAB 86.3%

开源软件介绍(OpenSource Introduction):

MATLAB-temp-sensor

A student project for ENGR114 at Portland Community College. Uses MATLAB to read a temperature sensor connected to an Arudino over serial.

Problem Statement

For our final lab, our group was tasked with setting up a temperature sensor for the hydroponic fish tank-garden shown to the right. This sensor will be used to monitor the water supply for the garden. Using an Arduino and MATLAB, the water temperature will be recorded over a set amount of time with the temperature displayed at regular intervals. A plot of the temperature as a function of time will also be generated for a visual representation of the temperature vs. time. The temperature measurement setup will be used to monitor the temperature of the water in the hydroponic fish tank-garden.

Hardware Setup

Bill of Materials

component vendor
Arduino SparkFun RedBoard - Programmed with Arduino
Temperature Sensor 10K Precision Epoxy Thermistor - 3950 NTC
10 kΩ resistor Resistor 10k Ohm 1/6th Watt PTH
Breadboard Breadboard - Self-Adhesive (White)
Jumper wires Jumper Wires Premium 6" M/M Pack of 10
Mini-B USB cable SparkFun USB Mini-B Cable - 6 Foot

Fritzing Diagram

Alt-text

Connected Hardware

Arduino is connected to the computer via a mini-USB (connector shown at right of photo). The temperature sensor is connected to the Arduino through a breadboard that incorporates a pull-up resistor to keep input voltage up. Connections as follows: red wire of sensor is input, green is signal, black is ground, these are connected to three different rows on the breadboard. The red, white and black jumpers connect the breadboard to the Arduino with the following ports, 3.3V, Digital-7 and GND (respectively). The resistor is placed between the signal wire and input for the Arduino. Alt-text

Arduino Code

The temp_sensor.ino sketch was uploaded on the Arduino using the Arduino IDE.

MATLAB Code

The temp_sensor.m script was run in MATLAB.

Results

Alt-text

The plot above is a sample output of our code using the temperature sensor and Arduino board. Time is on the x-axis while temperature in degrees Fahrenheit is on the y-axis.

Future Work

This is a great starting point for future work with the hydroponic fish-garden. The MATLAB program could be used to get baseline values for the temperature and use those values for further changes to the conditions. If the temperature is too low, a program could be written to turn on a heater until the water reaches a certain temperature. If the temperature is too high, the same program could be used to turn off the heater. Long term monitoring could be used to find trends that correlated to any number of factors, plant cycle, fish health, plant health, etc. Inconjunction with software from other groups. this garden could be almost fully automated and controlled remotely via a wi-fi connection.

License

GNU General Public License v3.0




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap