This project will demonstrate ultrasonic sensors in action and how to use interrupts.
Project tutorial by Phuong Vo
This project will show you how to fade lights, add a button to it.
Start by doing a simple traffic light, then add a button to control when it turns red. This is a good project for people starting Arduino.
Thank you for the improvement. I will put the improved code in the project.
It is possible by using the delay function but this would mean the micro-controller will stop checking the button until the delay has ended or you could use the improvement to the delay function as above to check while delaying. Sorry for being a bit late. I was busy. Hope this is still useful for someone.
Thank you for your comment and pointing that out. I also found out some mistakes in the the schematic as I noticed the LEDs were going to 5V instead of GND.
Or connect with your social account:
New here? Create an account