Show Posts
Pages: 1 ... 13 14 [15] 16
211  Forum 2005-2010 (read only) / Interfacing / Nokia 6610 LCD how to Draw Image?? on: January 13, 2011, 01:58:43 pm
I've got a Nokia 6610 LCD.

I am wondering how I can draw a BMP image on it using an Arduino?

Of course I have used the "BmpToArray" software to convert the image to an array.

Any help is appreciated.

Thanks,
M.
212  Forum 2005-2010 (read only) / Interfacing / Re: Android tablet USB to Arduino? on: December 03, 2010, 12:20:30 pm
There should be;

FDTI drievrs are Java based and Java should run on Android.

M.
213  Forum 2005-2010 (read only) / Interfacing / Re: Android tablet USB to Arduino? on: December 03, 2010, 11:35:14 am
I'm also interested in this.

Subscribed!
214  Forum 2005-2010 (read only) / Interfacing / OLED Interfacing with Arduino on: November 22, 2010, 05:15:50 pm
I have bought one of these: http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=380278436052&ssPageName=STRK:MEWAX:IT

Has anyone tried to interface these with Arduino? Possible at all?

Any help is appreciated.

Thanks,
M.
215  Forum 2005-2010 (read only) / Interfacing / Re: Overvoltage protection using diodes?? on: September 03, 2010, 07:25:39 am
Sorry smiley-razz

P = E^2 / R
P = 14.6^2 / 390000
P =  0.00055 watts.

M.
216  Forum 2005-2010 (read only) / Interfacing / Re: Overvoltage protection using diodes?? on: September 03, 2010, 07:08:05 am
The resistors I use support up to 0.6Watts.

The alternator's maximum current is 150A and the maximum voltage it produces is about 14.6volts.

So if: P = E^2 / R

Then power will be 0.0005, then I am guessing the resistors are fine?

Thanks.
217  Forum 2005-2010 (read only) / Interfacing / Re: Overvoltage protection using diodes?? on: September 03, 2010, 06:39:50 am
Hi,

Thanks for all the replies.

I found out that the alternators in the cars don't go over 14.6v-14.8v so if I choose my resistors to support up to 20v-25v it should be fine.

My question is, will the normal resistors do the job? Or I need high power ceramic resistors?

Thanks.
218  Forum 2005-2010 (read only) / Interfacing / Re: Overvoltage protection using diodes?? on: September 01, 2010, 10:38:36 am
Thanks for your reply.

I am guessing that these 1M ohm resistors will not affect my voltage divider?

Also one will go to the ground the other one will go on the analog input pin?

Thanks.
219  Forum 2005-2010 (read only) / Interfacing / Overvoltage protection using diodes?? on: September 01, 2010, 09:31:45 am
Hi everyone.

I am trying to deisgn a voltmeter using the Arduino.

I have my voltage divider that will calculate the voltage up to probably 20 volts.

I want to protect the analog input pin of the Arduino by using diodes.

My quesiton is what diode(s) do I need? And how do I wire them?

Thanks.
220  Forum 2005-2010 (read only) / Interfacing / Re: Arduino, button with 3 states, debouncing problem on: February 26, 2010, 05:54:29 am
Well I just want it on the unpress, NOT press and unpress.

M.
221  Forum 2005-2010 (read only) / Interfacing / Re: Arduino, button with 3 states, debouncing problem on: February 26, 2010, 05:46:41 am
So do I need to make it like this?

const int buttonPin  = 2;

int buttonState      = 0;
int lastButtonState  = 0;
int StateNum         = 0;

void setup() {
 pinMode(buttonPin, INPUT);
}

void loop() {
 // read the pushbutton input pin
 buttonState = digitalRead(buttonPin);

 [glow]if (buttonState != lastButtonState) {[/glow]
  
   // change the state of the led when someone pressed the button
   if (buttonState == 1) {
        stateNum++;
     if(stateNum>2) stateNum=0;    
   }

     if (stateNum == 0)
     {
           doSomething0()
     }
     elseif (stateNum == 1)
     {
           doSomething1()
     }
     elseif (stateNum == 2)
     {
           doSomething2()
     }
 
[glow]lastButtonState = buttonState;
}[/glow]
  
 // adding a small delay prevents reading the buttonState to fast (debouncing)
 delay(20);
}


void doSomething0()
{

}

void doSomething1()
{

}

void doSomething2()
{

}

????????

M/
222  Forum 2005-2010 (read only) / Interfacing / Arduino, button with 3 states, debouncing problem on: February 26, 2010, 04:17:55 am
I've got a button hooked up to my Arduino and I'm trying to do a state change with 3 different states.

Here is my code:
------------------------------------------------------------------------
const int buttonPin  = 2;

int buttonState      = 0;
int lastButtonState  = 0;
int StateNum         = 0;

void setup() {
  pinMode(buttonPin, INPUT);
}

void loop() {
  // read the pushbutton input pin
  buttonState = digitalRead(buttonPin);

    
    // change the state of the led when someone pressed the button
    if (buttonState == 1) {
         stateNum++;
      if(stateNum>2) stateNum=0;    
    }

      if (stateNum == 0)
      {
            doSomething0()
      }
      elseif (stateNum == 1)
      {
            doSomething1()
      }
      elseif (stateNum == 2)
      {
            doSomething2()
      }
  
    
  // adding a small delay prevents reading the buttonState to fast (debouncing)
  delay(20);
}


void doSomething0()
{

}

void doSomething1()
{

}

void doSomething2()
{

}
------------------------------------------------------------------------

The problem is, when I press the button "doSomething0()" is called fine, but when I press again "doSomething1" is read very quickly then it jumps to "doSomething2"!

Is this a debouncing problem? If so how can it be solved in my code?

Any help is appreciated.

Regards,
M.
223  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and SparkFun LCD Serial Backpack on: September 03, 2009, 09:14:29 am
Anything?

Tried to reset it but as mentioned before gets stuck at the splash screen SparkFun message!!! >smiley-sad

M.
224  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and SparkFun LCD Serial Backpack on: September 02, 2009, 04:22:33 am
While everything connected to the Arduino board I upload the reset command code into it?

Then what? Upload my code into it and it should work?

M.
225  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and SparkFun LCD Serial Backpack on: September 02, 2009, 02:58:33 am
Anybody could help at all?

M.
Pages: 1 ... 13 14 [15] 16