Page 1 of 1

#6 Polling vs. Interrupts [Post Homework Here]

Posted: Thu Apr 17, 2014 4:15 pm
by ThePyroElectro
A new lesson was posted today:
http://www.pyroelectro.com/edu/microcontrollers/polling_interrupts/

Post your homework answers here to compare with everyone else!

Re: #6 Polling vs. Interrupts [Post Homework Here]

Posted: Sun Apr 20, 2014 10:14 pm
by little_cowboy
I'm was having problems with this lesson and was getting a solid HIGH at D13 when I initialized the sketch. The circuit diagram shows the high end of the pushbutton going to the TX pin. Although it's hard to tell from the video, it also seems to be that way on the breadboard.

In reviewing Arduino command reference for attachInterrupt, it referenced D2 as the pin that worked with Interrupt 0. So I moved the jumper from the pushbutton from TX to D2 and everything worked just fine.

Re: #6 Polling vs. Interrupts [Post Homework Here]

Posted: Tue Apr 22, 2014 6:34 pm
by ThePyroElectro
little_cowboy wrote:I'm was having problems with this lesson and was getting a solid HIGH at D13 when I initialized the sketch. The circuit diagram shows the high end of the pushbutton going to the TX pin. Although it's hard to tell from the video, it also seems to be that way on the breadboard.

In reviewing Arduino command reference for attachInterrupt, it referenced D2 as the pin that worked with Interrupt 0. So I moved the jumper from the pushbutton from TX to D2 and everything worked just fine.


Thanks for the feedback!

I believe we made a mistake on the schematic. We'll update it to digital 2, which is interrupt 0.

Re: #6 Polling vs. Interrupts [Post Homework Here]

Posted: Wed Jul 19, 2017 8:52 am
by wingsio
Your article is detailed, thanks to it I solved the problem I am entangled. I will regularly follow your writers and visit this site daily.
wingsio