Raspbery Pi based Arcade Machine FTC Payment Proof of concept
-
Yay! Got it working :)
I am going to use this at a job interview on Monday. It covers a lot of things they need me for:
http://balgehacked.wordpress.com/2014/07/18/10-cryptocurrency-pinball-mod/
All in all a $10 mod to the pinball machine.
@tmuir12, I am looking forward to your version. The LCD screen will be a must have i guess. If there is anything i can help you with, please drop me a line ;)
Happy hacking!
-
Wow that’s great work well done. And what a great blog too. :)
-
Cool!
I found it took about 1 minute 20 seconds for the credit to reach my Pi, so about the same time as yours.
Your solution is definitely cheaper than mine, well done!
I hope to have the screen and my new Pi some time next week, so by next weekend I might of made some more progress.
I have been thinking that being able to prepay for credits would also be useful ut I’m not sure whether this would be within my coding skill.
The idea they pay in advance and get a QR code that could be printed out, or displayed on a phone and using a Raspbery Pi camera in theory it should be able to scan it and then add the credits straight away, but that is just an idea at the moment, not completely sure how to implement it
-
Wow that’s great work well done. And what a great blog too. :)
+1
-
I receive my new Raspberry Pi and LCD screen today.
Have just finished installing Raspbian on it, and now I’m about to put the display together and then will probably spend the next couple of hours following this tutorial from Adafruit to get the display going
-
Model B+ looks very good. Nice improvements indeed.
-
Yes shame I didn’t know it was available and just ordered the regular model B.
I’ve got the display hooked up and everything on the Raspbery is going well, but I’ve hit a snag as teh feathercoin wallet app won’t read QR codes off my screen whilst my other QR reader app does
-
Display i installed and working.
Have some basic code to display the QR code and a simple off line message when it can’t reach the API.
Tomorrow night I will attempt to put all the coding together and by using my other QR scanner on my phone and pasting in the address into my wallet I can get around the issue of the scanner not working in my FTC wallet…
Will hopefully get some photos and maybe a video up tomorrow.
-
Very excited.
I think I’ve got everything read to test stage 2 of the project, just need to load some ftc onto my phone and do the video, video may be up later tonight or tomorrow night.
I’ve also added some extra code as I realised if the API was not contactable when the Pi first started after the API comes online it would put free credits on the machine.
This problem is now fixed
-
Stage 2 tested, and the video on youtube.
This time I sent enough for 2 credits to show you can pay for more than one credit at a time and it will just count then down and add them to the machine.
Here is the link to the Video.
I’ll put the code up on GitHub tomorrow
-
Looks fantastic Tony! You are really fast developer ;)
-
It helps when the whole thing is less than 100 lines of code.
I’ve only just started to learn Python, but I can see why everyone says its great for fast development
-
Wow that’s looking great. That’s some fast progress well done!!
-
“Computer says No!” awww mate, that was a brilliant touch, possibly funniest thing this week ^-^
And Yes Mr Davison, there are some good things to be found today ;)
-
Yes I had great fun adding ‘Compu’er says No’, far more amusing than just ‘Offline’ :)
-
“Computer says No!” awww mate, that was a brilliant touch, possibly funniest thing this week ^-^
And Yes Mr Davison, there are some good things to be found today ;)
Ha ha yes I told you all was not lost!
-
It occurred to me, to make it easier for main stream to what to use cryptos I should possibly make the arcade payment device allow the owner to set a price in their local currency they want a credit to cost rather than in FTC.
That way if the value of FTC shifts against their local currency they dont have to worru as it will dynamically adjust the price in FTC.
I think rounding it to the nearest whole FTC would be advisable to keep payment simple though.
This will radically change the way it all works though as it means it would need to generate the QR codes on the fly as value changes and require a new module to get the price of FTC against the local currency, but I think is acheiveable without too much extra work.
What does everyone think?
Is this a worthwhile feature?
Should I also leave the option to just have a set FTC value too?
-
More progress.
You now have the option to set the cost per credit in FTC, or in any of the currencies the API supports and on power up it will look at the exchange rate and set the credit price to the nearest whole FTC equal to the value set in Fiat.
Now comes the fun part to get it to generate the QR code based on the credit price and get it to also display the price in words and the feathercoin logo.
I know how to make it generate the QR code and to just display that, but will need to learn some python Graphics functions to get the rest togerther.
-
Very Happy
As stated above you can now set credit cost just as a FTC price, or in any local currency supported by the API and it will round it to the nearest whole FTC, it then creates a QR code based on this price, adds that to a white background on the right, adds the Feathercoin logo on the top left and text detailing the cost per credit in FTC.
So to change the price per credit all you need to do is alter the text value in the main program.
I’m debating on whether to add a cheap IR sensor so I can have a screen saver run that when it detects movement will turn back on the display for 2 minutes, but I think tomorrow I will release the coed of what I have done
-
Sounds great, everybody still think in fiat anyway.
This will be success.
We will continue your story in newsletter #35.