rickseiden
Posts: 411
Joined: Thu Aug 02, 2012 12:21 pm
Location: Buffalo, NY, USA

using the buttons with the ATmega

Sun Jan 06, 2013 4:08 pm

Is there any way to use the buttons \on the Gertboard with the ATmega chip on the Gertboard?

Would it be as simple as hooking up the ATmega pins to the buffer pins? I think you'd need to connect a pin to a pull up/pull down resister, wouldn't you?

Thanks
Rick
There are 10 types of people in this world. Those that understand binary, and those that don't.

rickseiden
Posts: 411
Joined: Thu Aug 02, 2012 12:21 pm
Location: Buffalo, NY, USA

Re: using the buttons with the ATmega

Sun Jan 06, 2013 4:38 pm

This seems to work, but I want to get someone like Gordon to say it's right, because I'm such a noob. :)

Code: Select all

3.3v ----/\/\/\/\-----+--------/ ----- Ground
           10K        |        s1
                      |              
             ATmega Input Pin 
I used this with the Button example, and it appeared to work just fine.
There are 10 types of people in this world. Those that understand binary, and those that don't.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: using the buttons with the ATmega

Sun Jan 06, 2013 5:18 pm

There's an example for the use of buttons with the ATmega in the Gertboard manual (p 33-34).

Links for Gertboard docs can be found here: http://www.raspberrypi.org/phpBB3/viewt ... 42&t=20410

Gr.
Dirk.

rickseiden
Posts: 411
Joined: Thu Aug 02, 2012 12:21 pm
Location: Buffalo, NY, USA

Re: using the buttons with the ATmega

Sun Jan 06, 2013 6:23 pm

Guess I should have kept reading until I got to that page, huh? RTFM, Rick. RTFM!
There are 10 types of people in this world. Those that understand binary, and those that don't.

Return to “HATs and other add-ons”