Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
1df2788
Added team name
Abm32 Mar 22, 2024
24aa0a6
expo app created
aagneye Mar 22, 2024
72f8ac8
login page setup
aagneye Mar 22, 2024
889311f
dependicies installed for routing
aagneye Mar 22, 2024
c755acf
removed expo
aagneye Mar 23, 2024
8fa1e61
client module created
aagneye Mar 23, 2024
1e14a5e
final clean code
aagneye Mar 23, 2024
47a91d1
pages and components added
aagneye Mar 23, 2024
258d866
navbar component added
aagneye Mar 23, 2024
e85ef39
Login page added
aagneye Mar 23, 2024
0068a40
styled login page
aagneye Mar 23, 2024
147705e
added routing - login page
Abm32 Mar 23, 2024
3946b95
reorganized Pages
aagneye Mar 23, 2024
654c377
logo and backgorund-color added to Login page
aagneye Mar 23, 2024
f63f85e
connected navbar
Abm32 Mar 23, 2024
3b73b53
resolved merge conflit
aagneye Mar 23, 2024
4c86798
fixed issue
Abm32 Mar 23, 2024
399a5dd
updated color pallete
Abm32 Mar 23, 2024
2f0634b
Home page created
aagneye Mar 23, 2024
139c99c
added landing page
Abm32 Mar 23, 2024
a33f00c
added first component - segmented
Abm32 Mar 23, 2024
297b15f
membership status added
aagneye Mar 23, 2024
93e8e92
membership status added
aagneye Mar 23, 2024
1c52b30
added resource page and components
Abm32 Mar 23, 2024
42aab0f
Resolved merge conflict in package-lock.json
Abm32 Mar 23, 2024
73a7374
fixed home page
Abm32 Mar 23, 2024
d46eb91
stylized home
Abm32 Mar 23, 2024
950e27b
Added membership status to community page
Abm32 Mar 23, 2024
3f2c7a6
aligned community page
Abm32 Mar 23, 2024
8cf3513
stylized home
Abm32 Mar 23, 2024
e7c5fe4
'HARDWARE'
celes1010 Mar 23, 2024
0fb6348
GPS component added
aagneye Mar 23, 2024
a237460
stylized login
Abm32 Mar 23, 2024
778f8dc
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
Abm32 Mar 23, 2024
834fdd8
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
aagneye Mar 23, 2024
2ff9012
fixed dependency issues
Abm32 Mar 23, 2024
ca627f9
membership renewal button edited
aagneye Mar 23, 2024
0e4d697
resolved conflict
aagneye Mar 23, 2024
9804485
stylized resources page
Abm32 Mar 23, 2024
20a27bc
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
Abm32 Mar 23, 2024
151855e
Donation card added
aagneye Mar 23, 2024
791189b
membership thumbnail added
aagneye Mar 23, 2024
30f16de
Firebase integrated- user authentication successful
Abm32 Mar 23, 2024
fa96ab7
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
Abm32 Mar 23, 2024
f34a517
dontaion component added to the community
aagneye Mar 23, 2024
8223c0e
community child component got display flex
aagneye Mar 23, 2024
60b6452
README file updated1
abhi-jithb Mar 23, 2024
96314ed
documents updated
abhi-jithb Mar 23, 2024
588bd52
readme updated..
abhi-jithb Mar 23, 2024
05c4993
readme updated..
abhi-jithb Mar 23, 2024
c06e968
readme updated..
abhi-jithb Mar 23, 2024
b98d537
readme files updated
abhi-jithb Mar 23, 2024
34f359d
readme files updated
abhi-jithb Mar 23, 2024
027ab00
readme files updated
abhi-jithb Mar 23, 2024
7412cc0
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
Abm32 Mar 23, 2024
41b1846
Created BinTrackingDashboard - Firebase Realtime Database Integrated
Abm32 Mar 23, 2024
42bc0cf
about us
abhi-jithb Mar 23, 2024
8dbbd1e
stylized bin tracking system
Abm32 Mar 23, 2024
d125908
about us updated
abhi-jithb Mar 23, 2024
7a5b53a
fixed errors
Abm32 Mar 23, 2024
4e73f24
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
Abm32 Mar 23, 2024
ff30408
aboutus content
abhi-jithb Mar 23, 2024
afc4852
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
Abm32 Mar 23, 2024
268ba9e
fixed errors
Abm32 Mar 23, 2024
721daeb
stylized webpage
Abm32 Mar 24, 2024
cc2b6dd
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
aagneye Mar 24, 2024
f586111
added map component success
Abm32 Mar 24, 2024
0f5c911
Merge branch 'main' of https://github.com/aagneye-syam/Nexus
aagneye Mar 24, 2024
04b8390
README.md edited
aagneye May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added HARDWARE/HARDWARE FINAL.mp4
Binary file not shown.
Binary file added HARDWARE/Recording 2024-03-24 063657.mp4
Binary file not shown.
77 changes: 77 additions & 0 deletions HARDWARE/SMART DUSTBIN
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#include <LiquidCrystal.h>
#include <Servo.h>

const int pirsensorPin = 2;
const int ultrasonicTrigPin = 3;
const int ultrasonicEchoPin = 4;
const int servoPin = 9;

LiquidCrystal lcd(A5, A4, A3, A2, A1, A0);
Servo lidServo;

const int boxHeight = 200;
const int maxGarbageCapacity = boxHeight * 100 * 100;
int currentGarbageLevel = 0;
bool isLidOpen = false;

void setup() {
lcd.print("Smart Dustbin");
delay(1000);
pinMode(pirsensorPin, INPUT);
pinMode(ultrasonicTrigPin, OUTPUT);
pinMode(ultrasonicEchoPin, INPUT);
lidServo.attach(servoPin);
lcd.begin(16, 2);
lcd.print("Smart Dustbin");
}

void loop() {
int pirSensorValue = digitalRead(pirsensorPin);
int ultrasonicDistance = getUltrasonicDistance();

if (pirSensorValue == HIGH && !isLidOpen) {
openLid();
delay(5000);
}

if (pirSensorValue == LOW && isLidOpen) {
closeLid();
delay(5000);
}

// Calculate fill percentage based on ultrasonic distance
int fillPercentage = map(ultrasonicDistance, 0, boxHeight, 0, 100);

lcd.setCursor(0, 0);
lcd.print("Fill Level: ");
lcd.print(fillPercentage);
lcd.print("% ");
lcd.setCursor(0, 1);
lcd.print("Distance: ");
lcd.print(ultrasonicDistance);
lcd.print(" cm ");
delay(1000);
}

void openLid() {
lidServo.write(90);
isLidOpen = true;
}

void closeLid() {
lidServo.write(0);
isLidOpen = false;
}

int getUltrasonicDistance() {
digitalWrite(ultrasonicTrigPin, LOW);
delayMicroseconds(2);
digitalWrite(ultrasonicTrigPin, HIGH);
delayMicroseconds(10);
digitalWrite(ultrasonicTrigPin, LOW);

long duration = pulseIn(ultrasonicEchoPin, HIGH);
int distance = duration * 0.034 / 2;

return distance;
}
33 changes: 26 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,46 @@
![Code ReCET BAnner](https://github.com/CODE-reCET/CodeRECET24/assets/154266304/08736571-0016-4aef-840d-94054de99db7)

## Team Name
name

# Nexus
## Idea
Breif Idea in two three sentences

### In today's world, the dumping of biomedical waste poses a significant threat to public health.
### The improper disposal of medical waste can lead to deadly diseases such as gastroenteric, respiratory, ocular, skin infections, and more. To combat this pressing issue, our team has developed a smart solution - the Earth Bins.
### The problem of bio medical waste dumping can be effectively prevented with our innovative solution - The Earth Bins


## Features
1.
1. Recognition of Public Health Threat
2. Bin tracking System
3. Focus on Technology and Innovation
4. User Friendly Interface

## Link to product walkthrough
[link to video](Link Here)

will be added shortly...

## Libraries used
Library Name - Version

* Library Name - Version
* React - 18.2
* Firebase - 10.9.0
* GoogleMaps react - 2.0.6
* Bootstrap - 2.10.2

## How to configure
Instructions for setting up project
Instructions for setting up
* Clone the repository
* cd<space>directory
* run npm i (in terminal)



## How to Run
Instructions for running
* Open project folder in VS Code or any preferred
* Make sure you have NodeJS installed
* Run "npm start" from terminal
* An open browser window should automatically open if not click on localhost:3000

## How to contribute ?
Features to implement
23 changes: 23 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
70 changes: 70 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
1 change: 1 addition & 0 deletions client/config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GOOGLE_MAP_API=""
Loading