Show Posts
Pages: 1 2 [3] 4 5
31  Using Arduino / Programming Questions / newPing library clash on: January 28, 2013, 08:12:55 am
i am using HC sr04 distance sensor
with the newPing library

the problem is

when i use new ping library , i am not able to use the tone functions
Quote
core.a(Tone.cpp.o): In function `__vector_7':
C:\Users\Harsh's\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Tone.cpp:535: multiple definition of `__vector_7'
NewPing\NewPing.cpp.o:C:\Users\Harsh's\Desktop\arduino-1.0.3\libraries\NewPing/NewPing.cpp:214: first defined here

also when i use lcd.write(from the liquidcrystal library), i have to typecaste the value of a custom created byte .


any suggestions to how to solve this problem? 
32  Using Arduino / General Electronics / Re: Small power source for one century on: January 27, 2013, 07:55:13 pm
u should go ahead with the perpetual idea smiley-grin
33  Using Arduino / General Electronics / Re: Small power source for one century on: January 27, 2013, 10:53:33 am
ok
this seems pretty far fetched

but rolex (as far as i recall ) had come up with a way to run a watch perpetually(it said something about utilizing atmospheric pressure ). that means it require no extra mehanical power to run.

u could understnd how that works, and use it as the switch .   

as for the amp. try using bells' model
(it ran mechanically ).


u will havt to wound up the amp. and the switch will be triggered, running the discs.

(i have remove all the electronics out of it though smiley-razz )
34  Using Arduino / General Electronics / Re: Tinkerkit shield / Futaba S3003 servo on: January 27, 2013, 10:47:28 am
are u using the arduio to power the futaba servo?
because i think the futaba s pretty hungry for power

try connect a external source of power
35  Using Arduino / General Electronics / Re: Diode doubt on: January 23, 2013, 11:26:31 am
Quote
I think he means that the voltage spike can go both to GND and back to the pin. And that's true, except the spike will never reach the high voltage level that it would reach if the diode were not in place.

yes , i mean EXACTLY that

so, can u tell me approx how much current goes in back to the pin(with the diode attached)?
36  Using Arduino / General Electronics / Re: Diode doubt on: January 23, 2013, 07:37:31 am
but in one

wont the current go to the pin as well as ground?
(parallel ?)
37  Using Arduino / General Electronics / Diode doubt on: January 23, 2013, 01:57:57 am
i want to no which one i should use and why
38  Using Arduino / Sensors / DS touch problem on: January 22, 2013, 11:18:01 pm
just yesterday i bough a touchscreen

the problem is , im getting variale idle value

last night the values were something like 800&400 

now it is 8000&and 3000

i have not used any resistance

could anybody tell me whats wrong?
39  Using Arduino / Programming Questions / Re: Code for button press detection on: January 21, 2013, 11:52:09 am
Normally, button presses go from HIGH to LOW (switch contact to gnd) - Looks like you're running LOW to HIGH



could u please ellaborate on that
and yes, my switch normally passes no current (atleast thats how i planned it to be), if i press, the circuit is completed
40  Using Arduino / Programming Questions / Re: Code for button press detection on: January 21, 2013, 11:50:59 am
yea, it returns erratic value
when i put my hand close to the wire, it returns different values



Code:
int  button()

  int y=digitalRead(8);
  if(y==HIGH)
  {             
    y=LOW ;
    delay(1000);

    y=digitalRead(8);
    if(y==LOW)
      return 1;
    else                   
      return 2 ;     
  }   

  else return 0;


}
41  Using Arduino / Programming Questions / Code for button press detection on: January 21, 2013, 11:16:09 am
is this code allright?

Code:
int  button()

  int y=digitalRead(8);
  if(y==HIGH)
  {             
    y=LOW ;
    delay(1000);

    y=digitalRead(8);
    if(y==LOW)
      return 1;
    else                   
      return 2 ;     
  }   

  else return 0;


}
it doesnt seem to work  :/  
it should return 2 if its a long press
1 if it is a short press
and 0 if it doesnt detect  any button
42  Using Arduino / Displays / Re: Scrolling with custom characters on: January 19, 2013, 12:33:02 am
ok, see
i wanted to use the setCursor (), to set the cursor at some very large number , so it would scroll to be visible after some time .
43  Using Arduino / Displays / Re: Scrolling with custom characters on: January 18, 2013, 10:29:17 am
duh!

actually, all of you are right  the code works just fine

i had set it to 510 instead of 51, and it was scrolling all right, but because it was taking a long time to be displayed, i though i d made a mistake

sorry for wasting all u ppl's time

thnx for clearing the (stupid ) doubt i had smiley-razz
44  Using Arduino / Project Guidance / iPhone , ipod touchscreen on: January 18, 2013, 10:22:17 am
i just purchased a cheap touchscreen(has four pins) .
now, i have been thinking, if could use the touchscreen of an iphone or ipod, it would be really accurate

so, can anybody tell me the pinout of the iphone? or ipod?
(i just need the touch, i dont need the display )
45  Using Arduino / Displays / Re: Scrolling with custom characters on: January 17, 2013, 03:57:49 am
ok, that is not important, but how do i set it to 50 or 51?
Pages: 1 2 [3] 4 5