My roommate came from Shenzhen, a city located in the Southern part of China that is normally warm throughout the year. He was used to the good weather and could not get along with Pittsburgh's cold and gloomy days, becoming reluctant walking outside during the winter. Our apartment is quite far from the bus station, so every morning he has to plan his walk early so that he won't miss the bus and, at the same time, he can catch the bus at the perfect timing without waiting for the bus in the coldness for too long. Because my roommate has a constantly changing schedule (class doesn't start at the same time everyday, sometimes he has to leave early for a meeting, etc.), he has to pull out his phone every morning when he thinks it may be the good timing to leave and check whether the bus is coming, but he feels reluctant to do so.
IoT device is rather simple: it is connected to one photoresistor, as the switch to turn the device on, and one RGB LED light. My roommate often keeps the curtain in his room closed throughout the day. When he sleeps at night, the room is dark. When he wakes up and turn on the light, the device will turn on, check the estimated arrival time of 71D bus route. When he leaves and turn off light, the device would also turn off.
2. Problem and pain point identification
4. Connect the photoresistor and one LED light
5. Test code
6. Unplug the LED light and connect the RGB LED light
7. Get API key from Port Authority and create Webhook integration on Particle Console
8. Use Neopixel library for Particle, adjust and test code
When the bus is more than 10 mins away, the RGB LED would light up in green, denoting that time is sufficient; when the bus is less than 10 mins but more than 5 mins away, the light would glow in yellow, letting the user know that he or she should get ready and leave; when it is less than 5 mins, the light would blink in red, meaning that he would not be able to catch the bus (our apartment is 5 mins walk away from the bus stop).
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .