![]() ![]() Serial. PinMode(buttonPin, INPUT) // initialize the button as an inputĪttachInterrupt(0, pinISR, CHANGE) // attach an interrupt to the ISR vector PinMode(IRledPin, OUTPUT) // initialize the IR digital pin as an output: Volatile int buttonState = 0 // variable for reading pushbutton status Int buttonPin = 2 // push button connected to pin 2 Int IRledPin = 13 // LED connected to digital pin 13 Int intervalTime = (interval * 1000) //convert interval from seconds to milliseconds # define interval 60 //set interval time in seconds Again, all the components and resistors to make it work properly are integrated right on to the module’s board, so I can just plug and play. I have used a gravity button to fire the shutter when pressed. The gravity IR transmitter module will fire off an IR signal that the camera can recognize, and already has resistors integrated right on the board so I can just plug and play! The Gravity IO expansion shield will give me a convenient 3 pin gravity interface which I can connect my gravity modules to without having to make a mess with with breadboards and jumper wires. It will coordinate all the inputs and outputs. The DFRduino UNO is the Arduino Microcontroller (Such as Arduino UNO) that I will upload code to. It could also translate time given in decimal format (hh. It could work as time converter that converts hours to minutes, minutes to hours, seconds to minutes, minutes to seconds, hours to seconds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |