Hello all,
I've a bulls matrix with 8x12. The Problem is that there are different values if I hit S20 on the inner ring (3) and on the outer ring (K). Is there a way to configure the e.g. S20 to "3 and K" ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Old thread, but adding this for others who might encounter the same as Mike. I am using an Arachnid Cricket Pro 650 board as a donor board, which has 8 x 11 matrix. This has the same problem was that the outer single panels and the inner single panels were returning different values.
To solve, I mapped these all out on paper. I then edited the "char keymap[numRows][numCols] " section in the Arduino sketch to return the same value when either the inner or outer Single panel was hit for a number.
For example, let's say the outer Single panel for 10 was returning a "=", but the inner Single panel for 10 was returning a ")". I just switched the code in the Arduino sketch so that inner single panel also returned a "=". So if either inner the single panel or the outer single panel is hit, the same value is returned and seen by Pydarts as a the same (an S10 in this example)
Works flawlessly, without any other code changes. I hope this helps someone!
Last edit: John Morris 2021-08-23
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
-
2019-03-15
???
you did not write the matrix with numbers?
1 matrix number correspond to a part of the board.
for example, if you hit the triple 9 which correspond to the number 71 of your column/row matrix, the soft will affich 71.
In the config file just write :
71 : T9
seems right poilou?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The section keys are not the original config yet. I've find a way to use my board with pydarts ;)
To use the inner and outer single fields I've spend a bit of time to the code and do the following (do not lought, I'am not a programmer first I maked a config for the inner single segments second I maked a config for the outer segments
* then I used the config for the outer segments and expand it with the inner segments like:
[SectionKeys]S20:3iS20:Kand so on
In the file CConfig.py I modified the List under "ConfigList['SectionKeys'] = {"
and
self.DefaultScoreMap = {
like
This works for all segments but If you hit the "inner single 7" the software crash. With only inner segment config it works like a charme for the inner.....
With only outer segment config it works like a charme to for the outer.....
Do you have any idea why the software crashes only by hiting the inner 7?? Every other segments are working.
I've tried different arduino configs and changing rows. I've used serial monitor and I mean the board and arduino are working correct.
I've tried to debug the software, are there any logfiles or so on in debug mode?
cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2019-03-19
Hi,
you have to know which value the soft send when you hit the target.
I reckon filling the matrix with number does not work.
I think you have to put a single character.
c u
the original config from my arduino mega is:
char keymap[numRows][numCols] = {
{33,34,35,36,37,38,39,40,41,42,43,44},
{45,46,47,48,49,50,51,52,53,54,55,56},
{57,58,59,60,61,62,63,64,65,66,67,68},
{69,70,71,72,73,74,75,76,77,78,79,80},
{81,82,83,84,85,86,87,88,89,90,91,92},
{93,94,95,96,97,98,99,100,101,102,103,104},
{105,106,107,108,109,110,111,112,113,114,115,116},
{117,118,119,120,121,122,123,124,125,126,128,129},
{130,131,132,133,134,135,136,137,138,139,140,141}
};
The section keys are not the original config yet.
I've find a way to use my board with pydarts ;)
To use the inner and outer single fields I've spend a bit of time to the code and do the following (do not lought, I'am not a programmer
first I maked a config for the inner single segments
second I maked a config for the outer segments
* then I used the config for the outer segments and expand it with the inner segments like: [SectionKeys] S20:3 iS20:K and so on
In the file CConfig.py I modified the List under "ConfigList ['SectionKeys'] = {"
and
self.DefaultScoreMap = {
like
ConfigList['SectionKeys'] = {
's20':'',
'is20':'',
'd20':'',
't20':'',
's19':'',
'1s19':'',
'd19':'',
't19':'',
's18':'',
's18':'',
and so on.....
This works for all segments but If you hit the "inner single 7" the software crash. With only inner segment config it works like a charme for the inner.....
With only outer segment config it works like a charme to for the outer.....
Do you have any idea why the software crashes only by hiting the inner 7?? Every other segments are working.
I've tried different arduino configs and changing rows. I've used serial monitor and I mean the board and arduino are working correct.
I've tried to debug the software, are there any logfiles or so on in debug mode?
cheers
diverent values for single field in outer and inner segment
there are still problems, Ho one works. But cricket doesn't work. I think poilou is right, there are many thinks to do it working with all the Games.
I've one other idea. Maybe it's possible and easier to modify the value from example for the inner 9 to the value of the outer 9 and send this to the rpi... I will try it in the next days.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
now it's running like a charme. Because there were many things to change to get it running with a quadro matrix I've thinking a lot of how to get it to work. The solution was to modify the ASCII values before it was send to the rpi and pydarts. So I've changed the code on the arduino and rewrite the values for e.g. the inner 7 segment to the the value of the outer 7. So with 20 if statements I changed the matrix for pydarts view from four to three segments per number. Here is my original scratch, maybe it will help other people:
Hope this help people who try to build same kind of board...
Nice job !
Cheers :)
On 03/04/2019 11:43, Mike Nagel wrote:
Hello,
now it's running like a charme. Because there were many things to change to get it running with a quadro matrix I've thinking a lot of how to get it to work. The solution was to modify the ASCII values before it was send to the rpi and pydarts. So I've changed the code on the arduino and rewrite the values for e.g. the inner 7 segment to the the value of the outer 7. So with 20 if statements I changed the matrix for pydarts view from four to three segments per number. Here is my original scratch, maybe it will help other people:
~~~
const byte numRows = 9;
const byte numCols = 12;
const int debounceTime = 100;
I'm a bit late to the party, but my board was also setup for inner and outer rings as well. I solved the problem by tying my inner and outer rings together. I took what would have been an 10x11 matrix and made it 8x11.
I will get pictures when I get to the basement!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all,
I've a bulls matrix with 8x12. The Problem is that there are different values if I hit S20 on the inner ring (3) and on the outer ring (K). Is there a way to configure the e.g. S20 to "3 and K" ?
Old thread, but adding this for others who might encounter the same as Mike. I am using an Arachnid Cricket Pro 650 board as a donor board, which has 8 x 11 matrix. This has the same problem was that the outer single panels and the inner single panels were returning different values.
To solve, I mapped these all out on paper. I then edited the "char keymap[numRows][numCols] " section in the Arduino sketch to return the same value when either the inner or outer Single panel was hit for a number.
For example, let's say the outer Single panel for 10 was returning a "=", but the inner Single panel for 10 was returning a ")". I just switched the code in the Arduino sketch so that inner single panel also returned a "=". So if either inner the single panel or the outer single panel is hit, the same value is returned and seen by Pydarts as a the same (an S10 in this example)
Works flawlessly, without any other code changes. I hope this helps someone!
Last edit: John Morris 2021-08-23
Hi, you should implement 3 as S20 and K as s20 as well.
c u
I've tried this way:
But it doesn't work...
Hi Mike !
I can tell you straight away that what you try to do has not been
implemented.
To do so, we have change A LOT of things in the main code, and in games
as well.
Would be an idea to fork the code if you decide to go this way.
Cheers
On 14/03/2019 14:16, Mike Nagel wrote:
???
you did not write the matrix with numbers?
1 matrix number correspond to a part of the board.
for example, if you hit the triple 9 which correspond to the number 71 of your column/row matrix, the soft will affich 71.
In the config file just write :
71 : T9
seems right poilou?
the original config from my arduino mega is:
The section keys are not the original config yet.
I've find a way to use my board with pydarts ;)
To use the inner and outer single fields I've spend a bit of time to the code and do the following (do not lought, I'am not a programmer
first I maked a config for the inner single segments
second I maked a config for the outer segments
* then I used the config for the outer segments and expand it with the inner segments like:
In the file CConfig.py I modified the List under "ConfigList['SectionKeys'] = {"
and
self.DefaultScoreMap = {
like
This works for all segments but If you hit the "inner single 7" the software crash. With only inner segment config it works like a charme for the inner.....
With only outer segment config it works like a charme to for the outer.....
Do you have any idea why the software crashes only by hiting the inner 7?? Every other segments are working.
I've tried different arduino configs and changing rows. I've used serial monitor and I mean the board and arduino are working correct.
I've tried to debug the software, are there any logfiles or so on in debug mode?
cheers
Hi,
you have to know which value the soft send when you hit the target.
I reckon filling the matrix with number does not work.
I think you have to put a single character.
c u
----- Mail original -----
De: "Mike Nagel" superaddi@users.sourceforge.net
À: "[pydarts:discussion]" general@discussion.pydarts.p.re.sourceforge.net
Envoyé: Vendredi 15 Mars 2019 15:03:26
Objet: [pydarts:discussion] Re: diverent values for single field in outer and inner segment
the original config from my arduino mega is:
char keymap[numRows][numCols] = {
{33,34,35,36,37,38,39,40,41,42,43,44},
{45,46,47,48,49,50,51,52,53,54,55,56},
{57,58,59,60,61,62,63,64,65,66,67,68},
{69,70,71,72,73,74,75,76,77,78,79,80},
{81,82,83,84,85,86,87,88,89,90,91,92},
{93,94,95,96,97,98,99,100,101,102,103,104},
{105,106,107,108,109,110,111,112,113,114,115,116},
{117,118,119,120,121,122,123,124,125,126,128,129},
{130,131,132,133,134,135,136,137,138,139,140,141}
};
byte rowPins[numRows] = {A0, A1, A2, A3, A4, A5, A6, A7, A8};
byte colPins[numCols] = {22, 24, 26, 28, 30, 32, 34, 36, 23, 25, 27, 29};
The section keys are not the original config yet.
I've find a way to use my board with pydarts ;)
To use the inner and outer single fields I've spend a bit of time to the code and do the following (do not lought, I'am not a programmer
first I maked a config for the inner single segments
second I maked a config for the outer segments
* then I used the config for the outer segments and expand it with the inner segments like:
[SectionKeys] S20:3 iS20:K and so on
In the file CConfig.py I modified the List under "ConfigList ['SectionKeys'] = {"
and
self.DefaultScoreMap = {
like
ConfigList['SectionKeys'] = {
's20':'',
'is20':'',
'd20':'',
't20':'',
's19':'',
'1s19':'',
'd19':'',
't19':'',
's18':'',
's18':'',
and so on.....
self.DefaultScoreMap = {'SB': 25,'DB': 50,
'S20': 20, 'iS20': 20, 'D20': 40, 'T20': 60,
'S19': 19,'iS19': 19,'D19': 38,'T19': 57,
'S18': 18,'iS18': 18,'D18': 36,'T18': 54,
This works for all segments but If you hit the "inner single 7" the software crash. With only inner segment config it works like a charme for the inner.....
With only outer segment config it works like a charme to for the outer.....
Do you have any idea why the software crashes only by hiting the inner 7?? Every other segments are working.
I've tried different arduino configs and changing rows. I've used serial monitor and I mean the board and arduino are working correct.
I've tried to debug the software, are there any logfiles or so on in debug mode?
cheers
diverent values for single field in outer and inner segment
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/
Working with decimal value of the key works perfect, I've tested with serial monitor in Arduino IDE and directly om tke rpi witch cu.
Hello folk,
the problem with the inner 7 is solved. I had a copy and paste error in self.DefaultScoreMap.
cheers
Mike
there are still problems, Ho one works. But cricket doesn't work. I think poilou is right, there are many thinks to do it working with all the Games.
I've one other idea. Maybe it's possible and easier to modify the value from example for the inner 9 to the value of the outer 9 and send this to the rpi... I will try it in the next days.
Hello,
now it's running like a charme. Because there were many things to change to get it running with a quadro matrix I've thinking a lot of how to get it to work. The solution was to modify the ASCII values before it was send to the rpi and pydarts. So I've changed the code on the arduino and rewrite the values for e.g. the inner 7 segment to the the value of the outer 7. So with 20 if statements I changed the matrix for pydarts view from four to three segments per number. Here is my original scratch, maybe it will help other people:
Great !
Hope this help people who try to build same kind of board...
Nice job !
Cheers :)
On 03/04/2019 11:43, Mike Nagel wrote:
I'm a bit late to the party, but my board was also setup for inner and outer rings as well. I solved the problem by tying my inner and outer rings together. I took what would have been an 10x11 matrix and made it 8x11.
I will get pictures when I get to the basement!