Shampoo Vending Machine

by Log GC in Circuits > Raspberry Pi

5880 Views, 23 Favorites, 0 Comments

Shampoo Vending Machine

IMG_8004.JPG

We are trying to build this shampoo vending machine prototype for reducing plastic wastes.
Vending machines for variety of products are further prevalent nowadays. For instance, car vending machine had been implemented practically as well in Singapore recently. In the wake of unavoidable demand of plastic bottles and mankind's damages to environment, we were inspired to design the vending machine.

Since most of the plastics waste of shower products were often unreplaceable and unrecyclable (too dirty) in metropolis. We then built this vending machine aimed to sell hair washing products solely, without the plastic containers. Plastic bottles are fairly reusable and durable for storing the shampoos, so we tried to encourage people reuse them for buying shampoos.

This vending machine will sell shampoo solely, customers are expected to bring their own containers. We aimed at reducing pollutants from traditional body cleaning product wastes.

Buy Stuff You Need

IMG_7779 2.JPG
TB2PhaYcmXlpuFjy0FeXXcJbFXa_!!741205815.jpg_80x80.jpg
IMG_7780 2.JPG
IMG_7754.JPG
IMG_7831.JPG
IMG_7778.JPG
IMG_7781 2.JPG
IMG_7784 2.JPG
IMG_7739.JPG
IMG_7753.JPG
TB1oIE8KXXXXXbpXpXXXXXXXXXX_!!0-item_pic.jpg_80x80.jpg
IMG_7782 2.JPG
IMG_0544.JPG

material required:

  1. MDFwood 900*600*3mm *3
  2. MDFwood 600*600*3mm *1
  3. 6.9mm plastic tube 2meter
  4. 9.12mm plastic tube 2meter
  5. Air tube (CO2Tubes)2m
  6. Raspberry Pi3 With touch screen
  7. breadboard
  8. 6V air pump motor
  9. 6v battery
  10. battery to wire adapter
  11. wires
  12. Big bottle
  13. Extension cord
  14. Shampoo
  15. Battery box
  16. L293D IC chip

Tools needed

  1. Laser cutter
  2. electric drill
  3. Yellow glue
  4. scissor
  5. Glass glue

Make the Case

IMG_7809.JPG
IMG_7808.JPG
IMG_7810.JPG
IMG_7840.JPG
IMG_7834.JPG
IMG_7832.JPG

Use laser cutter to cut the MDF wood according to this blue print

Drill Holes on 40*15cm wood

drill whole on side for switch

Make whole that is size of your rasberry pi screen on the front wood

laser craft some Words of your choice

Stick the Case Together Using Yellow Glue

IMG_7825.JPG
IMG_7820.JPG
IMG_7827.JPG
IMG_7804.JPG
IMG_7807.JPG
IMG_7817.JPG
IMG_7806.JPG
IMG_7813.JPG
IMG_7822.JPG

Stick The case together using Yellow glue

Connect the Wires Together

IMG_7786.JPG
IMG_7787 2.JPG
IMG_7788.JPG

connect the battery switch and the motor together with wires withe the help of scissor

Drill Holes on Caps

IMG_7805.JPG

Drill holes on the caps of bottle s little smaller than the size of your small plastic tubes and the air tubes and let the tubes go through the holes.

put the air tube to the motor to test if it works

Test the System by Motor If It Can Pump the Shampoo Out

IMG_7819.JPG

Insert the Whole System in to the Case

IMG_7801.JPG
IMG_7802.JPG
IMG_7816.JPG
IMG_7833.JPG
IMG_7829.JPG
IMG_7838.JPG
IMG_7830.JPG
IMG_7837.JPG
IMG_7812.JPG
IMG_7818.JPG

Plug the switch in to the switch hole and put the liquid tubes one side in the hole of the bottle and other side to the machine output hole.

Test Your Machine Again

IMG_7839
IMG_7824.JPG

Connect the Water Flow Sensor to the Output Tube

IMG_7978.JPG
IMG_7975.JPG
IMG_7976.JPG
IMG_7977.JPG

I stick them with glass glue so they will not leak shampoo and tide with floraseal.

Insert Raspberry Pi in the Hole and Turn It on and Set Up

IMG_7749 2.JPG
Raspberry Pi - How to use the GPIO

We used Raspberry Pi 3 with Raspbian and you should First install raspbian on The Pi.

I recommend you to use NOOBS if you are starter for rapberry pi 3 to install raspbian.

After installing raspbian, follow this instructions in the youtube video to install python.dev

Set Up the Breadboard

IMG_0528.JPG
IMG_0483.JPG
IMG_0480.JPG
IMG_0487.JPG

connect the L293D chips according to this tutorial

https://business.tutsplus.com/tutorials/controllin...

and connect the flow sensor ground to Raspberry pi ground pin, red pin to Rasp pi 5V pin and the yellow pin to the input pin ( in my case I used pin17)

Connect Your Device and Test With These Python Code

IMG_0526.JPG

Connect to a DC motor with these tutorials. I used pin 4,18,23 to connect to the L293D Chips to control the motor.

The blink.py is used to test the function of the GPIO whether it works or not,

The motor.py to test the motor.

Pack Stuff and Put It Into the Machine

IMG_7984.JPG

I used a paper box that could fit in the machine to pack the raspberry pi ,motor battery together in a neat and tidy way.

Test Final Step

IMG_0543.JPG
IMG_0546.JPG

put shampoo in to bottle and put your bottle in to the machine.

Test your pump with motor.py

Furthermore...

IMG_0530.JPG

Record the rate of the flow of shampoo

Edit the python code so it will generate files when the motor is running to see how many shampoo was pumped

set auto upload the data to cloud so you can check it online when is the shampoo empty so you have to refill it.

Add a payment method to it( I recommend Octopus in HK or Apple pay maybe?)

for further improvement, you may use a MCP3008 Chips to read speed of shampoo flowmeter. As Raspberry pi cannot read AC voltage, you will need a ADC to convert it. so it will be more precise.

https://drive.google.com/drive/folders/0B7oTpBj1gE...

Here is the Link for the photo in my process, If you want to take a look at our process. Enjoy Making.