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

    Raspbery Pi based FTC Ticker

    Feathercoin Discussion
    8
    27
    5324
    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

      This is great!

      You can claim your money in giveaway now ;)

      1 Reply Last reply Reply Quote 0
      • R
        Ruthie last edited by

        This is awesome, its so neat :)

        1 Reply Last reply Reply Quote 0
        • V
          voingiappone Regular Member last edited by

          Is just giving the people who originally created and posted the code credit in the module considered good enough or should I also provide links to where it came from?

          I don’t know… actually if you mention them in the header of the module it should suffice.

          However, putting the contributions in a more prominent poistion could be better, don’t you think? What about the Readme.md? You can create a section called “contributors” or whatever fits the case and put down a list of name-address for each source.

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

            I’ve given Uncle Muddy credit in the header in the API module, not sure what to do for the LCD modules, as the person that posted them up in the Raspberry Pi forum states he didn’t write them, rather someone else ported them from an arduino library, but doesn’t state who did.

            I’ll make not of this in the readme file that if the creater comes forward happy to give them credit.

            Edit


            Think I found the original creator of the i2c and lcddrive modules on github and have given him credit in the Readme.

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

              Great stuff well done mate!

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

                Thanks, got it now hooked up onto one of my Pis that doesn’t get shut down and set it to autostart it on power up.

                Now I can let it run for a few days and check it all works correctly.

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

                  It only took it to run to midnight and it stopped due to a typo I made with a variable that is checked at the beginning of Monday.

                  Today I realised I had forgot to do formatting to allow for values that needed less than 4 decimal places when FTC dropped to 0.04 AUD and screwed up all the formatting on the LCD.

                  That is now also fixed. Hopefully that has now caught all the bugs.

                  I’m enjoying playing with the API.

                  I think my next project will be a ‘Proof in Concept’ on using FTC to pay for credits on an arcade machine.

                  I don’t have an arcade machine to hook it up to so it will just be a proof of concept and will just trigger a relay to light a LED.

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

                    great idea. Looking forward to seeing your progress. :)

                    1 Reply Last reply Reply Quote 0
                    • U
                      uncle_muddy administrators last edited by

                      Humm very interesting :) I think I need to compile some thoughts and get back to you on where this could be taken next :)

                      Thanks for the code mention

                      UM

                      1 Reply Last reply Reply Quote 0
                      • V
                        vizay Regular Member last edited by

                        awesome work! :D

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

                          Humm very interesting :) I think I need to compile some thoughts and get back to you on where this could be taken next :)

                          Thanks for the code mention

                          UM

                          No problem.

                          I think I’ve got the basics of the coding sorted for the arcade machine to add credits, but there will be a delay on the rest as I need to put together the relay driving circuit and I’m thinking I might use a display to put up the QR code so its not visible when the machine is turned off, to stop people from accidently putting credits in when machine is off like they could if I just used a printout of the QR code.

                          1 Reply Last reply Reply Quote 0
                          • U
                            uncle_muddy administrators last edited by

                            Think about what sort of display you want to use! and then re-think what you have in your mind…

                            Once you have the above, if you let me have the GPIO pins you have spare (thats your hint) I can design the relay circuit for you, but you need to look in to how these things notice a) a coin has been inserted and b) its value… the ATM taught me that a lot of this is done on pulses from the coin taker, and a relay is just not fast enough to emulate that!

                            I’m around but my time is very limited, but shout up your questions and I will do my best to answer them for you, without taking the fun out of you learning at the same time :)

                            UM

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

                              Yes the coin taker is the unknown for my project.

                              At the moment I was going to keep it simple to use it on an old Electromechanical pinball machine as I’m currently trying to find one to buy, and the coin taker mechanism is so much simpler on them than modern stuff. With the old pinball machines if it was the correct size to fit in the slot that was all that mattered and the weight of the coin just moved a contact or microswitch, so for them a relay is fine.

                              Obviously modern coin takers that check size, weight, use hall effect sensors to determine alloy content of coin ect it will be a different ball game and be a lot more complicated and something I haven’t even looked at yet.

                              Looks like it’s time to dig through ebay and Adafruit and decide on what will be the best display to use based on size, cost and complexity to integrate.

                              Building the realy cct is not a big problem, the hardest part will be finding the time to get to the shops to buy the parts.

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

                                If I do add a display I think it will be this one from Adafruit

                                http://www.adafruit.com/products/1601

                                Has a touch screen which I don’t need, but its not too expensive and uses SPI, so it doesn’t eat up all the GPIO pins, and best of all there is a good Howto to get it running

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

                                  Is there much interest in the FTC ticker?

                                  I see that Cryptsy also has a public API

                                  https://www.cryptsy.com/pages/publicapi

                                  So with a little work this could probably be adapted to show the last trade price on cryptsy

                                  1 Reply Last reply Reply Quote 0
                                  • U
                                    uncle_muddy administrators last edited by

                                    I have an interest in it but not really to use it as a ticker, more to pinch some of the code for ATM II which I’m hoping to get round to at some point.

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

                                      If I get it working your more than welcome to reuse the code

                                      1 Reply Last reply Reply Quote 0
                                      • X
                                        xalex last edited by

                                        A friend of mine knows all about pinball machines. He’s the reason i have such an awesome machine.

                                        At his home he has all sorts of pinball machines. The oldest ones not even having digital displays, and the newest ones having a full sized 19" rack-server and an LCD TV as a display.

                                        I asked someone who helps him maintain the machines about the credit-switch as seen on the photo’s on my blog. Apparently all pinball machines use the same mechanism. From the very old ones to the very newest ($10,000 2014 models). The coin checking mechanism is simply a module that goes before the credit-switch, a transistor-relay approach should be fine.

                                        -alex

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