it's not the video's the little gadgets or knowledge to be gained by tuning in Paul that keep's us coming back, IT'S YOU!!! you were the 1st EE to answer a query i had way back when i 1st got into this!!(& i'LL never forget that) and you still as awesome as always!! CANT WAIT FOR THE 100K! (MAKE US PROUD)
Programming tip: If you know you have a place where you will always be working with something that has just TWO modes you can indicate them with -1 and +1. The benefit is that when you're ready to switch the modes, you don't have to know what state it was in, you just multiply it by -1 and it switches. In the rest of the code you just test for -1 or +1 instead of 0 and +1. Not a huge change, just an small efficiency trick.
Great little project and nice example of debouncing in software, cheers! An old arduino project of mine had some time sensitive code that didn't like the delay() calls used by this method. There's some examples out there of debouncing with a counter, but I had good success with a 74HCT14 hex inverting schmitt trigger IC making the code a bit simpler.
Nice video, like the troubleshooting part, shows that everyone makes mistakes. I remember my last one, math test in 4th grade second last question.. It has haunted for more that 40 years, well just shows that everyone makes mistakes hehe.
Very nice video. This is something that I want to do to turn a 12 v motor on and switch directions using a DPDT relay. Will you share your Arduino sketch? Thanks, Kennedy
Guys a newbie question, that has been bothering me for a while... why you connect the resistors on the ground side and not on the positive side? Is there any difference at all? Thank you :)