Catania
Offline
Newbie
Karma: 0
Posts: 40
|
 |
« on: February 09, 2013, 12:47:12 pm » |
Come faccio se non mi bastano il numero di pin? Volevo collegare un Tastierino a matrice 4x4 che occupa 8 pin, come faccio?
|
|
|
|
|
Logged
|
Diplomato Liceo Scientifico anno 2009/2010, oggi Studente al 3° anno in Ingegneria Informatica a Catania.
|
|
|
|
Forum Moderator
Italy
Offline
Brattain Member
Karma: 219
Posts: 16479
Don't know what I do
|
 |
« Reply #1 on: February 09, 2013, 05:30:06 pm » |
Intanto potresti dire che pin hai occupati, per capire quanti te ne restano liberi. Poi, sai che puoi usare i pin analogici come normali pin digitali? Basta usare la numerazione da 14 a 19 per i pin da A0 ad A5 rispettivamente.
|
|
|
|
|
Logged
|
|
|
|
|
Marche
Offline
Edison Member
Karma: 25
Posts: 2060
|
 |
« Reply #2 on: February 09, 2013, 06:06:11 pm » |
In queste situazioni consiglio sempre gli shift register. Questa volta però, dato che si tratta di una tastiera a matrice, consiglio di interfacciarla tramite I2C con l'integrato PCF8574 dato che ti servono pin di ingresso e di uscita per gestirla.
Ottimo anche il suggerimento di Leo, descrivi un attimo il tuo circuito
|
|
|
|
|
Logged
|
|
|
|
|
Catania
Offline
Newbie
Karma: 0
Posts: 40
|
 |
« Reply #3 on: February 10, 2013, 05:42:02 am » |
6 sensori antifurto ciascuno dei quali occupa 1 pin + GND, il tastierino mi serve per l'attivazione disattivazione dell'antifurto, inoltre vi è un modulo ZIGBEE.
|
|
|
|
|
Logged
|
Diplomato Liceo Scientifico anno 2009/2010, oggi Studente al 3° anno in Ingegneria Informatica a Catania.
|
|
|
|
Lamezia Terme
Offline
Shannon Member
Karma: 386
Posts: 10276
Le domande di chi vuol imparare rappresentano la sua sete di sapere
|
 |
« Reply #4 on: February 10, 2013, 06:04:07 am » |
e lo zigbee quanti pin richiede?
|
|
|
|
|
Logged
|
|
|
|
|
Tuscany
Offline
Edison Member
Karma: 20
Posts: 1052
|
 |
« Reply #5 on: February 10, 2013, 06:26:24 am » |
Ma un display LCD ce lo devi mettere ?
|
|
|
|
|
Logged
|
|
|
|
|
Lamezia Terme
Offline
Shannon Member
Karma: 386
Posts: 10276
Le domande di chi vuol imparare rappresentano la sua sete di sapere
|
 |
« Reply #6 on: February 10, 2013, 06:30:48 am » |
Ma un display LCD ce lo devi mettere ?
azzzz, allora discorso chiuso, l'unica è un I2C expander
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 248
Posts: 16535
Available for Design & Build services
|
 |
« Reply #7 on: February 10, 2013, 11:24:19 am » |
ATmega1284P, 32 IO! 
|
|
|
|
|
Logged
|
|
|
|
|
Lamezia Terme
Offline
Shannon Member
Karma: 386
Posts: 10276
Le domande di chi vuol imparare rappresentano la sua sete di sapere
|
 |
« Reply #8 on: February 10, 2013, 12:02:23 pm » |
Bob, let it be the 1284P, it only works on your Bobduino 
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 248
Posts: 16535
Available for Design & Build services
|
 |
« Reply #9 on: February 10, 2013, 01:51:11 pm » |
Still don't understand why all the clock issues folks have.
|
|
|
|
|
Logged
|
|
|
|
|
Lamezia Terme
Offline
Shannon Member
Karma: 386
Posts: 10276
Le domande di chi vuol imparare rappresentano la sua sete di sapere
|
 |
« Reply #10 on: February 10, 2013, 02:32:26 pm » |
Still don't understand why all the clock issues folks have.
I do not know, we are doing hundreds of tests with different bootloader, each micro work (or not) in a different way  But if you program via ISP, the serial works, however, if the bootloader loads, it is very difficult to upload a sketch via serial  In some cases just a R, in others a RC, in others nothing works 
|
|
|
|
|
Logged
|
|
|
|
|
Forum Moderator
Italy
Offline
Brattain Member
Karma: 219
Posts: 16479
Don't know what I do
|
 |
« Reply #11 on: February 10, 2013, 04:16:30 pm » |
ATmega1284P, 32 IO!
...and a lot of room for code too 
|
|
|
|
|
Logged
|
|
|
|
|
Forum Moderator
Italy
Offline
Brattain Member
Karma: 219
Posts: 16479
Don't know what I do
|
 |
« Reply #12 on: February 10, 2013, 04:19:11 pm » |
Still don't understand why all the clock issues folks have.
Me too. Every people has tried to program this chip has encountered problems solved with different solutions. I think the reason can be related to the use of breadboard/protoboard... but I can not replicate those test on a PCB because I don't make PCBs at home
|
|
|
|
|
Logged
|
|
|
|
|
Cagliari
Offline
Faraday Member
Karma: 49
Posts: 3029
|
 |
« Reply #13 on: February 10, 2013, 04:41:12 pm » |
Si, ma a Nunzio che gli frega della vostra discussione in inglese sul 1284P?  Tra l'altro non ha nemmeno detto se ha una UNO o una MEGA. (che gli si potrebbe consigliare) E meno male che l'OT è partito dal Global Moderator seguito a ruota dal Forum Moderator, altrimenti chissà cosa sarebbe potuto accadere.
|
|
|
|
|
Logged
|
|
|
|
|
Lamezia Terme
Offline
Shannon Member
Karma: 386
Posts: 10276
Le domande di chi vuol imparare rappresentano la sua sete di sapere
|
 |
« Reply #14 on: February 10, 2013, 04:53:59 pm » |
Vero, Leo spiega a BOB che se gli va di interfacciarsi con Noi potrebbe intervenire sul Topic sul 644, magari postando lo schema elettrico della sua Bobuino, dalla foto che ha postato io ho visto che ci sono una serie di R da 10k e condensatori vari, si vede che anche la linea TX ha una R  se ci mostrasse come ha risolto lui effettivamente non sarebbe male, no? 
|
|
|
|
|
Logged
|
|
|
|
|
|