Skip to content

cdeeran/bartender

Repository files navigation

Bartender

Table of Contants


Bartender

Short story... I was hired right out of college as an Embedded Software Engineer lacking A LOT of knowledge about writing software to interact with hardware. Through a lot of on the job training, I got comfortable in this field and have found a love for it. I got an idea one day for a Bartender project because I wanted do something with my Raspberry PI's I have received at Hackathons and wanted to deep dive and experiment in the world of Electrical Computer Engineering (ECE) to help strengthen my skill.

After doing some research I found this project by hackster.io that I have used as the hardware template for my Bartender. Their YouTube tutorial and documentation helped a lot to build the base.


Bartender UI

After using the Bartender for a few months I decided to give it a little make over. Here is the new UI design of the Bartender with the introduction of Spotify! home-screen home-screen home-screen


Spotify

Using the Spotify Python API, Bartender is now equiped to play on your Alexa "every where" speaker group! It has the ability to control play back, as well as a general search and queue up songs.

spotify-screen


My Hardware

I used majority of the hardware listed in the link above. There are a few differences, I have listed them below.

I found issues with the step down motor that was used in the template, so I purchased the following one instead.

I could not find jumper wires long enough so I just went down to my local ACE Hardware and got Red and Black Copper. It is important that you get that you get 18-16 gauge wire. Anything bigger will not fit into the Power Relay and Power Distribution boards

I did not add LED lights to the bartender because I added the 7" Touchscreen and did not have enough 5V GPIO pins to support. But here is a link to the LED lights I originally bought.


Common Hardware


3D Prints

I used all the 3D printed parts listed on Pateon except for the items needed for the LED front panel.

I used Tinkercad to create a 7" Touchscreen Mount. The legs to the mount are not long enough, but that was my first 3D print design and it still works.

.stl files can be found in assets/documents folder.

Big shoutout to my buddy Michael Kubiak for printing all the parts for the Bartender!


Software Dependencies

The following packages are in requirements.txt.

To install packages run: pip3 install -r requirements.txt

On the Raspberry Pi only

  • RPi.GPIO

    python3 -m pip install RPi.GPIO

    This package is unsupported on Mac and Windows systems. May already be installed on raspberry pi.

    You can uncomment RPi.GPIO in the requirements.txt on Raspberry Pi to complete the full installation.


Launching Bartender

To launch the Bartender application, cd into the bartender directory and run:

Windows

python main.py

Mac/Linux

python3 main.py

For executing on the touchscreen, drag and drop the bartender.sh file to the desktop and double tab to execute. You will be prompted to how to execute, select Execute in Terminal. This will launch the application from the terminal and will provide console output for debugging if needed.


Bartender Simulation

The sim environment is there to execute the Bartender functionality without talking to hardware. This means the you can run and test your code on different platforms without needing the GPIO interface. The GPIO interface will be simulated and will pretend to execute for the same duration as it would when being executed for real.

To launch the Bartender application in the sim enviroment, cd into the bartender directory and run:

Windows

python main.py --sim

Mac/Linux

python3 main.py --sim

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages