|
271
|
International / Software / Re: Comunicazione seriale tra Arduini
|
on: August 02, 2012, 03:13:42 pm
|
|
Proprio così. Solo che ho usato una fotoresistenza perchè il mio rifornitore non aveva fototra sistor, ma da quanto ho capito cambia poco. Ho notato però un particolare nello schema col led: il led ad alta luminosità si accende di 1/10 rispetto al normale, spegnendosi quando si tappa la fotoresistenza. Inoltre l' arduino non mi rivela proprio del seriale (usando serial.available). Appena posso posto gli schemi. Cosa pensi possa essere testato? Io ho pensato al fatto che la fotoresistwnza faccia passare pochi ampere, come si è visto col led ( anche se come tensione.di uscita mi dava 5V)
|
|
|
|
|
272
|
International / Software / Re: Comunicazione seriale tra Arduini
|
on: August 02, 2012, 10:38:03 am
|
Il circuito va bene a metà. mi spiego meglio: il led si spegne quando io tappo la fotoresistenza, ma la comunicazione seriale non funziona. Forse ho sbagliato a collegare qualcosa nel circuito? io ho messo ' RX al posto del + del led. 
|
|
|
|
|
278
|
Using Arduino / Networking, Protocols, and Devices / Re: IR connection
|
on: July 26, 2012, 03:13:57 pm
|
Ok. Thank a lot. only a question... What is this???: ) Mode bitWrite(TCCR1A, WGM10, 0); bitWrite(TCCR1A, WGM11, 0); bitWrite(TCCR1B, WGM12, 1); bitWrite(TCCR1B, WGM13, 0);
// Toggle OC1A and OC1B on Compare Match. bitWrite(TCCR1A, COM1A0, 1); bitWrite(TCCR1A, COM1A1, 0); bitWrite(TCCR1A, COM1B0, 1); bitWrite(TCCR1A, COM1B1, 0);
// No prescaling bitWrite(TCCR1B, CS10, 1); bitWrite(TCCR1B, CS11, 0); bitWrite(TCCR1B, CS12, 0);
OCR1A = 210; OCR1B = 210; I don't understand what it means... can you help me  ?
|
|
|
|
|
281
|
Using Arduino / Networking, Protocols, and Devices / Re: IR connection
|
on: July 26, 2012, 07:50:46 am
|
I think a serial connection (if it is possible) like this, but the RX doesn't receve anything. my code is this: void setup(){ Serial.begin(9600); pinMode(13,OUTPUT); } void loop(){
if (Serial.available()>0){
if(Serial.read()=='2'){ digitalWrite(13, HIGH); } } }
void setup(){ Serial.begin(9600); pinMode(13,OUTPUT); } void loop(){ digitalWrite(13,HIGH); Serial.print('2'); }
|
|
|
|
|
283
|
Using Arduino / Networking, Protocols, and Devices / IR connection
|
on: July 26, 2012, 06:39:35 am
|
|
hello everybody! Today I had some problems with a Infrared connection between two adruino boards. i don't want use the ken shriff librarie's. I' ve a phototransistor (2 pin) and a TSOP (3 pin). Can you help me to solve this problem? Thank a lot!!!
|
|
|
|
|
284
|
International / Software / Re: Comunicazione seriale tra Arduini
|
on: July 26, 2012, 01:53:13 am
|
Bel link, ma io non volevo usare la libreria di ken  (anche se molto probabilmente sarò obbligato) questo era solo un prototipo per passare al bluethoot oppure alla frequenza modulata. Comunque come dovrei fare per la connessione usando un fototransisor a 2 pin? and about the sketch?
|
|
|
|
|
285
|
International / Software / Re: Comunicazione seriale tra Arduini
|
on: July 25, 2012, 12:32:48 pm
|
Scusami tantissimo no... testato era proprio quello quello che volevo fare un on/off  comunque penso di avere un foto transistor a 2 pin!  Dovrei ancora usare il seriale? che sketch dovrei usare? e che schema? Grazie a tutti e sopratutto a testato! 
|
|
|
|
|