A sketch that plays festive Christmas carols on Arduino using a simple speaker circuit.
Use a single interrupt to easily and simply process any number of switches, button or toggle and wired in any scheme.
Project tutorial by ronbentley1
Craft and play musical scores using music notations
Use the Arduino Due to control a large LED flat panel display. And the software to create and solve mazes on it.
Project tutorial by Doug Domke
Learn the basics of programming timer interrupts on the ATmega328P.
Project tutorial by dhorton668
Chess processor with GUI dedicated for Arduino Mega.
Project showcase by Sergey_Urusov
Have a look at this library for controlling one or many 74hc595 chips (ez_SIPO8):
It makes working with these ICs straight forward and succinct in coding and has a theoretical upper limit of 2040 outputs.
thank you for your comments and observations. I will try and deal with both of your posts below.
post 1: I have removed the reference to the use of millis() as I can see your confusion. The method offered does not use the timer0 ISR, so I can only apologise for any confusion here.
post 2: there was a typo in the article - I referred to the RISING parameter with regard to a pinMode call. Of course, this should have referenced an attachinterrupt call instead.
As far as missing a double push, then no. If a double push is made then two scenarios are relevant:
Thank you for your observations which I have taken on board. The forum is excellent for publishing material, but what it lacks is a peer review process. I dare say that what we are going through here can be considered as a peer review process, so all good.
Finally, I do not know if you have looked at another of my posts - ez_switch_lib, but the user guide includes a more sophisticated use of a single ISR for many switches, I have added the link to the ez_switch_lib to the Further Reading section of the above article. See the user guide Corollary/Many Switches, One Interrupt Service Routine (ISR).
Once again, many thanks
A very nice exposition of a technically complex subject and interesting solutions.
The balance of your article is just right - sufficient for a casual reader to understand and deeper detail for those who wish to delve deeper.
The writing style also lends itself to easy reading.
A very good article, much enjoyed.
Or connect with your social account:
New here? Create an account