Skip to content

BusinessCookies/CoffeeMachineProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 

Repository files navigation

CoffeeMachineProject

Jura coffee machine upgraded with a raspberry pi, running a Kivy app for customers management.

In order to interface the raspberry with the coffee machine, we replaced button to order coffee by optocouplers, linked with the GPIO of the raspberry pi.

You'll find two different directories in this project:

  • "App" directory contains every file that runs locally on the raspberry
  • "Server" directory where the website part is stored. It handle databases, customers management, and data analysis.

    Raspberry part:

    In order to interface the raspberry with the coffee machine, we replaced button to order coffee by optocouplers, linked with the GPIO of the raspberry pi.

  • As it is a Kivy application, the visual of any screen is descripted in the file named coffeemachine.kv.
  • <li>Our databases are stored in .CSV files, so CSV.py contains functions that read those files and change them locally.</li>
    
    <li>As we had duplicates when writing in databases with python on the raspberry, we had to rewrite CSV parser</li>
    
    <li>FoncGPIO.py configures the GPIO, and contains all the functions that simulate coffee machine's buttons. </li>
    
    <li>Every 20 minutes, the main call update_network.sh to test the connection, and if the connection is good, this script calls updateDB.py that update the admin.csv database </li>
    
    <li>The file otherclasses.py contains classes used by the main program.</li<
    

    You will find below every link we used in order to configurate raspbian and Kivy and the list of electronical part that we used for this project.

    Here are a few picture of the coffee machine working :

    ScreenShot

    ScreenShot

    ScreenShot

    ScreenShot

    To install Kivy on raspbian and to get started with Kivy: https://github.com/mrichardson23/rpi-kivy-screen

    In order to boot directly on the Kivy app, we used a Daemon, following this tutorial: http://www.stuffaboutcode.com/2012/06/raspberry-pi-run-program-at-start-up.html

    List of electronical parts:

  • Touchscreen : https://www.element14.com/community/docs/DOC-78156/l/raspberry-pi-7-touchscreen-display
  • Power supply: 5V/6A
  • WLAN : http://www.edimax.com/edimax/merchandise/merchandise_detail/data/edimax/global/wireless_adapters_n150/ew-7811un
  • Adafruit Prototyping Pi Plate Kit: https://www.adafruit.com/products/801
  • About

    Upgraded Jura coffee machine with a raspberry, a multitouch screen, and an internet connection

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published