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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
enjoy!
(It 's been a while I wantedto do that but no time....)
diego50
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-04-25
Piezos are sensitive to sound while a vibration switch isn't.
I've updated the arduino code to support my 4x20 matrix (arduino mega) and to send the hit via WiFi to the raspberry without touching a single line of your code. I can explain the code and the circuit if you find it useful.
About incorporating code to the buttons and to the miss switch, my problem is that the matrix goes directly to the arduino, It was very difficult to interface the matrix because there are no wires nor connectors, it went from the matrix to the old PCB via a elastomeric stripe so I don't want to expand the matrix (keymap) to the buttons because of the wiring (I'd have to share the numrows pins (4 pins via elastomeric stripe that was a pain in the ass to wire to the arduino) and add a numcol pin). I'm thinking about using interruptions... I'd like to wire the buttons totally independent of the matrix...
The vibration switch has lots of bounces and i can't just put a delay() because i can miss the hit. When a hit is correct, the vibration sensor also triggers. A miss is when the sensor triggers and there is not a hit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Hi , you can use piezo sensor very cheap on aliexpress.
cheap but at least 1 month delivery
https://fr.aliexpress.com/item/6-Pieces-27mm-Piezo-Disc-Elements-with-10cm-4-Leads-Guitar-Amplifiers-Contact-Pickups-Guitar-Repair/32413873366.html?src=google&albslr=220942761&isdl=y&aff_short_key=UneMJZVf&source=%7Bifdyn:dyn%7D%7Bifpla:pla%7D%7Bifdbm:DBM&albch=DID%7D&src=google&albch=shopping&acnt=494-037-6276&isdl=y&albcp=653151748&albag=36672819047&slnk=&trgt=124033421041&plac=&crea=fr32413873366&netw=g&device=c&mtctp=&gclid=CjwKCAjwwuvWBRBZEiwALXqjwz7XjqjaH-sXdwIG89S6vFBVH0QRVotINXEYN_9r-KZSS1PlAv1k9BoCkU8QAvD_BwE&gclsrc=aw.ds
buy as well resistor:
https://fr.aliexpress.com/item/Free-Shipping-100pcs-1M-ohm-1-4W-1M-Metal-Film-Resistor-1Mohm-0-25W-1-ROHS/32480003560.html?spm=a2g0w.search0104.3.203.74dc3375nHK8oH&ws_ab_test=searchweb0_0,searchweb201602_3_10152_10065_10151_5711320_10344_10068_10342_10343_10340_10341_10698_10697_10696_10084_5722520_10083_10618_10305_10304_10307_10306_10302_5711220_10059_5722620_5722920_10184_308_5722720_5722820_100031_10103_441_10624_10623_10622_10621_10620,searchweb201603_25,ppcSwitch_5&algo_expid=be7cd60e-d6c8-4b13-8495-70f8289c245e-29&algo_pvid=be7cd60e-d6c8-4b13-8495-70f8289c245e&priceBeautifyAB=0
and make a new arduino code (mixing pydart and knock sensor) to check if when you have a knock by a dart there is in qite the same time a touch....
https://www.arduino.cc/en/Tutorial/Knock
enjoy!
(It 's been a while I wantedto do that but no time....)
diego50
Piezos are sensitive to sound while a vibration switch isn't.
I've updated the arduino code to support my 4x20 matrix (arduino mega) and to send the hit via WiFi to the raspberry without touching a single line of your code. I can explain the code and the circuit if you find it useful.
About incorporating code to the buttons and to the miss switch, my problem is that the matrix goes directly to the arduino, It was very difficult to interface the matrix because there are no wires nor connectors, it went from the matrix to the old PCB via a elastomeric stripe so I don't want to expand the matrix (keymap) to the buttons because of the wiring (I'd have to share the numrows pins (4 pins via elastomeric stripe that was a pain in the ass to wire to the arduino) and add a numcol pin). I'm thinking about using interruptions... I'd like to wire the buttons totally independent of the matrix...
The vibration switch has lots of bounces and i can't just put a delay() because i can miss the hit. When a hit is correct, the vibration sensor also triggers. A miss is when the sensor triggers and there is not a hit.
Great question & answer!!!
I have been contemplating the same along with adding sennsors to "pause" the game while darts are being removed, motions sensors.
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?
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
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
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
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
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
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!
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!
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
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?
that im not sure of. It will send a miss but the other players game wont know how to process it
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:
--
Sent using Dekko from my Ubuntu device
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?
Why dont you start a new thread regarding this
Hi @Cory !
I merged without reviewing too much, I trust you on beer sake ;)
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 !
Hi @Cory !
I am reviewing some thing that you've done. May we discuss of you work some day ?
Maybe by videocall ?
Cheers :)
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.
Murmullos, care to share your setup with miss sensors and relevant code? Seems like you have a nice setup!