Menu

No keyboard + miss sensor

murmullos
2018-04-20
2018-05-27
  • murmullos

    murmullos - 2018-04-20

    Hi everyone,

    I recenty had this working. It's an awsome project!
    I'd like to add a miss sensor. I think that the best option is to use a vibration switch to detect when a dart has missed the matrix. I'm more like an electronic kind person. Does anyone know the best option to tell pydarts? I think that playerbutton, when pressed, skips 1 dart, maybe I can just send a playerbutton hit but I don't see it as an elegant solution. Do you guys have a better idea?

    In the other hand, pydarts is running in a raspberry pi. I don't like to have a keyboard attached to the Rpi. I'm thinking about using an app on the phone to emulate a keyboard but I wonder if there is any way to control pydarts only with the dartboard buttons.

    Thanks!

     

    Last edit: murmullos 2018-04-20
  • Mike

    Mike - 2018-04-21

    Great question & answer!!!

    I have been contemplating the same along with adding sennsors to "pause" the game while darts are being removed, motions sensors.

     
  • Cory Baumgart

    Cory Baumgart - 2018-04-25

    i have succesfully gotten a miss dart key ('m') and subsequent miss dart button working on the pydarts fork i an working on. You can now press a button to register a dart miss. Perhaps someone can code some arduino config files to incorporate the knock tutorial so it spits out the assigned miss key?

     
  • Anonymous

    Anonymous - 2018-04-25

    Hi Cory !
    If you manage to make this optionnal it would be great to join the upstream code, don't you think so?
    It's important to make it optionnal for backwards compatibility and for people with just minimal boards (without buttons nor sensors)
    Cheers

     
  • Cory Baumgart

    Cory Baumgart - 2018-04-25

    I will be pushing a merge request soon. I am working on a few new games too.! Also, it is optional to use because you can either use the keystroke, or push a button, or setup a sensor if you want, or just skip the key assignment in the config wizard!

     

    Last edit: Cory Baumgart 2018-04-25
  • Anonymous

    Anonymous - 2018-04-29

    Hi!

    Finally I've the arduino code to use a miss sensor (vibration switch). ¿What is the value that i've to send to the pydarts? ¿Is this functonality implemented?

    I'll post the code once checked

     
  • Cory Baumgart

    Cory Baumgart - 2018-04-29

    clone my fork and the wizard will ask you to press the missdart button. i dont know if you have the arduino sending a keystroke or what. i set it up to read a button press or keyboard "m" press

     
  • murmullos

    murmullos - 2018-04-30

    Yes, the miss sensor just sends a character like a button.

    I assume tha your fork is Cory-pydarts right?

    I'll take a look this afternoon.

     

    Last edit: murmullos 2018-04-30
  • Cory Baumgart

    Cory Baumgart - 2018-04-30

    https://sourceforge.net/u/lpfreak1283/pydarts/ci/master/tree/

    Yep that's mine! I just pushed some changes a minute ago so be sure to pull the changes before trying it! Thanks!

     
  • murmullos

    murmullos - 2018-05-02

    I tried your fork. It works really good! The miss is not allways recogniced but after some tests it's because of where i placed the sensor. Where do you recommend?

    Thanks dude!

     
  • Cory Baumgart

    Cory Baumgart - 2018-05-03

    i dont know what your setup is! lol. Do you only have one sensor for the entire miss ring? I think i would at least get 3-4 and wire them in parallel so that each runs on their own, but you still get a baseline reading to detect a miss.

    I'm glad my fork works for you! Im learning python by working on this program!

     

    Last edit: Cory Baumgart 2018-05-03
  • Anonymous

    Anonymous - 2018-05-03

    Yes, I think i'm going to need more sensors.
    I've a question. What happens if i'm playing online with someone that don't have your fork? I mean he have the original project. Is the miss sent to him?

     
  • Anonymous

    Anonymous - 2018-05-03

    that im not sure of. It will send a miss but the other players game wont know how to process it

     
    • poilou

      poilou - 2018-05-04

      For the network part I could help ya but don't forget to commit your changes to the original pydarts so we work together

      On Thu, 3 May 2018 16:21:27 +0000, noreply@sourceforge.net wrote:

      that im not sure of. It will send a miss but the other
      players game wont know how to process it


      No keyboard + miss
      sensor


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/pydarts/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Sent using Dekko from my Ubuntu device

       
  • Anonymous

    Anonymous - 2018-05-08

    Hi,

    I'm using an app to remotely control the Rpi.
    All the keys work correctly but "+" and "-" for adding a new player. This is strange because if i push "+" with a normal keyboard I can edit the name of the player and then "+" works correctly from the remote app (it appears in the player name). F1, arrow keys etc. works correctly.

    ¿Can it be related to the scope?

     
    • Cory Baumgart

      Cory Baumgart - 2018-05-08

      Why dont you start a new thread regarding this

       
  • poilou

    poilou - 2018-05-15

    Hi @Cory !

    I merged without reviewing too much, I trust you on beer sake ;)

    • What is MPR ? (Missed Per Round ?)
    • Would you describe the comportement of the miss button ? What happens when you push the player button before the 3 darts ?
    • Just by curiosity, why did you need stats on csv format... ?
    • Did you compile .po files to .mo ?

    I have to test handicap a bit, to understand :)

    I see you replaced my chaussette.ogg file by yours ;), I'll keep it in my own folder, it's kind of a private joke with friends.

    Nice job !!
    We're glad of your contribution ! And I'll check your code in the next few days, for compat purpose only.
    Cheers !

     
  • Anonymous

    Anonymous - 2018-05-16

    Hi @Cory !
    I am reviewing some thing that you've done. May we discuss of you work some day ?
    Maybe by videocall ?
    Cheers :)

     
  • murmullos

    murmullos - 2018-05-24

    I think that MPR is Marks Per Round It's widely used in criket. Simple = 1 Mark, double =2 marks and triple =3 marks. So if you hit simple 20, double 18 and any not valid number or miss in the first round you have a MPR of 3, if in the next round you hit a valid simple and missed 2 darts, your MPR is 2. Your average is 2 valid hits per round (3 in the first one and 1 in the second one).

    The miss button or the miss sensor in my case, works like follows:
    When pressed or sensed, a dart is substracted from the ones that were left. If you push the playerbutton before the 3 darts, you just skip the rest of the darts (as if you had missed) and the next player starts.

    I'm very happy because for me, this behaviour is perfect.

     
  • Cory Baumgart

    Cory Baumgart - 2018-05-27

    Murmullos, care to share your setup with miss sensors and relevant code? Seems like you have a nice setup!

     

Anonymous
Anonymous

Add attachments
Cancel