Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: Help with arduino coding!! on: December 19, 2010, 12:31:32 pm
i have a python script taking care of the data transmitting task

so how do i end the transmission?
2  Forum 2005-2010 (read only) / Syntax & Programs / Help with arduino coding!! on: December 19, 2010, 12:05:19 pm
i need some help with codes please!!

how do i fix this?

 
Code:

  char input [ 10 ];
  int index;
  
  // clears string
  for ( index = 0; index < 10; ++index )
  input[index] = '\0';
  
  // incoming data equals to string
  for ( index = 0; Serial.available() > 0; ++index )
  {input[index] = Serial.read();}

  char msg[ 11 ];
  //print string
  sprintf (msg, "%s Messages...",input );

Senario:

lets say that i kept sending value of "92" to arduino the every 5 sec.

and the rate of it arduino printing the message is every 15 second

on the second loop onwards what i get is "929292 message"

the problem is the rate of sending is impair to the rate of printing,
which is why im getting three "92" appearing on the message.

i know i can set it both to equal rate to avoid this problem. but is there any other way to adress this problem?

bitwise & it??i think im too stupid to change the code here  :'(

also..please pardon my poor english
3  Forum 2005-2010 (read only) / Interfacing / Re: driving 8x8 LED using 2 74HC595 on: July 12, 2010, 10:37:35 pm


(DS is connecting to Pin 12 sorry)

ive posted my schematics as you requested. i dont have any software so i made it using MSpaint =P

is there anything wrong with my circuit?
4  Forum 2005-2010 (read only) / Interfacing / driving 8x8 LED using 2 74HC595 on: July 12, 2010, 11:01:23 am
hi! im 15 and im new to the Arduino scene.

im trying to drive an 8x8 LED matrix using 2 74HC595 Shift registers.

so far ive hooked up a 74HC595 + 330ohms for each the columns of LEDs , and 74HC595 + ULN2803A for the LED rows.

i would like to learn to drive 8x8 LEDs 1st and then expand it from here.,perhaps to 16x16 and beyond

any idea on how should i program this?i would appreciate it if you link me to some examples.  smiley
5  Forum 2005-2010 (read only) / Exhibition / Re: Arduino Scrolling 56x8 LED matrix on: December 17, 2010, 01:22:45 pm
thanks!

ive added a switch, i can invert the fonts as i wish now =)
6  Forum 2005-2010 (read only) / Exhibition / Re: Arduino Scrolling 56x8 LED matrix on: December 17, 2010, 01:11:16 pm
hi Hari!

ive replicate your led matrix using your codes and only 74HC595 on both sides

but for some reason the output i got inverted and not like yours?

is there any reason for that?
7  Forum 2005-2010 (read only) / Exhibition / Re: Arduino Scrolling 56x8 LED matrix on: November 01, 2010, 02:18:43 pm
thanks for clarifying =)

one more question though...

so if i decided to use only 5 matrixes

the only thing i have to modify in your code is in the Bitmap section right?

are there anything that i should lookout for?

thanks alot for the reply
8  Forum 2005-2010 (read only) / Exhibition / Re: Arduino Scrolling 56x8 LED matrix on: November 01, 2010, 12:25:58 pm
hi! may i enquire why did you use tpic6c595 in to drive the column and 74hc595 for rows and not the other way round?
Pages: [1]