Show Posts
Pages: 1 ... 347 348 [349] 350 351 ... 516
5221  Using Arduino / Programming Questions / Re: Pin dead/burned on: July 25, 2011, 12:30:26 am
Were you reading our replies? Did you use a resistor and what have you been doing with pin 6 before it died?
5222  Using Arduino / Programming Questions / Re: Pin dead/burned on: July 24, 2011, 11:37:14 pm
I connected a LED on the pin 6 and put it as a OUTPUT and digitalWrite as HIGH but it doesn't work.

Was any resistor involved in your circuit?
Is the LED working on other pins?
What were you doing on the pin 6?
5223  Using Arduino / Displays / Re: 16x2 text display on: July 24, 2011, 06:55:07 pm
Do you have a spec sheet of this display? I don't know which pin is V0. Usually if you have one row connection the V0 goes to pin 3. But I don't know about this display.
5224  Using Arduino / Displays / Re: 16x2 text display on: July 24, 2011, 06:04:42 pm
If you do lcd.begin(16,2); and then adjust the potentiometer, will you get a better contrast? How did you connect the potentiometer to the lcd? A nice picture will be needed.
5225  Using Arduino / Programming Questions / Re: Serial lcd strange characters on: July 24, 2011, 05:42:14 pm
I removed the serial adapter in an attempt to simplify the problem. Im currently using a standard 1602A LCD in 4 bit mode. There is NOT currently a serial adapter in the circuit.

However I am still getting the strange characters from the code
Code:
lcd.println(myStrings[i]);

lcd has no valid println as far as I know. It does have print.
5226  Using Arduino / Displays / Re: 16x2 text display on: July 24, 2011, 03:00:53 pm
Did you use a potentiometer?
5227  Using Arduino / Programming Questions / Re: How to print on the second LCD line, using serial commands on: July 24, 2011, 01:27:56 pm
Sorry floresta. My mistake. The reason I strongly suggested a chart is that I sense the OP didn't know how his/her code is running so is coding blind. I'd start with pencil and paper and have this in mind: the serial LCD arduino has no idea how many characters the sender will send so will have to handle one char at a time and keeps a count or buffer.
5228  Using Arduino / Project Guidance / Re: C4 Prop on: July 24, 2011, 12:45:33 am
This should work. Make sure you probe the connections with your multimeter and confirm what the circuit does before connecting it to arduino. There should be RC cars for around $20 or less in supermarkets.
5229  Using Arduino / Programming Questions / Re: How to print on the second LCD line, using serial commands on: July 23, 2011, 09:19:55 pm
I've tried now to use on my second arduino (that receive the data and display on the LCD) this sketch:

Code:
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

void setup()
{
Serial.begin(9600);

lcd.begin(2,16);
}

void loop()
{
if(Serial.available() > 0){
lcd.clear();
lcd.setCursor(0,0);

for(int i = 0; Serial.available() > 0; i++){
if(i == 16){
lcd.setCursor(0,1);
}
lcd.print(Serial.read());
}
}
delay(1000);
}

Same result.

Your code logic is not what you want to achieve. First of all, your won't display apple and banana on two lines. There is simply no logic that will move to line two after apple. Second, even if the logic works for some special inputs, which you should try to construct yourself, since you wrote the code, it won't work the next time you print apple and banana again.

Your solution: draw a flow chart of what you want the program to do, then implement the logic on the flow chart. I have another solution but I doubt you can understand with your current programming skills. So finding your flow chart and implementing would be the best approach. There is no point writing any more code with a chart.
5230  Using Arduino / Programming Questions / Re: What does the % caracter mean on: July 23, 2011, 12:13:20 pm
smiley-draw

Aha, Now I understand modulo, never expected beer could clear things up…

Chris
Beer can help you realize the earth is rotating too. smiley-roll-sweat
5231  Using Arduino / Project Guidance / Re: C4 Prop on: July 22, 2011, 06:58:57 pm
Glad it worked! I have no doubt my library works  smiley-wink

Now the wireless part, do you need a true wireless like RC car or can an infrared remote do the job. IR remotes are pretty cheap (borrow your own TV remote) and code is pretty easy to do. For RC car remote, someone else has to help you. I have one RC car but it's too good to take apart for arduino.
5232  Community / Bar Sport / Today is Faraday! on: July 22, 2011, 06:11:27 pm
[celebration dance]  smiley-cool  smiley-lol smiley-cool
5233  Using Arduino / Programming Questions / Re: What does the % caracter mean on: July 22, 2011, 06:09:44 pm
Quote
"teach a man to fish"
...and he'll sit in a boat all day with his mates, drinking beer.

Say the guy has several packs of beer, 6 per pack. He takes one beer at a time. The beer left in the most recent pack is only between 0 and 6 so it represents total_beer%7.
5234  Using Arduino / Programming Questions / Re: An issue with the int() function on: July 22, 2011, 06:06:41 pm
Maybe solution presented here will help:

http://arduino.cc/forum/index.php/topic,58486.0.html

I really don't play with Strings on a microcontroller.
5235  Community / Bar Sport / Re: Arduino mentioned in TV episode on: July 22, 2011, 06:02:27 pm
That was a good start. I will pay more attention to TVs. I wonder who wrote the script. Maybe the main guy is lazy and sub-contracted a part to a writer that knows arduino and likes robots. I seriously doubt the pop culture is leaning towards DIY electronics. Maybe an easier point of entry is home automation.
Pages: 1 ... 347 348 [349] 350 351 ... 516