[music]
hi guys this is jhun from PinoyTechTutorials
giving you another quality tutorial for us filipinos
This is a beginner's guide
this is not the build for selling or production.
The puropose of this tutorial is just to get you started
give you confidence that you can build your own wifi vendo
even if you have little or no experience in electronics at all
so without further ado let's get into it!
ok guys Ill explain first all the parts
before we assemble it.
its better that you understand, the function
and why we put it in the system.
upgrades will be easier later
because you understand why the parts are there that we put in.
so lets start, lets start with our extention cord
This one is basic, this is just the power line from our wall socket
that were going to use for our power supplies.
next is our 12v power supply 3 amp
its job is to supply power to our coinslot
remember, piso wifi has two power supplies
we have our 12 volts
and we have
our 5 volts
12 volt's job is to power our 
unversal coinslot
Next is our 5 volts adapter, 3 amperes
its job is to power our raspberrypi
so 5 volts powers raspberry pi,
12 volts powers the universal conslot
Next is our Female DC jack adapter
the use of femal dc jack adapter,
is to easily mount our 12volts wire comming from the universal coinslot
it goes like here to here, push it in.
and then this is the coinslots 12 volt wires
so we can easily attach the power cables
the black on the negative terminal
and the red on the positive terminal
next is our universal coinslot
what does it do?
its job is to authenticate
the coins that our customers will put in.
is it a valid coin or not.
if its a valid coin it will be accepted
if not, it will be rejected.
thats the job of our universal coinslot.
and its other job is to tell our board
universal coinslot tells how much our customer paid.
if our customer inserts 5 pesos coin
this coin slot will tell our raspberrypi
that our customer inserts 5 pesos
Ill discuss it more later on the build.
next is our raspberry pi
this is a credit card size
single board computer
which we can install an operating system
just like our desktop and laptop
this is used by college students for their thesis
specially ECE, this is the board that they are using
next is our sd card
what is it for?
why is there a sd card?
on computers, we have our physical hard drive
rapsberry pi's hard drive
is this sd card
this is where we install our operating system
using
our computer
well burn the image here on the sdcard
and the we'll insert it to our raspberry pi
for it to boot.
next is our usb to lan adapter
its job is to add a LAN port to our raspberry pi
as you can see
this is the LAN port of raspberry pi
there is only one ethernet port
in piso wifi we need two ethernet port
so to fix it, to double the raspberry pi's ethernet  port
we add a USB to LAN adapter
next is our access point or router
so whats its job?
its job is to broadcast the wifi signal
once it broadcast the wifi signal
cellphones will detect our piso wifi vendo
next is our
Lan Cables
these are the cables that will connect our networking equipments
and also we need
Dupont wires
its job is to make it easier connect the wires
to our raspberry pi's pins.
and then we have our
JST connector 2.0
its job is to securely connect the wire from raspberrypi
to our enable/disable pin of our universal coinslot
this is where we connect it.
next are the tools required.
our wire cutter
you dont really have to have a wire cutter
we have very little amount of wire to cut
but its good if you have it.
but if you have a scissor it will also work
then we have our
screw driver
the smallest one you can get.
we need it here on female dc jack adapter
we are going to use it to turn the screws of this.
next is our card reader
this is where were going to insert our sd card
then attach it to our computer
to burn our image that were going to use
ok guys thats the complete hardware list we'll need for this build.
next are the required software
guys the software we'll use for this build is adopisoft software.
why adopisoft? there are a lot of other software in the market today.
well, first of all Adopisoft is our sponsor for todays video.
but dont worry I wont be bias about it
even if Adopisoft doesnt sponsor this video
I will still use Adopisoft
because I believe that Adopisoft
is the most beginner friendly software in the market today.
Adopisoft started it all.
He is the one who made the first piso wifi vendo software
Adopisoft is complete with website, wiki, and e-mail support.
Adopisoft also have a big community in facebook.
if ever you'll be stuck in trouble
there are a lot of people that can help you out.
As personal experience, Adopisoft is so easy to use.
Im just like you when I started, 1st time builder
and it was so satisfying that my 1st builds worked right away.
and until now, the machines I build are still working.
without having too much problems.
I'm not saying that you should only use Adopisoft software.
you can explore all the software
available in the market today.
but...
if you are a first time builder
I highly
Highly recommend
Adopisoft as your software for
your first build.
and with that out of the way
I will now show you how you can flash
Adopisoft software into your sd card
ok guys, so after we download all the software
we need to connect our sd card and our sd card reader to our computer.
ok guys, after we download all the software
you should have it on your desktop
and also our Adopisoft software
I'll put it here on our desktop
for ease of access.
double click on balena etcher
click on select image
Click on desktop
and then click on Adopisoft
and then finaly click on open
Click on flash
then the flashing will start.
wait for it to finish.
here at the end you will see flash complete,
and you have one successful device.
ok guys so lets start the build
when Im making piso wifi, I always start with the universal coin slot.
Let's open the box
What you'll get in the box is
cable
coinslot
and then screws for mounting.
this is our coin slot
as you can see
it has labels
this is terminal pins where the wires connects.
you can always refer to this labels
dc 12 volt
coin
ground
and counter
its all labeled
you will not have a hard time.
this wire is connected like this.
this longer part is facing down,
and this is the lock.
and then you will see
that if your line it up here
you will immediately see that the label is dc 12 volt
the red wire is on top
and also you can't put it in the wrong way
because of this lock
you cannot put it like this it wont go in.
this is how it should look like
12 volt dc, red
Coin, White
Ground, Black
and then Counter is Grey
actually I dont use the grey wire.
coz i dont have counter on my piso wifi vending machine
what I do is, I get rid of this wire,
on this tutorial, I will just cut it, to lessen confusion.
were just going to work with three wires on this coinslot
so I removed the grey wire
we are left with red, white and black
now we need two ground wire from coin slot
I will explain why later on, I will add another black wire to our coin slot first.
ok guys, we will add another black wire to our coin slot
this is the very first thing you should do
when you start building your wifi vendo
this is where a lot of new builders makes mistake
because it only has three wires
one for groud, one for positive
these black and red goes to your power supply
the mistake new builders make is,
this is the only wire they connect to the raspberry pi
only the white wire
because, this two wire are already used, you already connect it with the power supply
that is where they make mistake.
because this white wire will not send signal if it is not grounded
it should have a pair ground wire
going to raspberry pi.
this is the first step I always make
this is also the first step you should always make.
add another ground wire to the coin slot.
guys you'll also need a heat shrink wrap
like this
you can buy it in lazada like 30 something only (not sure)
put it in here first
then connect these two ground wires
I will not solder it, because the purpose of this video is "just to get you started"
when you are already convinced, that you can build you own piso wifi vendo
thats the time you can buy soldering iron
for now ill just twist it like this, then ill cover with heat shrink wrap
its better that using electrical tape, its too messy
then you should have your lighter
apply heat.
were not soldering it
I dont want you to think that you need a soldering iron.
to be able to build this piso wifi vendo
so this is the connection, its secured, it will work for now.
so here it is, we have red, white, black, the black has two wires.
this is how you coin slot should look like.
the next item will connect is the JST connector 2.0
this is where it connects
in this terminal, this is where it connects
but you only need 1 wire
the wire on the top only
ill just remove the excess wire to avoid confusion
Ill put the red wire on the top pin
when you buy this, its possible that the red wire is on top already
its like this, because I just salvage it from my defective coin slot.
this one, you can get this if you have defective coin slot
you can get this
then you can use it here
because they are the same size.
so if you put it here
this is how it should look like
only the top most pin is used.
so what is it good for?
why is there a JST connector?
example, you just installed your piso wifi vendo
people are not yet aware how to use it.
sometimes, they don't connect to your wifi portal
they will just put coins on the coin slot.
now the coins will get accepted
but they will not get time credit for it
because he/she didn't even connect to your wifi signal
or your wifi vendo
so to avoid it,
to have the coin slot accepts coins only when there is someone who presses the "insert coin button"
raspberry pi disables the coin slot, using this JST PIN
so if its here
raspberrypi controls when the coin slot can accept coins.
for example the customer is not yet connected to the portal page
then she inserts coins
coinslot will just reject it.
it will not accept
even if he/she repeatedly inserts the coin, it will not accept.
because the coin slot is disabled
disabled using this JST wire
then, it will only be enabled by the raspberry pi
when the customer clicks "insert coin" in the portal.
in that way
we are sure that there is a cellphone client connected
raspberry pi has the client to ready for time credit.
it will show "not credited" if for example if coins get accepted and there' s no client connected.
you will see that its not credited, so to avoid it we use this, to disable the coinslot
so thats the connection
Ill just extend this wire to make it longer
[music]
ok so, to recap, what we did on our coin slot is that
we removed the grey wire,
we are left with, red, white and black
and then the ground wire, we made two ground wire.
then we put JST connector to disable/enable the coin slot
ok guys, so were going to plug in the 12 volt power supply
then I'll layout all the wires, so that you wont get confused where they go.
then the female dc jack adapter,
you need to attach it now to the 12 volt power supply
then the red wire, and one of the black wires are going to the power supply.
ok so
12 volt power suppply
then black and red wire of the coin slot goes to our female dc jack adapter
red on the positive
black on the negative terminal
and right now guys if we plug this on our wall socket
you will see that the coin slot will turn on
we plug in the extention cord,
12 volt power supply powers on
and then as you can see the coin slot is also powered on.
I'm over simplifying this
so that your brain can easily absorb
that this 12 volt power supply is for the coin slot
it's only job is to power the coin slot
because if the raspberry pi board
comes in you might get confused.
this is an over simplification,
12 volt supply, powers the coin slot.
then we have our raspberry pi
[music]
guys this wire that I cut
is a dupont wire
we will connect it to PIN 3 of the raspberry pi
then we will connect it to the white wire comming from the coin slot
Let's recap, where all the wires are connected.
from the coin slot, black and red wire goes to 12 volt
then the other black wire
because we made two black wires,
the other ground/black wire goes to our raspberry pi
connecting to PIN 39
I connect it to PIN 39
so that our wires are not crowded, you can see them clearly.
then the coin/white wire, connects to PIN 3
of the raspberrypi
then the enable/disable pin of our coin slot
it goes to our PIN 40 of our raspberry pi
raspberry pi numbering starts here
one, two, three
this is number three
Next were going to connect our 5 volt power supply
Im using cellphone charger right now,
because I dont have raspberrypi power supply anymore.
actually when you start producing pisowifi
you will not use 5v power supply adapter
that's included in the advanced build.
for now for sake of simplicity lets just use this adapter.
5 volt power supply, powers the raspberry pi
raspberry pi will not connect to our 12 volts supply
ok guys now were ready to power on our raspberry pi
but as you can see
we dont have our USB to Lan adapter yet.
I didn't connect the USB to LAN and our router yet
because the video is too long already
and there's a lot of configuration to do on the router
I don't want to put it in the system without showing you how its configured.
I decided that i'll just make a part 2 of this video
I will detail it on part 2, on how you can attach a router on our build.
anyways, even if we didn't attach our router
we can now connect to our raspberrypi
because raspberry pi has a built in Wi-Fi capability
that's good news
during testing phase, and you don't have all the money to buy all the parts
you can option not to buy the usb to lan and router
Lets go ahead and power our raspberry pi
ok guys, raspberry pi is done booting
we can now connect to our piso wifi hotspot
I will click on my network settings
then you'll see, Adopisoft is here
just click on it.
then click on
and you will get redirected to the portal page.
ok... if, you don't get redirected to our portal page
what you can do is
open your browser
and then
type in 10.0.0.1
press "enter"
and you will get redirect to the same portal page
right now guys, we can try to insert some coins
[music]
ok guys so as you can see
on our 1st boot, our piso wifi worked right away.
that's how beautiful Adopisoft software.
beginner friendly.
but there is something that we need to address
our enable and disable pin.
because I didn't use the default Pins 
of Adopisoft software.
for the enable/disable of our coin slot.
yes, we do have a wire here for enable/disable
but as you will see, Ill try to put a coin without pressing on "insert coin" on the portal.
and what will happen is
It will accept the coin.
this is the problem that we need to address
because new customers doesn't know how to use piso wifi
they will just put in coins
without entering your portal
or without connecting to your Wi-Fi hotspot
and then they will complain...
"the machine ate my coins!",
 "the machine ate my coins!"
that's why we need to disable the coin slot
when there is no one clicking the "insert coin" button on the portal.
so how?
I need to tell Adopisoft that I transfer the enable/disable wire to PIN 40 of our raspberrypi
I will show you on the admin panel of our Adopisoft.
How do we enter the admin panel?
open your browser
and then on the address bar
type in 10.0.0.1/admin
then press enter
then youll see the admin login
click on the username
type in admin
click on the password
and then type in admin, press enter
And you will see the Adopisoft admin panel
the graphical user interface 
is very simple and easy to the eyes
it's not hard to navigate, 
the Adopisoft software is very easy to navigate
Let's see what happen to the coins we put in, without pressing "insert coin" on the portal.
I wonder what happen to those coins.
Let's check our sales inventory.
on your left side is your system's menu
then click on the sales inventory
and here you will see
that the coins we put in without pressing "insert coin button"
will be tagged as "NOT CREDITED",
"NOT CREDITED"
So how can we avoid it?
we now need to configure the enable and disable pin.
On your left side, click on Timer settings
Here on the timers settings page
you can configure all your rasberry pi pins.
here on the coin slot's wiring settings
you will see GPIO for Coin/white wire
this is the white wire that you saw during our assembly.
and this is already set to GPIO 3
its correct, don't change it, its the adopisoft default pin.
now, here on the relay settings
this is what I'm telling you
enable and disable pin
its says here "Relay Settings"
before, set pin wasn't discovered yet.
we are using relay, it requires more wiring,
that's why I choose to use SET PIN,
first of all, it lessen our cost, you dont have to buy a relay.
it also lessen confusion because we have less wirings to work on
although it says here "relay settings"
this is also our
enable/disable wire
you need to change it.
and its important for you to understand
that its written here
GPIO numbering based on BCM Chip
were using PIN 40, if we put pin 40 here,
it will not work
it will still accept coins,
but WHY?
because its not the RPI Board GPIO Numbering, 
the relay settings will use.
instead, GPIO Numbering based on BCM Chip
this is very important thing to understand.
it will not work, youll get mindgraine,
 if you insist to put 40 here.
so what does GPIO numbering base on BCM Chip really means?
this is your RPI Board GPIO Numbering
one, two, three, four up to forty
the GPIO numbering base on BCM Chip are these labels outside.
so as you can see, on PIN 40, where our enable/disable wire is connected.
and we look at the label outside
wich is the bcm chip GPIO numbering
it is called, GPIO 21
so with that information, we now know what to put here in our relay settings
that is 21, OK? I hope that's clear.
the next setting should be, relay module is active HIGH
and then your coin slot relay delay in seconds,
you should put delay here, dont leave it empty
WHY?
because, if your using relay, which in our case were not.
if you use relay there is a kick(also called as Switch Bounce), and it credits 1 pesos
but for our case, even if we dont have a relay, just put 1.
then click on save changes
scroll up and you will see that Ado piso wifi is asking for a restart.
to apply changes
Ill click on restart, confirm restart, and the machine will reboot
ok guys were done setting the pins in our admin panel of adopisoft
were going to test now, if it will still accept coin if we didnt press the "insert coin button"
Let's try
as you can see it doesn't accept coin,
but, let's also try if we click on "insert coin " if it will accept coins.
I will click on "Insert Coin"
ok, it accepts the 1st coin, let's try again.
I will click on "Start Internet" coz I'm done paying
then I'll try again to put a coin without pressing "Insert Coin"
ok so as you can see , coin slot is disabled again.
ok guys, lets talk a little more about Adopisoft licensing
If you use Adopisoft license, youll get 10 days free trial period.
you have a lot of time to test the piso wifi vending machine
and if you're decided you'll buy the license
you can message us on our facebook page @pinoytechtutorials,
Ill put the link in the video description below.
we are authorized distributor of Adopisoft License
If this video was able to helped you out, and you want to show your love and support.
Please hit the like and subscribe button.
its a big help for the channel
for us to be able to produce much BETTER
MORE DETAILED tutorial that can help you when it comes to piso wifi.
thank you very much
see you on my next video!
Peace out!
