Button Mode


Want to use the table but don't want a table on show this is the option for you.

Using a simple push button you can send request to the app with a predefined amount.

Required Item to make it all work:

  1. Android Dervice
  2. Card Reader Zettle or Sumup
  3. Number of arcade buttons
  4. Balkrick Input 8 or raspberry peco

Example Url: http://TABLE_IP_ADDRESS:8080/api/amount?screen=api_amount&amount=AMOUNT

Balkrick Input 8 Setup

  1. Button Config
  2. Press Momentarily
  3. Call an HTTP URL
  4. Enter url using the TABLE_IP_ADDRESS and AMOUNT in the right places using the example url. Amount format should be £2 = 2.00

Raspbery Pi Pico wifi Setup

A custom script has been created allowing you to use a Raspberry Pi Pico. You can download the screen here.

The script allows upto 8 buttons to be controlled by the pico. Arcade buttons are recommend.

The following GPIO pins are being used per button

Button BUTTON GPIO Lamp GPIO
1 2 10
2 3 11
3 4 12
4 5 13
5 6 14
6 7 15
7 8 16
8 9 17

There is optional setup for a single rgb pixel as status led that can in pluged in to GPIO 0

Setting Up Pico

Once you have download the custom script you will need to edit the config.json file. There are a things you need to need to change.

  1. WIFI SSID - The same network as your Android Dervice
  2. WIFI PASSWORD
  3. SERVER URL - This is the ip address of your Android Dervice. You can find the ip address if the device on the about screen of the app
  4. Button Amounts - Any amount can be set (£1-£100). Make your the format is right 2.50 = £2.50 / £2 = 2.00

Once you have made the edits to the config.json file you will now need to copy both the config.json and main.py to the pico.

Plugin the pico in your pc using a usb cable, once connected open your file manger and copy both files.

From there you are ready to go. Just connect your buttons

RGB Status Colors

Color Info
Blue Booting
Orange Connecting to WiFi
Green Connected to WiFi
White Button Pressed
Red Error
Purple Button Lockoup
Yellow No WiFi

Onborad LED

Doing State
Show Blink Booting
Fast Blink Connecting to WiFi
Solid Connected to WiFi
Double Flash Button Pressed
Fast Blink Error
Show Blink Button Lockout

{info} Most arcade buttons leds run at 12v and the Pico runs at 5v. You run the buttons at 5v but the leds in the buttons will be not as bright.

Recommendations for setting up the pico

Wiring the pico is not the easyest. I would recomend using a breakout board with screw terminals and input power. I would recomend this board from The Pi Hut that has everything you need. Pi Hut Board

Other information

When a button is pressed it will flash to show the request was made. Once the button is pressed all the leds on the buttons will turn of not allow buttons to be press for a set time (10s). This can be changed in the config.json