Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Raspbery Pi based Arcade Machine FTC Payment Proof of concept

    Feathercoin Discussion
    7
    40
    5723
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mirrax last edited by

      Wow that’s great work well done. And what a great blog too. :)

      +1

      1 Reply Last reply Reply Quote 0
      • T
        tmuir12 Regular Member last edited by

        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

        https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/assembly

        1 Reply Last reply Reply Quote 0
        • M
          mirrax last edited by

          Model B+ looks very good. Nice improvements indeed.

          1 Reply Last reply Reply Quote 0
          • T
            tmuir12 Regular Member last edited by

            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

            1 Reply Last reply Reply Quote 0
            • T
              tmuir12 Regular Member last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • T
                tmuir12 Regular Member last edited by

                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

                1 Reply Last reply Reply Quote 0
                • T
                  tmuir12 Regular Member last edited by

                  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.

                  http://youtu.be/DJdsMX-eeFM

                  I’ll put the code up on GitHub tomorrow

                  1 Reply Last reply Reply Quote 0
                  • M
                    mirrax last edited by

                    Looks fantastic Tony! You are really fast developer ;)

                    1 Reply Last reply Reply Quote 0
                    • T
                      tmuir12 Regular Member last edited by

                      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

                      1 Reply Last reply Reply Quote 0
                      • kris_davison
                        kris_davison last edited by

                        Wow that’s looking great. That’s some fast progress well done!!

                        1 Reply Last reply Reply Quote 0
                        • F
                          Flobdeth Regular Member last edited by

                          “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 ;)

                          1 Reply Last reply Reply Quote 0
                          • T
                            tmuir12 Regular Member last edited by

                            Yes I had great fun adding ‘Compu’er says No’, far more amusing than just ‘Offline’ :)

                            1 Reply Last reply Reply Quote 0
                            • kris_davison
                              kris_davison last edited by

                              “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!

                              1 Reply Last reply Reply Quote 0
                              • T
                                tmuir12 Regular Member last edited by

                                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?

                                1 Reply Last reply Reply Quote 0
                                • T
                                  tmuir12 Regular Member last edited by

                                  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.

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    tmuir12 Regular Member last edited by

                                    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

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      mirrax last edited by

                                      Sounds great, everybody still think in fiat anyway.

                                      This will be success.

                                      We will continue your story in newsletter #35.

                                      1 Reply Last reply Reply Quote 0
                                      • kris_davison
                                        kris_davison last edited by

                                        Yeah that’s some speedy progress. Love the fiat conversion option.

                                        1 Reply Last reply Reply Quote 0
                                        • MrWyrm
                                          MrWyrm administrators last edited by

                                          Following this closely.

                                          Like what I do: 6uuy6isbrW1SBF191Bzgui1gWxPdNKx2PB

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            tmuir12 Regular Member last edited by

                                            It’s all up on Github now

                                            https://github.com/tmuir12/FTC_Arcade_Pay

                                            If you happen to already own the ADAfruit 320 x 240 LCD display for the raspberry pi, please download it, give it a try, try to beak it and give me feedback to improve it.

                                            Thanks

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post