Project

# Title Team Members TA Documents Sponsor
42 Household Water Usage Monitoring System
Advait Renduchintala
Daniel Baker
Jack Walberer
Pusong Li design_document1.pdf
design_document2.pdf
proposal1.pdf
proposal2.pdf
Team Members:
- Daniel Baker (drbaker5)
- Jack Walberer (johnaw4)
- Advait Renduchintala (advaitr3)

# Problem
In our apartment, we pay an additional water fee if we go over a certain threshold. When we do, we have no specific information about where we can reduce our water usage. For example, we would like to know if one specific shower is using more water than other showers so that we can tell that roommate to reduce their shower duration. In addition this product can encourage a reduction in water usage in general, which is good for the environment.

# Solution
We plan to make an IoT Water Usage Monitors that individually record the usage of an individual water source. These monitors will attach to the water source (shower pipe, faucet, etc) and measure the water usage over the selected period of time. The client will have a dashboard listing their water usage monitors in their household, where they can name each device for easier identification. This dashboard will also show each device’s water usage so they can quickly identify the high water usage sources. Each device will have an onboard information display with the client’s name of the device and its respective usage.

Describe your design at a high-level, how it solves the problem, and introduce the subsystems of your project.

# Solution Components

Ultrasonic Sensor




Explain what the subsystem does. Explicitly list what sensors/components you will use in this subsystem. Include part numbers.

## Subsystem 1 - Water Source Attachment Subsystem (Hardware)
Each device will attach to the water source via a clamping mechanism. The clamping mechanism allows for easy attachment to various pipe sizes.






## Subsystem 2 - Water Flow Rate Measurement Subsystem (Hardware & Software)



Each device will have a mounting brace and two Ultrasonic Sensor integrated with the clamping mechanism to measure the flow rate through the pipe. When we design the mounting braces for our bathroom faucets we will measure the diameter of the outer pipe. This will be used to get the cross sectional area of the inner pipe, while the ultrasonic sensors will measure the difference in time between sending and receiving signals to each other. Using this difference in time, we can use the following equation to calculate the velocity of the water in the pipe:
v = [c2 * (T2 - T1)] / [2 * L* cos(theta)].

Where v is the flow velocity of the fluid.
Where L is the length of the ultrasonic path between the transducers.
Where c is the speed of sound in the fluid.
Where theta is the angle between the ultrasonic path and the direction of flow.
Where T2 - T1 is the transit time difference between the ultrasonic sensors/transducers.

Ttotal The overall time for the ultrasonic pulse to travel from the transmitting transducer to the receiving transducer.
Twalls The time taken for the pulse to traverse both pipe walls.
Tfluid The time taken for the pulse to travel across the fluid inside the pipe.
Ttotal = Twalls + Tfluid
Twalls = 2 * (dwall / cwall)
Tfluid = Ttotal - Twalls
Dinner = cfluid * Tfluid
Dwall is pipe thickness that will be measured manually before we mount the monitoring system. To get this we need to manually measure Dwall to use the equation as well as mount our monitoring system.

Our unknown/what we’re trying to figure out is the Dinner which will be used for figuring out the flow rate.


Combining this velocity and cross sectional area, we can find the flow rate: Q = vA. All these computations will be done via the onboard microcontroller ESP32 with wifi.

## Subsystem 3 - Water Usage Dashboard (Software & Hardware)

The water usage dashboard will be hosted on a website and will include a table/chart with descriptive information showing water usage statistics. This website will be constructed using React, Node, JavaScript, HTML/CSS. We will use GitHub pages to host this website so it can be easily accessed locally by the microcontroller and the rest of Subsystem #2.

## Subsystem 4 - Onboard Information Display (Hardware)

We plan using a LCD Display that’s relatively small because we want to show the current water usage and the unique ID we assign the specific monitor. This LCD display will be connected to the microcontroller so that the data can be fetched from the webpage where the data will be stored and updated accordingly.



# Criterion For Success

Describe high-level goals that your project needs to achieve to be effective. These goals need to be clearly testable and not subjective.

-Devices accurately measure the amount of water from the sink each time it is turned on, when the sink is shut off, device resets. To test this we will fill ½ gallon of water using the sink, time it and ensure we follow a scientific process to ensure we get accurate and unbiased flow results. We will then use what our monitoring system outputs to compare to the actual amount to ensure that the system works as intended.

-Devices connect to each other and successfully send measurements to the website. To ensure this, we will first set up the webpage with code that can be tested independently of the system. We will then also test whether the microcontroller is sending the accurate data to the webpage. This will ensure that the webpage works and also ensure that the microcontroller is sending accurate data.

Autonomous Sailboat

Riley Baker, Arthur Liang, Lorenzo Rodriguez Perez

Autonomous Sailboat

Featured Project

# Autonomous Sailboat

Team Members:

- Riley Baker (rileymb3)

- Lorenzo Pérez (lr12)

- Arthur Liang (chianl2)

# Problem

WRSC (World Robotic Sailing Championship) is an autonomous sailing competition that aims at stimulating the development of autonomous marine robotics. In order to make autonomous sailing more accessible, some scholars have created a generic educational design. However, these models utilize expensive and scarce autopilot systems such as the Pixhawk Flight controller.

# Solution

The goal of this project is to make an affordable, user- friendly RC sailboat that can be used as a means of learning autonomous sailing on a smaller scale. The Autonomous Sailboat will have dual mode capability, allowing the operator to switch from manual to autonomous mode where the boat will maintain its current compass heading. The boat will transmit its sensor data back to base where the operator can use it to better the autonomous mode capability and keep track of the boat’s position in the water. Amateur sailors will benefit from the “return to base” functionality provided by the autonomous system.

# Solution Components

## On-board

### Sensors

Pixhawk - Connect GPS and compass sensors to microcontroller that allows for a stable state system within the autonomous mode. A shaft decoder that serves as a wind vane sensor that we plan to attach to the head of the mast to detect wind direction and speed. A compass/accelerometer sensor and GPS to detect the position of the boat and direction of travel.

### Actuators

2 servos - one winch servo that controls the orientation of the mainsail and one that controls that orientation of the rudder

### Communication devices

5 channel 2.4 GHz receiver - A receiver that will be used to select autonomous or manual mode and will trigger orders when in manual mode.

5 channel 2.4 GHz transmitter - A transmitter that will have the ability to switch between autonomous and manual mode. It will also transfer servos movements when in manual mode.

### Power

LiPo battery

## Ground control

Microcontroller - A microcontroller that records sensor output and servo settings for radio control and autonomous modes. Software on microcontroller processes the sensor input and determines the optimum rudder and sail winch servo settings needed to maintain a prescribed course for the given wind direction.

# Criterion For Success

1. Implement dual mode capability

2. Boat can maintain a given compass heading after being switched to autonomous mode and incorporates a “return to base” feature that returns the sailboat back to its starting position

3. Boat can record and transmit servo, sensor, and position data back to base

Project Videos