FORUMS
Remove All Ads from XDA

Dev-Projekt PiRolleo - Toiletpaper Donator + Cashsystem

6,627 posts
Thanks Meter: 4,307
 
Thread Closed Email Thread
Projekt PiRolleo - Toiletpaper Donator + Cashsystem Machine to buy a lil amount of Paper!!!!!
--------

--------



--------
Its an automatic machine which sell some toiletpaper for money like a cokeautomat in cinema or something.
The complete pythonscript+system is 100% brainwork and complete a owner idea,help and ideas from peeps
with interest is welcome,even for the hardware which is an idea and work from us and not complete.
--------
The complete idea is startet in the devbrains of @[email protected] + @-CALIBAN666-
--------
--- Current status is: v4.0.1 alpha ---

Are you ready to test your might,get ready to feel the new "BUTTNESS",the digital site of Toilets,lol!!!!!
-------
PHP Code:
import RPi.GPIO as gpio
import time

gpio
.setmode(gpio.BCM)
gpio.setup(18gpio.IN)
gpio.setup(17gpio.IN)
gpio.setup(14gpio.IN)
gpio.setup(10gpio.IN)
gpio.setup(25gpio.OUT)
gpio.setup(24gpio.OUT)
gpio.setup(8gpio.OUT)
gpio.setup(7gpio.OUT)
free 0
pin 
0
eur 
0
0

def abrollen
():
    
gpio.output(7gpio.HIGH)
    
gpio.output(8gpio.HIGH)
    
gpio.output(24gpio.HIGH)
    
time.sleep(3)
    
gpio.output(7gpio.LOW)
    
gpio.output(8gpio.LOW)
    
gpio.output(24gpio.LOW)
 
def schliessen(eur,free):
    print 
"          -------------------------"
    
print "          | Kontostand:"eur,"Euro | "
    
print "          -------------------------"
            
    
file("/media/usb/konto.txt""w")
    
f.write("*** Kontostand:   ")
    
f.write(str(eur))
    
f.write(" Euro ***                -PiRolleo gab ")
    
f.write(str(free))
    
f.write(" mal gratis Toilettenpapier")
    
f.close()
                
    
gpio.cleanup()
    
quit()
    
    
try: 
    while 
True:    
    
        
gpio.output(7gpio.LOW)
        
gpio.output(8gpio.LOW)
        
gpio.output(24gpio.LOW)
        
gpio.output(25gpio.LOW)
    
        if 
gpio.input(14) == gpio.HIGH:
            
eur eur 0.05
            abrollen
()
        
        if 
gpio.input(17) == gpio.HIGH:
            
pin 0
            time
.sleep(3)
            if 
gpio.input(17) == gpio.HIGH:
                
time.sleep(10)
        
        if 
gpio.input(18) == gpio.HIGH:
            
pin pin 1
            time
.sleep(1.5)
            if 
gpio.input(18) == gpio.HIGH:
                
time.sleep(5)
            
        if 
gpio.input(17) == gpio.HIGH and pin == 3:
            
time.sleep(3)
            if 
gpio.input(17) == gpio.HIGH and gpio.input(18) == gpio.HIGH:
                
free free 
                abrollen
()
                
        
        if 
gpio.input(10) == gpio.HIGH:
            
            if 
eur >= and eur 2
                
gpio.output(25gpio.HIGH)
                
time.sleep(3)

                if 
gpio.input(14) == gpio.HIGH:
                    
schliessen(eur,free)
                    
                
gpio.output(25gpio.LOW)
                
time.sleep(3)
                
gpio.output(25gpio.HIGH)
                
time.sleep(1)
                
gpio.output(25gpio.LOW)
                
            
elif eur >=and eur 3:
                
gpio.output(25gpio.HIGH)
                
time.sleep(3)

                if 
gpio.input(14) == gpio.HIGH:
                    
schliessen(eur,free)
                
                
gpio.output(25gpio.LOW)
                
time.sleep(3)                
                
gpio.output(25gpio.HIGH)
                
time.sleep(1)
                
gpio.output(25gpio.LOW)
                
time.sleep(0.5)
                
gpio.output(25gpio.HIGH)
                
time.sleep(1)
                
gpio.output(25gpio.LOW)
                
            
elif eur >=and eur 4:
                
gpio.output(25gpio.HIGH)
                
time.sleep(3)

                if 
gpio.input(14) == gpio.HIGH:
                    
schliessen(eur,free)
                    
                
gpio.output(25gpio.LOW)
                
time.sleep(3)    
                
gpio.output(25gpio.HIGH)
                
time.sleep(1)
                
gpio.output(25gpio.LOW)
                
time.sleep(0.5)
                
gpio.output(25gpio.HIGH)
                
time.sleep(1)
                
gpio.output(25gpio.LOW)
                
time.sleep(0.5)
                
gpio.output(25gpio.HIGH)
                
time.sleep(1)
                
gpio.output(25gpio.LOW)
                
time.sleep(0.5)
                
            
elif eur >= 4:
                
gpio.output(25gpio.HIGH)
                
time.sleep(3)

                if 
gpio.input(14) == gpio.HIGH:
                    
schliessen(eur,free)
                    
                
gpio.output(25gpio.LOW)
                
time.sleep(3)    
                
10
 
                
while i>0:
                    
gpio.output(25gpio.HIGH)
                    
time.sleep(0.1)
                    
gpio.output(25gpio.LOW)
                    
time.sleep(0.1)
                    

                
                
            
else:
                
gpio.output(25gpio.HIGH)
                
time.sleep(3)

                if 
gpio.input(14) == gpio.HIGH:
                    
schliessen(eur,free)
                
                
gpio.output(25gpio.LOW)            

        
except KeyboardInterrupt:
    
gpio.cleanup()            

#            *** script by [email protected] & -CALIBAN666-  v4.0.0 alpha *** 
--- Changelog ---

-v4.0.0 alpha-
  • -fixed some bugs
  • now you have the option to get free paper (press the two buttons in combination)


--------
Note:
Its work in progress,the python based own created system is ready,only the hardware needs time,so stay tuned!!!
---------
The attached screenshots are early alphastage,so you dont see the machine as ready worker,its prototype with touch-
steering over gpios and gertboard,stay tuned friends.
---------
Many greeeetz from @[email protected] + @-CALIBAN666-

XDA:DevDB Information
Projekt PiRolleo - Toiletpaper Donator + Cashsystem Machine, Tool/Utility for the Raspberry Pi

Contributors
-CALIBAN666-, [email protected]

Version Information
Status: Alpha

Created 2015-05-12
Last Updated 2015-05-15
Attached Thumbnails
Click image for larger version

Name:	devrobot.jpg
Views:	1860
Size:	242.9 KB
ID:	3299802   Click image for larger version

Name:	firstboot.jpg
Views:	1846
Size:	249.9 KB
ID:	3299803   Click image for larger version

Name:	done.jpg
Views:	1720
Size:	228.4 KB
ID:	3299804   Click image for larger version

Name:	root.jpg
Views:	1608
Size:	244.1 KB
ID:	3299805   Click image for larger version

Name:	cashing.jpg
Views:	1554
Size:	238.3 KB
ID:	3299818   Click image for larger version

Name:	involved.jpg
Views:	1544
Size:	245.3 KB
ID:	3299820   Click image for larger version

Name:	handling with touch1.jpg
Views:	1708
Size:	253.3 KB
ID:	3299821  
The Following 4 Users Say Thank You to -CALIBAN666- For This Useful Post: [ View ] Gift -CALIBAN666- Ad-Free
12th May 2015, 09:49 AM |#2  
Story about this projekt:
-----------------------------
The reason to start this projekt.
I sit on the toilet and need Paper but there is none and thats
weird because i have buy 10 rolls 2-3 days ago so i cant figure out
why the hell its empty now,thats sux and cost money.Sometimes ive
feeling that my friends are eating or smoking my toiletpaper,its damn
fast empty.
So in a funny moment me and my bro have created the Pirolleo,
its a machine where u can buy 6 papers toiletpaper for 5 euro cent.
The software is ready and now we begin the hardware stuff,all is running
over a pi with gertboard based on python,so stay tuned!!!!
BELIEVE ME ITS NOT A JOKE!!!!!
The Following User Says Thank You to -CALIBAN666- For This Useful Post: [ View ] Gift -CALIBAN666- Ad-Free
12th May 2015, 03:03 PM |#3  
bitpushr's Avatar
XDA:Administrator
Thanks Meter: 2,733
 
More
So this is great! I have so many questions:
  • Will it accept Euro coins or paper bills as well?
  • Can you add Bitcoin to it? Who uses real money any more...
  • What is your idea for the toilet paper delivery system?
The Following User Says Thank You to bitpushr For This Useful Post: [ View ] Gift bitpushr Ad-Free
12th May 2015, 04:06 PM |#4  
only 5 cent coins for now,more and other methods will come.
i dont think that bitcoins are the right payment and its not a computer terminal,its for become toiletpaper for 5 cent,lol.
for delivery,in first time i go to a market and buy it.
12th May 2015, 10:12 PM |#5  
Junior Member
Thanks Meter: 2
 
More
great to see our Projekt online,see ya tomorow,lol.
The Following User Says Thank You to [email protected] For This Useful Post: [ View ] Gift [email protected] Ad-Free
16th May 2015, 04:50 PM |#6  
renewed image of the hardware (early stage of development is shown) added to post one.Best thanx and greeeetz to @[email protected].
28th May 2015, 01:54 AM |#7  
thread updated with a picture about how it looks when its builded,early picture for sure,its the third picture in first place.
Big thanx and credits to @[email protected] for picture and help.
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes