Show Posts
Pages: [1] 2
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: PLZ HELP SOON Arduino loop question on: September 01, 2009, 01:12:48 pm
darnit....
it was working all the time smiley-razz
i just had to call my stopmoving() routine in the main loop..
 ;D
2  Forum 2005-2010 (read only) / Syntax & Programs / Re: PLZ HELP SOON Arduino loop question on: September 01, 2009, 12:44:18 pm
OKAY PLZ HELP ME WITH THIS ONE
this fits the title so i dont have to make a new topic


i have this code

Code:
void loop()

{
line = getline();
while (line == -10)
{
 spinleft();
 line = getline();
 Serial.println(line, DEC);
 }


Serial.println(line, DEC);



}




AND IT DOSENT STOP THE LOOP WHEN THE CONDITION ISINT MET

the getline() statment returns -10 when there is no line,
and -5 to +5 when the line is found...
(line follower)
the code prints the line position to serial but when the line is fount (thus changing the variable line to -5 to +5) IT DOSENT STOP THE LOOP
3  Forum 2005-2010 (read only) / Syntax & Programs / Re: PLZ HELP SOON Arduino loop question on: September 01, 2009, 10:34:16 am
sorry...
but how does that loop work???
i need to know, to make modifications.
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: PLZ HELP SOON Arduino loop question on: August 30, 2009, 11:12:50 am
WOW THANKS!!!!!!!!!!
that completely solves my problem
so max just does it?
built in?
i noticed when i was typing my variables that max turned a different color
5  Forum 2005-2010 (read only) / Syntax & Programs / PLZ HELP SOON Arduino loop question on: August 30, 2009, 10:50:33 am
say i make a
void getmax()
{
 if (raw1 > max1)
{
max1 = raw1;
}
}


how would i make that code block loop for 5 seconds?
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Need help programming a Boarduino on: January 25, 2010, 08:27:31 pm
What about if i have a usb to serial and usb to parrallel converter? can i change the levels?
7  Forum 2005-2010 (read only) / Troubleshooting / Re: Need help programming a Boarduino on: January 11, 2010, 05:10:02 pm
thats what i get without removing the atmega328 chip from the duemalanove
8  Forum 2005-2010 (read only) / Troubleshooting / Re: Need help programming a Boarduino on: January 10, 2010, 01:22:51 pm

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x95
avrdude: failed to write flash memory, rc=-4
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0xf1
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Need help programming a Boarduino on: January 09, 2010, 10:32:54 pm
And also can i program it remotely with the bluesmirf?
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Need help programming a Boarduino on: January 09, 2010, 10:30:02 pm
What about TX? Isint there some sortof checksum?
11  Forum 2005-2010 (read only) / Troubleshooting / Need help programming a Boarduino on: January 09, 2010, 07:47:33 pm
I know its not a official product...
So i have a boarduino, a duemilanove, a usb to serial (rs-232) and parrallel converter, and a bluesmirf gold (firefly version)

And i want to program the DC boarduino without having to remove the IC from the duemilanove.

Thanks in advance
12  Forum 2005-2010 (read only) / Troubleshooting / Re: HELLLPPP!!!! werid servo behaviour on: August 28, 2009, 12:12:40 am
Fixed it, wired the arduino to 9v batterie and servos to 6v (4 aa bats)
VIDEO COMMING SOON
on: http://www.aklem.com
thx guys smiley

just have to work out that calabration routine for my reflectance sensors...
The life of a 13 year old... (computer taken away lots)
13  Forum 2005-2010 (read only) / Troubleshooting / Re: HELLLPPP!!!! werid servo behaviour on: August 26, 2009, 08:38:36 pm
ALSO 9v dosent work too
14  Forum 2005-2010 (read only) / Troubleshooting / HELLLPPP!!!! werid servo behaviour on: August 26, 2009, 08:37:46 pm
 :o
arduino, duemilanove
when i plug the arduino into usb, the two continuous rotation servos (arduino controled) work fine according to my code (turn in oposite directions then switch directions)
but when i plug the arduino into my 6v power supply it dosent work...
i know the suggested voltage is 7v but usb runs on 5v...?
15  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Program run switch on: September 22, 2009, 07:19:20 am
What about someone devoloping something like a wiichuck Adapter? It is made to go directly in the arduino and you would have to get a breadboard, a switch, a resistor and a debouncing cap jist to tpggle something. See what i mean? For someone like ME who sees the constant need to test components quickly.
Pages: [1] 2