> For the complete documentation index, see [llms.txt](https://docs.pikonek.com/pikonek/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pikonek.com/pikonek/guides/how-to-enable-wireless-sub-vendo.md).

# How to enable wireless sub vendo

This guide will show you how to enable wireless subvendo of pikonek.

#### Requirements

NodeMCU ESP8266

Coin Acceptor

Wires

Step 1. Download the subvendo here [PiKonek SubVendo](https://github.com/prod-pikonek/subvendo/releases/download/v0.0.2/coinslot.ino.nodemcu.bin).

Step 2. Download [PyFlasher](https://github.com/marcelstoer/nodemcu-pyflasher/releases/download/v5.0.0/NodeMCU-PyFlasher.exe) and flash the firmware see the image below.

Step 2.1. Select the **Serial Port**. For example, **COM4**. Under NodeMCU firmware, select the downloaded Pikonek subvendo firmware. Under **Erase flash,** select **wipes all data,** then click the Flash NodeMCU

![Step 2. Flash firmware](https://3135771247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvWnxZhpVv08rPtw1DfzP%2Fuploads%2Fr8DBZM3mxfldzVV6k5Ie%2FStep%201.png?alt=media\&token=c8467265-c5bb-46af-be35-a2c167e43157)

Step 3. After flashing the firmware, connect to the SubVendo WIFI. Open your device's wifi connection and connect to the "**PIKONEKSUBVENDO"** wifi name. See the image below.

![Step 3. Connect to PIKONEK SUBVENDO](https://3135771247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvWnxZhpVv08rPtw1DfzP%2Fuploads%2FHvT5eUNE7Pj4jvvhCv2z%2FStep%202.png?alt=media\&token=25b4c00b-89cb-40fc-a498-ab60876dd532)

Step 4. After connecting to PikonekSubVendo, this will open a portal. Note: If the portal didn't appear, open up a browser and type 192.168.4.1.

![Step 4. PIkonekSUbVendo Portal](https://3135771247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvWnxZhpVv08rPtw1DfzP%2Fuploads%2FEH954ehBSMgxgVnZ7LQJ%2FStep%203.png?alt=media\&token=f5b03ed3-8b8e-4995-abc8-6fd1d9a91834)

Step 5. Click on **Configure Wifi.** Connect the subvendo to the main vendo. See the image below. Under **SSID**, provide the SSID of the main vendo.\
Provide a password if the main vendo has a password.

![Step 5.1 Provide the SSID and the subvendo credentials](https://3135771247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvWnxZhpVv08rPtw1DfzP%2Fuploads%2FJrelIRjpcs71lGBoYprT%2FStep%204.5.png?alt=media\&token=93f14fa0-de9a-49be-acd2-480e043e3dba)

Under u**sername and password**, provide the username and password of the subvendo. To view the username and password of the subvendo navigate to PiKonek Admin Dashboard. Go to **Services > Coin Slot > Coin Vendo > Sub Vendo Settings** to view the credentials. Then Click **Save. Note: The username and password of the Subvendo are unique per machine.**

![Step 5.2. Sample Subvendo credentials](https://3135771247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvWnxZhpVv08rPtw1DfzP%2Fuploads%2F4BVxmCnl7O5lxEsmWI2d%2FStep%204.png?alt=media\&token=d30e8518-3328-4671-b7ed-0a5e2ead3ff3)

Step 6. If successful under **Sub Vendo Settings Page.** You will view the connected subvendo.

![Step 6. View connected sub vendo](https://3135771247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvWnxZhpVv08rPtw1DfzP%2Fuploads%2FummGIuODkprUhCnPDufd%2FStep%205.png?alt=media\&token=c3af5de1-a15e-495e-9b71-7c32ca19d680)

Step 7. Lastly, use the connected subvendo and go to **Services > Captive Portal > General**, select network port under **Authentication** and select the coinslot.

![Step 7. Captive Portal Coin Settings](https://3135771247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvWnxZhpVv08rPtw1DfzP%2Fuploads%2FejT8C7PwSDjqTT3HcxVO%2FStep%206.png?alt=media\&token=8723357a-abc5-4f40-b258-cb2b28443230)

Step 8. Configure the Coin Acceptor. Use **D1(GPIO 5)** pin for the coin wire and connect the ground wire to the ground pin of nodemcu. (Optional) You can add a relay on **GPIO 16 or (D0)**.

![Step 8. Nodemcu coin acceptor connection diagram](https://3135771247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvWnxZhpVv08rPtw1DfzP%2Fuploads%2FMs9wEQyrjTqS3CibF9e8%2Fpikonek-subvendo-diagram.jpg?alt=media\&token=4bb11b69-93fa-4aab-81b3-94285278968e)
