# Online Shopping KILLER

Made by Charleen Yang and Shannon Cui

We try to stop online shopping! Especially one of the team members found out she spent 400 dollars on Amazon last month without noticing it=/

Created: February 3rd, 2016

0

## Problem Statement:

There is a saying that “Women always lack a pair of shoes.” Shopping is a woman’s best friend, especially when online credit card shopping is so easy. You don’t even notice when you spend too much money online.

## Goal:

In order to help people control their online shopping habits, we plan to design a product can be put right next to your laptop (which you use to do online shopping), which you will be able to tell how much money you spend every month.

## Process:

1)Find out the pain point

2)Design the product

3)Build the prototype with the circuit

4)Code in Particles

5)Test the coding with the circuit

7)Connect the google sheet with IFTTT

8)Test. Input in google sheet and get feedback in Particle

## Outcome:

Our Project is supposed to connect the google sheet to your account on your favorites tab online shopping website. It will automatically update the information to the particle and then lights give feedback. To indicate the users how much money they have spent on online shopping, we set different colors and number of light:

100 - 200 dollars per month >>> one green light

200 - 300 dollars per month >>> two green lights. Which means it is still within budget.

300 - 400 dollars per month >>> two green lights and one yellow light. The yellow light is a warning.

400 - 500 dollars per month >>> two green lights and two yellow lights.

500 - 600 dollars per month >>> two green lights, two yellow lights and one red light.

600 - 700 dollars per month >>> all of the lights blow. Which means “You are out of your mind!!”

## Reflection:

The goal of this project is clear and useful. If we have more time, we will try to find a way to connect online shopping website accounts to the google documents.

0
``````int pin1 = D1;
int pin2 = D2;
int pin3 = D3;
int pin4 = D4;
int pin5 = D5;
int pin6 = D6;

int prewMoney = 0;

void setup() {
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
pinMode(pin3, OUTPUT);
pinMode(pin4, OUTPUT);
pinMode(pin5, OUTPUT);
pinMode(pin6, OUTPUT);

Serial.begin(9600);

}

void loop()
{

}

void light(int num)
{
for(int k=0;k<6;k++)
{
digitalWrite(k+1, LOW);
}
for(int i=0;i<num;i++)
{
digitalWrite(i+1, HIGH);
}
}

int data(String command)
{
int moneyNew = command.toInt();
Serial.println(moneyNew);

light(0);
if(moneyNew >=100 && moneyNew <200)
{
light(1);
}else if(moneyNew >=200 && moneyNew <300)
{
light(2);
}else if(moneyNew >=300 && moneyNew <400)
{
light(3);
}else if(moneyNew >=400 && moneyNew <500)
{
light(4);
}else if(moneyNew >=500 && moneyNew <600)
{
light(5);
}else if(moneyNew > 600)
{
light(6);
}
return 1;
}``````
Click to Expand
0
Online Shopping KILLER
Shannon Cui