Kiss,
No, I don't get upset or angry or in bad moods, in fact every day I wake up & smell fresh air I am grateful to be alive. Three years ago I nearly kicked the bucket & now I have a totally different outlook on life. However I do get very frustrated, confused & very ill on a daily basis due to my condition but that's unavoidable now, that's life though!
I don't know how to give up & will keep going at this until I drop before I give in.
My biggest stumbling block is that I had no education when younger, my education was with Lathe, Mill, Welders, Engines, Dyno's, Airflow Development, Race Cars etc from a very young age.
Hence the cross eyed attitude when I have to learn Binary, Programming etc, I could read a Micrometre, Verniers, Manometers & Tape measures from the age of eight but never learnt how to read & write until about ten years ago.
That aside, today I did learn something that was useful, for some reason I thought that BCD was the same as Binary numbers & I can tell ya it caused me so much confusion I did think I could never work it out. When I started on this I found an on line calculator & punched in the number 8 & in Binary & BCD it was 1000 then I tried 9 & got 1001.
My thoughts were ok they are both the same?
Today I found out differently & can now see what BCD is, bloody hell I wasted some time thinking this is impossible to work out haha!
I only have a couple of brain cells left & this killed a couple more!
Ok, onto the Sketch, I tried the new sketch you posted & still get the same result as the first original sketch, I have attached a serial shot named:
"ULN2003 +5V New Code", test was from 0-9 on the switch. The Output is still inverted.
I tried many other things today with no luck but I don't really know what I am trying to get, I thought 0-9 is what we wanted, isn't this BCD to Decimal & what we need?
So if we have two BCD switches & select say 20 with them the Arduino will see 0010 0000, this is where I am confused now, what are we looking for & why?
Anyway, I tried "+5V to Common" instead of "common to ground" & used 10k resistors to ground without the ULN2003 & have attached a serial shot of this as well named:
"+5V Common Original Sketch", again the test was 0-9 on the switch. The Output is not inverted now, not sure about the switchNo though?
I did try ( ~ ! @ # $ % ^ & * () _ + =><?":;'}[{}]`HYGTFREXRGHHUHYYRXEWT:"UTDJHUIUYK+89879/+-=99867656565643fcfgd4wwjxe32dhgguhggcdajgjhgukruy) today as well as a million more things, the only thing I didn't try was throwing the computer out the window which I think may improve things ha!
Cheers
No, I don't get upset or angry or in bad moods, in fact every day I wake up & smell fresh air I am grateful to be alive. Three years ago I nearly kicked the bucket & now I have a totally different outlook on life. However I do get very frustrated, confused & very ill on a daily basis due to my condition but that's unavoidable now, that's life though!
I don't know how to give up & will keep going at this until I drop before I give in.
My biggest stumbling block is that I had no education when younger, my education was with Lathe, Mill, Welders, Engines, Dyno's, Airflow Development, Race Cars etc from a very young age.
Hence the cross eyed attitude when I have to learn Binary, Programming etc, I could read a Micrometre, Verniers, Manometers & Tape measures from the age of eight but never learnt how to read & write until about ten years ago.
That aside, today I did learn something that was useful, for some reason I thought that BCD was the same as Binary numbers & I can tell ya it caused me so much confusion I did think I could never work it out. When I started on this I found an on line calculator & punched in the number 8 & in Binary & BCD it was 1000 then I tried 9 & got 1001.
My thoughts were ok they are both the same?
Today I found out differently & can now see what BCD is, bloody hell I wasted some time thinking this is impossible to work out haha!
I only have a couple of brain cells left & this killed a couple more!
Ok, onto the Sketch, I tried the new sketch you posted & still get the same result as the first original sketch, I have attached a serial shot named:
"ULN2003 +5V New Code", test was from 0-9 on the switch. The Output is still inverted.
I tried many other things today with no luck but I don't really know what I am trying to get, I thought 0-9 is what we wanted, isn't this BCD to Decimal & what we need?
So if we have two BCD switches & select say 20 with them the Arduino will see 0010 0000, this is where I am confused now, what are we looking for & why?
Anyway, I tried "+5V to Common" instead of "common to ground" & used 10k resistors to ground without the ULN2003 & have attached a serial shot of this as well named:
"+5V Common Original Sketch", again the test was 0-9 on the switch. The Output is not inverted now, not sure about the switchNo though?
I did try ( ~ ! @ # $ % ^ & * () _ + =><?":;'}[{}]`HYGTFREXRGHHUHYYRXEWT:"UTDJHUIUYK+89879/+-=99867656565643fcfgd4wwjxe32dhgguhggcdajgjhgukruy) today as well as a million more things, the only thing I didn't try was throwing the computer out the window which I think may improve things ha!
Cheers