Skip to content

PegorK/JagerMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JÄGERMACHINE

CoverRender

The JägerMachine is an IoT shot pouring machine powered by a Raspberry Pi 3B+. It features a full GUI that allows the user to configure the device, pour a shot, and also check previous messages sent to the machine. Once paired with it's own GMail account, the JägerMachine waits for emails containing a secret user defined subject line and a custom message that gets displayed on the screen. Once an email is received a shot is poured :)

Initially this project started as a gift for a friend. We always give each other Jagermeister related gifts as an inside joke, so I figured this would be PERFECT. It started out as a pretty bland render I threw together on Fusion 360 as seen below and slowly started getting more and more complicated.

First Render
Figure 1: First render of the initial design.

Unfortunately I didn't finish the project in time for my friends birthday (sorry Jon :( ), but I continued on and kept adding features and I think It's finally done! Some of the features currently supported are as mentioned above are:

  • Search for available WiFi connections and connect to them (see Figure 2 & 3).
  • Manually pour a shot.
  • Pour a shot via email with a a message that gets displayed.
  • Hall effect sensor to detect when shot glass is placed/removed.
  • Enable/Disable LEDs
Wifi Search Screen
Figure 2.: Available WiFi connections list.
Connect to Wifi
Figure 3: Signing in to a WiFi connection.
The hardware for this build wasn't too complicated. I used a logic level shifter to drive the WS2812B LED Ring since it requires 5V logic and RPi outputs 3.3V logic and an H-Bridge Motor driver module for the pump. The only funky part was that I had to use a Hex-Invert IC since the pins I decided to use on the Raspberry Pi are normally high until they are configured as outputs.

To avoid having a ton of wires everywhere I designed a motherboard PCB that the breakout boards can easily pop onto. The files & schematic for this PCB are in the Hardware folder of this repo. The completed board can be seen below.

PCB
Figure 4: PCB to connect all peripherals.

Overall I'd say I got pretty close to the render and vision I originally had in mind. Below are a couple pictures of the JägerMachine booting and pouring a shot.

Booting
Figure 5.: JägerMachine booting.
Pouring a shot
Figure 6.: JägerMachine pouring a shot.
Side view
Figure 7.: JägerMachine idle.

More detailed info on the Raspberry Pi setup can be found below and more pictures are available in the Images folder.


The build parts consist of:

Raspberry Pi Setup Instructions

  1. Configure Rpi to Kiosk Mode
  2. Install NGINX Webserver (w/ PHP Installation)
  3. Enable Root SSH
  4. Disable BT (optional)
  5. Rotate LCD (optional)
  6. Enable GPIOs
  7. Setup NeoPixel libraries
  8. Setup automount usb flash drive
  9. Add custom splash (optional)
  10. Remove warranty text and other text
    1. Hide all boot text
    2. Hide xorg messages
  11. Give root privilege to custom script runRoot.sh
  12. Copy over the folders in the Software folder (custom_scripts, flags, html, services) onto the Raspberry Pi, placing them in /var/www/
  13. Chmod +x all the scripts under custom_scripts folder.
  14. Link the services in the services folder to systemd
    1. boot_complete.service:
          systemctl enable /var/www/services/boot_complete.service
      
    2. glass_check.service:
          systemctl enable /var/www/services/glass_check.service
      
    3. email_check.service:
          systemctl enable /var/www/services/email_check.service
      
    4. wifi_check.service:
          systemctl enable /var/www/services/wifi_check.service
      
    5. led_boot.service:
          systemctl enable /var/www/services/led_boot.service
      
  15. Edit the emailConfig.py file to your desired email configuration. You must use a GMail account that has two-factor authentication so you can use an app password. More info on app passwords

Contact

Buy me a Coffee!
[email protected]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published