WEAtheR Smart
  • Home
  • About
  • Our Team
  • Mechanical Design
  • Electrical Design
  • FIRMWARE & SOFTWARE
  • Gallery

Electrical Design


Picture

Stepper motor

We used a bipolar stepper motor to turn the disk of our smart desk. The model we used  was nema 17 stepper motor, 17HS24-0644S.

The following are the properties of the motor we used
​
(1) step angle: 1.8 degree
(2) Holding torque: 60Ncm(85oz.in)
(3) Rated current/phase: 0.64 A
(4) Phase Resistance: 15ohms
(5) Recommended voltage: 12-24V
​
Since we used a low current, high torque stepper motor, we were able to use an arduino motor shield as the stepper motor driver. For the power supply we used 12V-5A power wall adapter. 

IR sensor

4 IR sensors are used in this project. The IR sensors are attached under each of the hangers on the turning disc. Each IR sensor checks whether an item is hanging or not.
​
Picture
Picture

Calibration

In order to accurately use IR sensors to check if an item was taken, we used the difference of the current and previous IR distance values.  The sensor checks the distance of an item every 0.3 seconds and then compares the value with the previous value. To make the sensors work properly, we calibrated the sensor and found the appropriate difference of the sensor value, which was around 40.

Display

We showed the weather forecast and other useful information using a display. We made the GUI of our weather forecast using the PyGame package of python.​ The display was connected with the raspberry pi using an HDMI cable.
Picture
Picture

Arduino motor shield

For the stepper motor driver, we used arduino motor shield. 
Followings are the specs of the motor shield
(1) TB6612 MOSFET DRIVER(4-H Bridges)
(2) 1.2 A per bridge(3A peak)
(3) motor voltage 4.5V-13.5V

​The motor shield has good documentation, numerous libraries, and it is easy and safe to use because it stops automatically if there is excess current flowing. However it endures relatively low current (1.2A) compared to other stepper motor drivers  and doesn't work with stepper motors with rated voltage under 3V. 
Our team used a 12V 0.64A stepper motor with 15 ohms phase resistor. So, we were able to use the motor shield as the stepper motor driver.

Raspberry-Pi

The raspberry-pi retrieves the weather forecast and shows it on the display. It works as a master of the entire system that controls the arduino according to the weather forecast and user inputs.  
Picture
Picture

Integrated Circuit

The arduino controls the stepper motor and 4 IR sensors. The arduino motor shield is connected on top of the arduino to control the stepper motor. The IR sensors are connected to analog pins of the arduino, returning distance sensor values to check whether certain items are taken or not.
Finally the arduino is controlled by the raspberry pi, functioning based on the weather information provided by the raspberry pi.

Temperature Sensor Circuit

The temperature sensor we used is the DS18B20 "1-wire" sensor.
Through Raspberry Pi cobbler, we were able to read temperature data directly on Raspberry Pi. To do this, we have followed the documentation set by Adafruit.
The circuit is illustrated on right.
Picture
Learn more about the other systems!

Mechanical Design
Firmware /
​Software Design
Create a free web site with Weebly
  • Home
  • About
  • Our Team
  • Mechanical Design
  • Electrical Design
  • FIRMWARE & SOFTWARE
  • Gallery