Pages: 1 ... 8 9 [10]
 91 
 on: Today at 01:29:58 pm 
Started by stefa24 - Last post by stefa24
ciao
aggiorno dicendo che
ho provato ad alimentarlo separatamente ma niente da fare, le prime 8 colonne continuano ad essere scarsamente visibili, ho fatto prove anche collegando tutti i pin dati ma senza risultati, quello che non capisco è che lo stesso problema si presenta con display di due marche diverse mentre una terza marca non mi da questi problemi

Stefano

 92 
 on: Today at 01:29:04 pm 
Started by blaxxun - Last post by wildbill
Quote
if i should post my code

Yes, you should  smiley-wink

 93 
 on: Today at 01:28:25 pm 
Started by juntao65 - Last post by juntao65
So I'm back and having similar IR issues again.

Not with the curtains though, I bought a lutron IR lightswitch and I'm attempting to control that with the duino.

I think I figured out why my previous attempts to clone the curtain signal didn't work: wrong receiver frequency. Unfortunately the lightswitch is also at 40 khz whereas my receiver is 38khz... so there isn't much chance on me cloning it through that method.

So I checked the manufacturer's website and found this:

Code:
Full On:
IRCommand: FF8884B80h
Pronto: 0000 0069 0006 0000 032a 010e 005a 010e 005a 0168 005a 00b4 005a 005a 010e 0276

Full Off:
IR Command: FF88BD120h
Pronto: 0000 0069 0007 0007 032a 010e 005a 010e 005a 005a 0168 005a 005a 010e 005a 00b4 005a 01c2 032a 010e 005a 010e 005a 005a 0168 005a 005a 010e 005a 00b4 005a 01c2


So I took the pronto codes and dumped it in php script and tried using the sendRaw command in the duino. No luck =x

Raw code for off:

Code:
{20518,6839,2280,6839,2280,11399,2280,6839,2280,6839,2280,11399,20518,6839,2280,6839,2280,11399,2280,6839,2280,6839,2280,11399};



I find that the decoded PRONTO codes are a bit weird. For example for the off code:

Code:
PRONTO code: 0000 0069 0006 0006 032a 010e 005a 010e 005a 01c2 005a 010e 005a 010e 005a 01c2 032a 010e 005a 010e 005a 01c2 005a 010e 005a 010e 005a 01c2
Carrier frequency 39477.585219276
Multiplier: 25.33083
Length of One Time Burst: 6
Length of repeat burst: 6
Lead in burst: 20518, 6839
Burst pair 1: (90,270) 2280, 6839 | Bit 1: 0
Burst pair 2: (90,450) 2280, 11399 | Bit 2: 0
Burst pair 3: (90,270) 2280, 6839 | Bit 3: 0
Burst pair 4: (90,270) 2280, 6839 | Bit 4: 0
Burst pair 5: (90,450) 2280, 11399 | Bit 5: 0
Burst pair 6: (810,270) 20518, 6839 | Bit 6: 1
Deliminator timeoff: 6839

Burst pair 7: (90,270) 2280, 6839 | Bit 7: 0
Burst pair 8: (90,450) 2280, 11399 | Bit 8: 0
Burst pair 9: (90,270) 2280, 6839 | Bit 9: 0
Burst pair 10: (90,270) 2280, 6839 | Bit 10: 0
Burst pair 11: (90,450) 2280, 11399 | Bit 11: 0
Binary: 000001

Each bit isn't as obvious as the curtains, where you could easily tell if it was 1 or 0 because it was a combination of 2 different numbers. Whereas this code has more variation.

Here is a link to lutron's IR specs:
http://webcache.googleusercontent.com/search?q=cache:WkVDdMfTqUUJ:www.lutron.com/TechnicalDocumentLibrary/048158.doc+&cd=4&hl=en&ct=clnk&gl=ca

Not sure if I goofed the decoding or not.

 94 
 on: Today at 01:27:01 pm 
Started by hamzabest - Last post by raschemmel
I GIVE UP !
THIS TIME FOR SURE !
GOOD BYE AND GOOD LUCK !

 95 
 on: Today at 01:26:25 pm 
Started by Bartonek - Last post by Bartonek
Hi there,

I think about buying Arduino Yun. But I have some specific requirments and I need to know a few things. smiley I hope you can help me.

1. First - probably it's very stupid but I have to be sure - has AR9331 implemented UDP protocol? smiley

2. Second - can I NOT use URL addresses to setting outputs (like http://myArduinoYun.local/arduino/digital/13) - I just want to get UDP packets to Atheros and directly transfer it to ATmega - simply - can I do it? smiley

3. Third - worst I think - is Arduino Bridge Library available in C language? I prefer to write code in C language, and I need this library in... C language. smiley-wink

Thanks for every help!

 96 
 on: Today at 01:26:17 pm 
Started by rutierut - Last post by AWOL
Code:
if (blue !=Pblue) != 0) {
What is your intention here?

 97 
 on: Today at 01:26:17 pm 
Started by Apiedoedoe - Last post by Robin2
It is much easier for us if you post the code (within code tags) directly in your post.

Also, life is too short to wade through programs full of LCD stuff that has nothing to do with the question.

I think what you are trying to do should be very simple.

When the light goes on record the value of millis() as in
Code:
startMillis = millis()

When the light goes off record the new value as in
Code:
endMillis = millis()

And you get the duration by subtracting one from the other.

...R

 98 
 on: Today at 01:25:59 pm 
Started by rakshithgb - Last post by raschemmel
Ok, you're moving in the right direction but the photo is useless. The photo has to be taken DIRECTLY ABOVE the circuit.
(about 12 to 18" above.) Before taking the photo, separate the wires and tape them down so they are like diagonal lines I can follow
but completely flush against the surface they are on and not sticking up. Use some kind of tape that works well. Then because you
are using wires that are the same color you need to make little paper labels and scotch tape them next to the wires with the "TO & FROM "  pin #s on it. (UNO-D8=>U-4). Before you do that I need you to answer my question about the motor testing. Do both 'motors work now with the library example   ?

Code:
const int Motor1Pin1 = 8;
const int Motor1Pin2 = 9;
const int Motor2Pin1 = 10;
const int Motor2Pin2 = 11;
int trigPin = 13;
int echoPin = 12;

void setup()
{
  Serial.begin(9600);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT); 
  pinMode(Motor1Pin1, OUTPUT);   
  pinMode(Motor1Pin2, OUTPUT);   
  pinMode(Motor2Pin1, OUTPUT);   
  pinMode(Motor2Pin2, OUTPUT);     
}


void loop()
{
  long duration,distance;
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  duration=pulseIn(echoPin, HIGH);
  distance=(duration/2)/29.1;
  if (distance>4)
  {
  GoForward();
  }
  else
  {
  GoBackward();
  }
  if(distance>=200 || distance <=0)
  {
    Serial.println("OUT OF RANGE");
  }
  else
  {
    Serial.print(distance);
    Serial.println(" cm");
  }
  delay(500);
 }

void GoForward()
{
  digitalWrite(Motor1Pin2, LOW);
  digitalWrite(Motor1Pin1, HIGH);
  digitalWrite(Motor2Pin2, LOW);
  digitalWrite(Motor2Pin1, HIGH);
}

void GoBackward()
{
  digitalWrite(Motor1Pin1, LOW);
  digitalWrite(Motor1Pin2, HIGH);
  digitalWrite(Motor2Pin1, LOW);
  digitalWrite(Motor2Pin2, HIGH);
}
 

What the heck is this ? Is this the code you are using ?
You've taken wiring from two tutorials and you have not tested your circuit with the code given in the tutorial ?
LUCY ! YOU GOTTO WHOLE LOTTA SPAININ' TO DO !
(You better have a good explanation for why you posted that code)

 99 
 on: Today at 01:23:53 pm 
Started by beyondal - Last post by Grumpy_Mike
Code:
      digitalWrite(enableLensPin, HIGH); // direction one
      digitalWrite(LensPin1, HIGH);  // set leg 1 of the H-bridge high
      digitalWrite(LensPin2, LOW);   // set leg 2 of the H-bridge low
LOOK
You only need 2 wires to control a DC motor forwards or back or stop.
Why, why why are you using an enable AND control of the two legs of the bridge.
YOU DON"T NEED THE ENABLE!!!!
Wire it permanently HIGH and don't bother giving it an arduino pin.

As to the code it will turn the motor forward and reverse with equal times, you want to be able to turn it forward backwards and off each with its own specified period. Therefore your code needs to be a bit more complex. You need another state variable that specifies the motor state and in that code once you decide it is time to change the motor you need to look at this state variable to decide if to turn it on forward , on backwards or stop ( stop is both legs of the h-bridge being the same logic level ). When you have done that set the 'goTime1' to the time when the next change should occur. This will be different for each state and so you do it directly after doing the motor control bit. That means you have three values of 'nextTime1' say call them nextTime1off, nextTime1forward, nextTime1reverse.


 100 
 on: Today at 01:22:41 pm 
Started by JetSetWilly - Last post by retrolefty
I might be more impressed if you were a regular contributor here.

 Still looking forward to your offering Paul, titled "Arduino software for dumb asses".  smiley-grin

Pages: 1 ... 8 9 [10]