5/21/2023 0 Comments Smart player cup![]() The Smart Cup uses a REST API to register itself with the server and submit sensor updates. The Edison's powerful hardware allowed us to use cutting-edge Web technologies and make our Smart Cup a first-class citizen of the Internet of Things. When a cup's owner has trouble finding a specific cup, we can help by causing the cup's LEDs to blink for an extended period of time. Lastly, we have included a locating feature, to facilitate the cup inventory process. We would like to have an LCD display on the cup's bottom, and the Sensei gaming mouse makes us think that it's possible. We are still evaluating the cost and weight implications of having LCD displays on the final product. Each cup displays its name on the LCD display. To make tracking easier, cup owners can assign names to them. When a cup is enrolled, we generate a default name for it, using the Edison board's serial number. Any user that has a bar set up can claim the cup by entering its code. The code is shown on the LCD display, using an alert background. When a board connects to the SmartCup server the first time, it gets a 10-digit code associated with it. We implemented a solution very similar to Youtube's big screen device activation. To that end, we had to come up with a way to associate cups to users. However, our system is built for a future where millions of smart cups will be connected to our servers. We didn't do that well during the IoT roadshow demo, and water got into the taped area, which caused the sensor to get flakey right before the demo.Ī demo can get away with targeting a single Edison board. WARNING: we found that it is really important to tape the water sensor's wires tightly, as shown in the last picture. In the final product, we envision having the sensor very close to the bottom of the cup, so it triggers when the cup is almost empty, and the bartender should consider offering the customer another drink. This is a direct consequence of the fact that we're using a bigger cup, and the length of the sensor's wire became a bottleneck. Unfortunately, the water sensor is not on the bottom of the cup. This is closer to the final product vision, which has the LED lights embedded in the cup's bottom, so that the bottom glows blue or red discretely. We taped the LED lights close to the bottom of the cup. We were slightly scarred by our IoT roadshow demo, where we had the battery inside a well taped box, and we had to pray to the demo gods that we wouldn't run out of juice during the demo. ![]() This time around, we taped the battery on the outside of the box, so that it can be easily removed and replaced. We happened to have a suitable cup at home, otherwise we would have probably also picked up a large Slurpee cup while at Seven-Eleven. I really like the fact that the plastic case is transparent, as it makes for much cooler pictures than the bank cheques box. We went to Seven-Eleven with our board, and picked the box that fit it the best. Our second prototype uses a significantly sturdier cup, and a Seven-Select Rice Cracker Zen Mix plastic case. We switched to battery power right before we started the demo. We didn't know how long the Edison board could run on a 9V battery, so we used the USB power cable throughout the testing phase. We cut out a strip of the box so we'd have room to plug in the battery right before our demo. ![]() Asides from that, we have one hole for the LEDs, and one hole for the other sensors and the LCD screen. The sensor needs to be in the cup, as deep as possible, so it'll trigger when the cup is empty or almost empty. We made a special hole for the water sensor, because we're constrained by its short wire. All the other sensors lie outside the box. We taped the gyroscope under the board, and we taped the battery near the end of the box. We used transparent tape to keep things in place, and we used nail scissors to poke and cut holes in the box. It has some room on one of its sides, and we used that to store the battery. The board fits very tightly vertically, which is good news for us - it won't move around. In Intel's Boston IoT Roadshow hackathon, we used a box for bank checks, because that's what we had lying around that was roughly the size of the Edison board.
0 Comments
Leave a Reply. |