I looked at what I need to do to make the sketch more granular and found that I had missed out one test for the change in diameter. I also thought of a much easier way to change granularity using the same sketch, allowing you to change one line of code to change back and forth.
Hopefully, it'll be ready tomorrow before your wife gets home 🙂
Anything seems possible when you don't know what you're talking about.
I looked at what I need to do to make the sketch more granular and found that I had missed out one test for the change in diameter. I also thought of a much easier way to change granularity using the same sketch, allowing you to change one line of code to change back and forth.
Hopefully, it'll be ready tomorrow before your wife gets home 🙂
Hi Will,
Ok, sound great. I will set up the project and check the mail and the forum for any new info. No dog walk tomorrow so I will be ready earlier but no rush. Take your time. 🙂 Thanks!
Thanks,
Voltage
Anything seems possible when you don't know what you're talking about.
I forgot to tell you that you were right, there's really only one new definition to switch from two to one decimal and only one new line of code to effect it.
Anything seems possible when you don't know what you're talking about.
Thanks,
Voltage
Will, so far the display is rock solid and all digits are showing and the flutter is gone, even in the one last digit on the DIA line. It doesn't matter if SINGLEDECIMAL is true or false as it doesn't appear to do anything.
I think the POTJITTER addition to the code is likely what fixed the pot fluttering.
Thanks,
Voltage
Will, so far the display is rock solid and all digits are showing and the flutter is gone, even in the one last digit on the DIA line. It doesn't matter if SINGLEDECIMAL is true or false as it doesn't appear to do anything.
I think the POTJITTER addition to the code is likely what fixed the pot fluttering.
Good, we're still making progress, POTJITTER is the test I mentioned that I forgot.
As for SINGLEDECIMAL, please try changing the line
dia = (10 * floor(dia))/((long) 10);
to
dia = (dia/10)*10;
and see if that really lowers the diameter to 1 decimal digit.
Anything seems possible when you don't know what you're talking about.
Will, so far the display is rock solid and all digits are showing and the flutter is gone, even in the one last digit on the DIA line. It doesn't matter if SINGLEDECIMAL is true or false as it doesn't appear to do anything.
I think the POTJITTER addition to the code is likely what fixed the pot fluttering.
Good, we're still making progress, POTJITTER is the test I mentioned that I forgot.
As for SINGLEDECIMAL, please try changing the line
dia = (10 * floor(dia))/((long) 10);
to
dia = (dia/10)*10;
and see if that really lowers the diameter to 1 decimal digit.
No, that doesn't change anything and I have the
SINGLEDECIMAL true
Thanks,
Voltage
OK, I'm going to have to think about that for a while. Since dia is an integer, it should be doing integer math and that should always leave dia as a multiple of 10. Apparently it isn't.
Off for my walk.
Anything seems possible when you don't know what you're talking about.
OK, I'm going to have to think about that for a while. Since dia is an integer, it should be doing integer math and that should always leave dia as a multiple of 10. Apparently it isn't.
Off for my walk.
Hold the phone! I just looked at it again and changed from false to true again and that is when I noticed. It is working in the sense that the last digit on the DIA display stays at zero(0) but is still there. I guess I was expecting the last digit to disappear. So I would call that as good and perfectly acceptable. No need to try and remove the visibility of the last digit now that I caught my error. It's perfect now. 🙂
Thanks,
Voltage
Great ! now I can think about something else on my walk 🙂
I don't know how (or if) you can change the displayed decimals on the shield.
I can probably do it by custom formatting the number before displaying it as a string if it's a problem.
I also want to point out that restricting the diameter to tenths of an inch will give you fewer available speeds, so you won't be able to fine-tune your surface speed as well as using two digit diameter values.
Anything seems possible when you don't know what you're talking about.
Great ! now I can think about something else on my walk 🙂
I don't know how (or if) you can change the displayed decimals on the shield.
I can probably do it by custom formatting the number before displaying it as a string if it's a problem.
I also want to point out that restricting the diameter to tenths of an inch will give you fewer available speeds, so you won't be able to fine-tune your surface speed as well as using two digit diameter values.
Like I said. It's PERFECT the way it is. Originally you were going to try to reduce the amount of decimals because of the display flutter. But you seem to have fixed that with the other POTJITTER code. I love it the way it is. 😎
Thanks,
Voltage
Like I said. It's PERFECT the way it is. Originally you were going to try to reduce the amount of decimals because of the display flutter. But you seem to have fixed that with the other POTJITTER code. I love it the way it is. 😎
Good, let me know if you find any other problems or glitches while you're testing.
Anything seems possible when you don't know what you're talking about.
Like I said. It's PERFECT the way it is. Originally you were going to try to reduce the amount of decimals because of the display flutter. But you seem to have fixed that with the other POTJITTER code. I love it the way it is. 😎
Good, let me know if you find any other problems or glitches while you're testing.
I appreciate all the effort you put into this by helping me with this project mod. I also have learned a lot by observing how you have coded. I used to (and still can) code with VB6 and have wrote a software (shareware) for the handcrafted soap making people. Now I just have to keep my nose to the grindstone and learn more about the C/C++ language (which one is it anyway). I will let you know if I find any missed issues with my limited beta testing on the kitchen counter. 😀 Next after the weather cools off some, I need to get back out into the workshop and start making a new unit (this time portable) for this code and stepper. It's been 100+ degrees out there the last month or so, and it's not getting any cooler for another 1 or 2 months. Sweating and welding don't go together very well, either does dripping sweat all over my high dollar machines in the shop. If there is anything I can do for you, let me know.
Thanks,
Voltage