Results 1 to 20 of 22

Thread: Coining Up the Bellco using an Arduino Nano

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Blind Shooter Mcrowell75's Avatar
    Join Date
    Feb 2020
    Location
    USA
    Posts
    34
    Thanks
    17
    Thanks Received
    27

    Default Re: Coining Up the Bellco using an Arduino Nano

    Jeff,
    Your code did work, however the relays are constantly activated and they randomly de-activate when the spin lever input is received.
    This is opposite of what I need.

    The slot machine would assume the buttons were continually held down.

    I ran into this problem already.

    I could work around the problem by rewiring the button wires to the normally open switch configuration at the module, however the relays would still be constantly in an electrified state. I worry this would lead to premature failure of the relays or the arduino.

    In the code I sent you my best idea for a solution was to set the Button pins as inputs initially and then briefly change them to output to send the signal to to the relay module. This kept the relays in a non activated state until needed.

    Is that a bad solution? I see you changed it.

    Next, when I simulate a spin using the method you told me it works as it should. When I connect the D5 (spin_in) pin and the ground on the arduino the relays are silent. When I separate those two pins the loop code is implemented and the buttons stop randomly as I want. This is how my machines spin lever operates. There is 5v at the trigger and ground when idle and when the lever is flicked the voltage drops to zero.

    Perhaps I am not reading my wires correctly . I attached two pictures of the spin lever's optical sensor removed from the machine.

    brown and orange read 5v constantly
    brown and red read 5v until the lever is flicked then they drop to zero as the optical sensor is blocked.

    By my best guess brown is ground(-) orange is (+) and red is the "trigger"IMG_1546.jpgIMG_1547.jpg

  2. #2
    Fever Hunter atlanticom's Avatar
    Join Date
    May 2019
    Location
    United States
    Posts
    110
    Thanks
    85
    Thanks Received
    165

    Default Re: Coining Up the Bellco using an Arduino Nano

    @mcrowell75,

    I'm glad to hear you worked things out.

    In response to your previous message regarding the relays being energized all the time, I assumed a different polarity for the relay wiring. You can easily flip the relay trigger signal in the previous code by changing the digitalWrite(pinName, HIGH) to digitalWrite(pinName, LOW) and vice versa. That's what forces the output pin to 5v or Gnd respectively.

    Also, I would suggest it may be a safer option to interface trigger voltages through a high-resistance resister (1M+ Ohm) I think the Arduino will still recognize Gnd or +5v while drawing insignificant current. Also, if the trigger voltage is greater than +5v, one could create a voltage divider using two resistors and thus tap into the circuit at an appropriate voltage level.

    Lastly, I agree with your assessment of the spin lever wiring.


Similar Threads

  1. Bellco Automatic
    By Awesumstude in forum Pachislo Technical Support Tickets
    Replies: 1
    Last Post: 11-07-2018, 02:28 PM
  2. Key for Bellco Automatic
    By Pinwizkid in forum Model Talk
    Replies: 4
    Last Post: 11-24-2017, 02:53 AM
  3. Ebay Auction : Bellco Automatic
    By hanabi in forum eBay - General Auction listings
    Replies: 5
    Last Post: 04-16-2012, 03:22 PM
  4. Arduino
    By hanabi in forum These are the days of our lives...
    Replies: 0
    Last Post: 05-29-2009, 08:22 AM
  5. Bellco Automatic
    By FTKServices in forum Model Talk
    Replies: 10
    Last Post: 12-02-2006, 07:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •