Pages: [1]   Go Down
Author Topic: Button issue ATtiny84  (Read 321 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have i problem with getting a button to work on my programmed ATtiny84. All it is one button and an RGB LED every time you push the button and it go's to the next colour or pattern. The program works fine (tested with just the arduino everything working). The ATtiny is wired up the same as the arduino but isn't working the same it seems to be cycling throw the colour's its self with out me even pressing the button. Any idea's on why its doing this or how to fix it?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have i problem with getting a button to work on my programmed ATtiny84. All it is one button and an RGB LED every time you push the button and it go's to the next colour or pattern. The program works fine (tested with just the arduino everything working). The ATtiny is wired up the same as the arduino but isn't working the same it seems to be cycling throw the colour's its self with out me even pressing the button. Any idea's on why its doing this or how to fix it?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 179
Posts: 8068
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe your button is shorted. Maybe your pull-up or pull-down resistor is mis-wired. Insufficient details for further speculation.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1029
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or maybe you have not used the right pin numbers

See this cheet sheet:

http://www.akafugu.jp/images/microcontroller-reference-sheet.png
Logged

Croatia
Offline Offline
Sr. Member
****
Karma: 11
Posts: 432
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Without the code or your wiring schematic I can only presume you don't have a pull up/down resistor.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok got it  the micro controller pin that connects to the button wasn't groaned properly.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Please do not cross-post.
Logged

Pages: [1]   Go Up
Jump to: