21isenough / LightningATM

This ATM sends bitcoin over the Lightning Network - pretty fun.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Impulses of fast insertion of coins are accumulated

21it opened this issue · comments

commented

Seems like if I'm able to insert coins fast enough in sequence, impulses for coins are accumulating. For example let's say I do have 3 similar coins, which are mapped to impulse number 2 on coins acceptor. I do insert them very fast in sequence. Then ATM will detect 3 coins corresponding to impulses 2, 4 and 6.

commented

Thanks for create this issue. Unfortunately we haven't found a solution for this yet. Maybe someone has an idea?

commented

I was able to reproduce the problem. I have a possible solution that requires a small relay, since the coin validator does not have a inhibit input. Whenever coins were inserted, I would deactivate the release coil for the passage of the coins, so that the coins that are thrown in immediately after being thrown in are ejected again. I need a place in the program where we can set an output that will switch a relay for a certain amount of time or until we can say for sure it's safe to add the second coin now. But I'm still at the beginning and the hardware ist just arrived. I will give an update as soon as I know more.

commented

This issue will be solved with the PR #64
#64
See details here:
https://github.com/AxelHamburch/LightningATM/blob/update_gpio/docs/guide/relay.md

commented

It's no in the current version. Use the ralay an the the problem is solved.
@lightisfaster can we close this topic?