Hack Weeks at iZettle

  • A PIR Motion sensor is attached to a Particle Photon microcontroller. When movement is detected for a certain time, an event is sent to the Particle Cloud indicating that the table is Busy. When no movement is detected for some time, a “Free” event is sent.
  • Events with the current score are also sent when the table buttons are pressed.
  • From the Particle Cloud, we configured two WebHooks. One sends the Busy/Free information to a Lambda function. This Lambda saves the current status (busy/free) in a database. The other one sends the events as they come to the small Python server that is running the score Dashboard.
  • The Dashboard shows real time information about the status of the table, the current score and time played.
  • We created a slack command /pingisstatus that uses the Lambda function so that anyone can know if the table is free or busy without moving from their chairs.
  • A device showing the total sales of the day. The device was attached to a Santa Claus that would start dancing when a purchase greater than 1000SEK was made (remember, this was before Christmas).
  • A second screen for the merchant, facing the customer. This would help when introducing emails of phone numbers to get purchases receipts, for example.
  • Enabled authentication using a YubiKey to our internal admin system.

--

--

Machine Learning Engineer - I use writing as a tool for making sure I understand the topic I’m writing about, and hopefully to inspire and grow others.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Guillermo Carrasco

Guillermo Carrasco

17 Followers

Machine Learning Engineer - I use writing as a tool for making sure I understand the topic I’m writing about, and hopefully to inspire and grow others.