Raspbery Pi based FTC Ticker
-
Ok its up on github
https://github.com/tmuir12/FTC_Ticker
To be clear I did not create the i2c_lib.py or lcddriver.py
They came from here
http://www.raspberrypi.org/forums/viewtopic.php?f=32&t=34261&p=378524
Posted by natbett, but he did not give credit to original author, so I don’t know who wrote them.
The ftcapi.py can from a post on this forum by Uncle Muddy
-
This is great!
You can claim your money in giveaway now ;)
-
This is awesome, its so neat :)
-
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.
-
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.
-
Great stuff well done mate!
-
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.
-
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.
-
great idea. Looking forward to seeing your progress. :)
-
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
-
awesome work! :D
-
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.
-
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
-
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.
-
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
-
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
-
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.
-
If I get it working your more than welcome to reuse the code
-
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