User:SJSU MSEE Team CLEAN-TECH

From Embedded Systems Learning Academy
Revision as of 08:18, 29 October 2017 by Rgdrumer (talk | contribs) (Parts List & Cost)

Jump to: navigation, search

Grading Criteria

  • How well is Software & Hardware Design described?
  • How well can this report be used to reproduce this project?
  • Code Quality
  • Overall Report Quality:
    • Software Block Diagrams
    • Hardware Block Diagrams
      Schematic Quality
    • Quality of technical challenges and solutions adopted.

Project Title

IOT Applications in Hybrid Power Generation and Solar Pump Operation

Abstract

Generation of free electric power is very important and timely need oftoday's environment. After generating this power, we store it in the batteries an use it later for different applications. If we talk about agriculture area and amount of money involved, then batteries are not a good option. Batteries are expensive and loss with leakage of power is also more. By using water, we can save money and can generate free power. In the day time with solar pumps we will give water to farm and water tank. In the night time using the saved water from the water tank will generate the free energy using turbines. If we generate more energy, we can save in spare batteries. This project can give new dimension, strength and hope to the agriculture and country side areas and can save lots of money and we can go towards sustainable environment within years. Generation of data will take place with the help of many sensors and these data will be saved in servers for real time action on land. We can control pump, flow of water, generation of power etc. With the help of developed application, we can control every operation from our very own devices. This project has potential to change the way of living within the span of few years.

Objectives & Introduction

Innovation with a novel thought, practical idea and modern IoT technology. The project that can generate more revenue without harming the environment and create a win-win situation for both the sides. Free power with less computation and real-time operation in hand. Imagine our world with this global warming in near future and you will realize the need of time and by this thought, we got this idea of hybrid power generation with use of modern technology that can create a sustainable environment for everyone. Solar and wind have been used in past but the result is not that outstanding. Wind source is not constant on any given day and a solar source is not equal throughout the year. Water is the solution and USA's fresh water source is 90% dependent on groundwater so more scope for development and success of our idea. In agriculture land and countryside we have resources but lack of work with technology that can create a better solution. In our project work we will provide electricity to the farm and water pump in the daytime with the help of solar energy and in the night we will use water as a medium to generate electricity. With the help of solar pump will give water to farm and once we are done with farm water requirement we will throw water to one water tank and this tank will save the sufficient water for half day. In night time with the help of turbine will generate electricity and give it to the entire farm and small house around it. IoT will be driving force behind this project and with the help of different sensors will create lots of data set for different parameters of water, pump and power generation. This data will be saved on the server and through the Android application, we can control each operation of our project in real-time. Data will give strength for future machine learning expansion in our project. Yes, you are thinking about batteries I guess, but batteries are not good for environment and decomposition of batteries is hazardous to the environment. Batteries need to change after few years and that adds more cost to it. The clean and safe solution is what we are providing. The idea for future generations with the sound foundation at the completion of this project will have more advanced and cleaner power generation solution for the majority of this world. In future, we can add fire prevention as an extra feature for safety against wildfires in and around the farm. By developing the pump that can also work as a turbine in reverse direction will save more resources in future years.

Team Members & Responsibilities

  • Hardware Design, Software Architechture, Embedded Systems and Android Application Development
    • Rajul Gupta
    • Sagar Shah
  • IOT Control, AWS Server Management and Data Analytics
    • Aman Shaikh
    • Mayuri Phansalkar

Legend:

Major Feature milestone , Master Controller , Sensor & IO Controller , Android Controller, Solar Motor Drive Controller , Hardware Design Integration , Team Goal

Week# Date Planned Task Actual Status
1 9/16/2017
  • Decide roles for each team member
  • Search IEEE Papers to compute feasibility and implementation of project.
  • Schedule Market research and survey to compute customer requirements and demands.
Complete.
2 9/30/2017
  • Component selection like Solar Pump, Motor, Drives etc.
  • Finalize Embedded Controllers to interface.
  • Prepare Abstract
  • Decided Roles for each team member
  • Searched and finalized IEEE Papers to compute feasibility and implementation of project.
  • Scheduled and done Market research and survey to compute customer requirements and demands.
Complete
3 10/14/2017
  • Major Feature: Implement Free run mode
    • Implement heartbeat messages and initial system bootup sync between modules
    • Inerface the SIM900 Module for DataLogging to SJ board using UART communication
    • Test SIM900 Module Interface on SJOne to receive data from it
    • Study of Android Toolkit for Bluetooth Adapter connections and APIs
    • Study of HC-05 Bluetooth Module
    • Creating APIs for Start/ STOP button requests to write to output-Stream buffers
    • Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection
    • Checking the AT Command sequence for Bluetooth Operation and Pairing
    • Automating the AT Command sequence for Bluetooth HC-05 operation and Android App
    • Design and Order PCB
  • Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller


  • Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I


  • Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board;
  • Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1
    • Ordered RPM sensor
On Track
4 10/21/2016
  • Major Feature: Implement Basic Obstacle Avoidance without maneuver
    • Add all modules CAN messages to DBC file
    • Test steer and speed CAN commands between Master and Motor
    • Implement Obstacle avoidance algorithm
    • Unit Test the obstacle distance and angle obtained and Fine tune the algorithm for minimum error
    • Test whether PWM signal is given to Motor control pin of Lidar before starting scan
    • Configure the CAN communication of sensor readings to the master and other nodes
    • Interface compass module to SJOne board and calibrate the errors
    • find the heading and bearing angle based on mocked checkpoint
    • Test and verify GPS module outdoor to receive valid data and check for errors
    • Calibrate the GPS module error
    • Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD)
    • Install the new RPM sensor module for the Drive Controller
    • Operating motors based on the CAN messages from the Master
  • Added all modules basic CAN messages in can_db
  • Implemented interface files in master controller to handle CAN messages from all nodes to master
  • Implemented Master-Drive controller Integration
  • Implemented Master-Bluetooth controller integration
  • Added all modules basic CAN messages in can_db
  • GPS integrated to SJONE board
  • Added all modules basic CAN messages in can_db
  • MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right)
  • Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/)
  • Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings
  • Master - Drive Controller Interface implemented and tested over CAN; Check "drive" terminal command on Master controller

Planned
5 10/28/2016
  • Major Feature: Implement maneuvering with Android app data
    • Implement maneuvering algorithm to drive steering angle of the servo
    • Implement maneuvering algorithm to control ESC speed
    • Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds
    • Interface the RPM sensor over ADC and validate the readings
    • Writing PID Algorithm for Motor Control
    • Calibrating PID constants according to the Motors
    • Testing the Bluetooth Range and multiple pairing option to establish security of the Master device
    • Test the logic of heading and bearing angle
    • Testing the accuracy of GPS while moving
      |
Planned
6 11/04/2016
  • Major Feature: Implement maneuvering with Android app data
Planned.
7 11/11/2016
  • Major Feature: Implement I/O controls and display
Planned.
8 11/18/2016
  • Major Feature: Implement disgnostics indicators
    • Test when Sensor module is corrupting the CAN bus communication
Planned.
9 11/25/2016
  • Major Feature: Implement advanced design features
Planned.
10 12/1/2016
  • Major Feature: Full feature integration test
Planned
11 12/8/2016
  • Major Feature: Full feature integration test
Planned
12 12/15/2016
  • Update Wiki Complete Report
Planned

Parts List & Cost

SR NO Name Cost Quntity Link
1 12 V PUMP
  • $70
  • 1
https://www.amazon.com/gp/product/B016VX8XBW/ref=ox_sc_act_title_1?smid=A1QBFNU8WH93ZY&psc=1
2 PUMP DRIVE
  • $20
  • 1
https://www.amazon.com/gp/product/B018ICLC3K/ref=ox_sc_act_title_2?smid=A3FV4MIBE1RGSA&psc=1
3 100W 12V Solar Panel
  • $110
  • 1
https://www.amazon.com/gp/product/B018BOK9WU/ref=ox_sc_act_title_3?smid=A2D22KZJD14Y8Y&psc=1
4 Current Sensor - ACS712
  • $4.96
  • 2
https://www.amazon.com/SMAKN%C2%AE-ACS712-Current-Detector-Amperage/dp/B00N2EUPUG/ref=sr_1_5?ie=UTF8&qid=1509160057&sr=8-5&keywords=current+sensor
5 Voltage Sensor
  • $5
  • 2
https://www.mouser.com/Search/Refine.aspx?Keyword=LM741
6 Flow Meter
  • $9
  • 2
https://www.amazon.com/DIGITEN-Sensor-Switch-Flowmeter-Counter/dp/B00VKATCRQ/ref=sr_1_17?s=industrial&ie=UTF8&qid=1509160530&sr=1-17&keywords=flow+meter
7 Light-Intensity Sensor
  • $8
  • 1
https://www.amazon.com/Sparkfun-Luminosity-Sensor-Breakout-TSL2561/dp/B00YNT5SKG/ref=sr_1_1?s=industrial&ie=UTF8&qid=1509160840&sr=1-1&keywords=TSL2561
8 MiniPro Universal Pragrammer
  • $55
  • 1
https://www.amazon.com/Signstek-TL866CS-Universal-MiniPro-Programmer/dp/B074V1NSRM/ref=sr_1_1?ie=UTF8&qid=1509163882&sr=8-1&keywords=universal+programmer
9 Batteries for Controller
  • $12
  • 1
https://www.amazon.com/YOUNGFLY-12000mAh-Mobile-Battery-Charger/dp/B018LMC7EA/ref=sr_1_28?s=industrial&ie=UTF8&qid=1509262725&sr=1-28&keywords=power+bank
10 Beaglebone Black
  • $100
  • 1
https://www.amazon.com/BBBWL-SC-562-BeagleBone-Wireless-Bluetooth-AM335x/dp/B076LL6P77/ref=sr_1_9?s=industrial&ie=UTF8&qid=1509262811&sr=1-9&keywords=beaglebone+black
11 Controller - ATMEGA1284
  • $3
  • 3
https://www.jameco.com/z/ATMEGA8515L-8PC-Atmel-Microchip--MCU-8-Bit-ATmega-RISC-8KB-Flash-3-3-Volt-5-Volt-40-Pin-PDIP_395621.html?CID=GOOG&gclid=CjwKCAjwssvPBRBBEiwASFoVd8Ra78R9W0dpH0qGWi-tzNAnfgiIrnPJfW8x1O8qTtItEws8aUtTThoCI5kQAvD_BwE
12 Turbine
  • $180
  • 1
http://a.co/77Ike20
13 Web Service
  • $50 (For One Months)
  • 1
AWS
14 Sim Card
  • $20 (For One Months)
  • 1
T-Mobile
15 Miscellaneous Expenses
  • $150

Design & Implementation

The design section can go over your hardware and software design. Organize this section using sub-sections that go over your design and implementation.

Hardware Design

Discuss your hardware design here. Show detailed schematics, and the interface here.

Hardware Interface

In this section, you can describe how your hardware communicates, such as which BUSes used. You can discuss your driver implementation here, such that the Software Design section is isolated to talk about high level workings rather than inner working of your project.

Software Design

Show your software design. For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level. Do not show the details of the code. For example, do not show exact code, but you may show psuedocode and fragments of code. Keep in mind that you are showing DESIGN of your software, not the inner workings of it.

Implementation

This section includes implementation, but again, not the details, just the high level. For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash. You can include sub-sections for each of your component implementation.

Testing & Technical Challenges

Describe the challenges of your project. What advise would you give yourself or someone else if your project can be started from scratch again? Make a smooth transition to testing section and described what it took to test your project.

Include sub-sections that list out a problem and solution, such as:

<Bug/issue name>

Discuss the issue and resolution.

Conclusion

Conclude your project here. You can recap your testing and problems. You should address the "so what" part here to indicate what you ultimately learnt from this project. How has this project increased your knowledge?

Project Video

Upload a video of your project and post the link here.

Project Source Code

References

Acknowledgement

Any acknowledgement that you may wish to provide can be included here.

References Used

List any references used in project.

Appendix

You can list the references you used.