Show Posts
Pages: 1 [2] 3 4 ... 13
16  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 07, 2013, 02:27:44 pm
You can choose them with the multiplexers...yes...but what addresses will you use for the I2C writes?


No problem...I just want to see if you know what the addresses will be when you set your jumpers. smiley-wink
17  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 07, 2013, 11:52:57 am
Quote
I don't really understand what you mean...

OK

You have 3 AS1130s. The address of the first one is 0x60.

What are the addresses of the second and third? 
18  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 07, 2013, 11:39:07 am
Another point.

If I remember rightly, when you reset the AS1130s the EEPROM data is not cleared so if the chip starts up it will light up the LEDs with the data it already has in it's memory.

Also:

While you have access to the 'scope...take some screenshots of the I2C working properly so that you can see where the ack fires and what the known data looks like.
19  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 07, 2013, 11:36:42 am
The trouble is...I tend to have a logical approach to fault finding...you just seem to keep changing things until something happens.... smiley-mr-green...so no I haven't had that problem.

Before changing anything I think about what I expect to happen and what effect the change will have on the rest of the system.

I would get one matrix under your control (say the chip at 0x60) and then move on to the next.

One thing that occurred to me is....(listen carefully) you DO realise what the addresses of the next two chips will be?

I was going to tell you but I thought I'd let you work it out and tell me what your answer is... smiley-mr-green
20  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 07, 2013, 09:30:24 am
HURRAYYYYYYYYYY!

Well done mate.  smiley-wink



Go on...tell me what the problem was...(I already think you're an idiot)  smiley-mr-green smiley-mr-green smiley-mr-green
21  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 07, 2013, 09:02:57 am
@binarygod

What makes no sense is you rewriting the I2C driver. You need to either redownload the original or be absolutely certain that every change you have made is back to it's original state.

Everything written in the datasheet is EXACTLY following the I2C protocol. Your driver DOES NOT need to be changed.

Until you rectify this then we can't continue.

To help later:
Rewrite this code to run on your compiler.

Code:
// This function writes the slave address to the i2c bus.
// If a slave chip is at that address, it should respond to
// this with an "ACK".   This function returns TRUE if an
// ACK was found.  Otherwise it returns FALSE.
int8 get_ack_status(int8 address)
{
int8 status;

i2c_start();
status = i2c_write(address);  // Status = 0 if got an ACK
i2c_stop();

if(status == 0)
   return(TRUE);
else
   return(FALSE);
}


//=================================
void main()
{
int8 i;
int8 status;
int8 count = 0;

printf("\n\rStart:\n\r");

delay_ms(1000);

// Try all slave addresses from 0x10 to 0xEF.
// See if we get a response from any slaves
// that may be on the i2c bus.
for(i=0x10; i < 0xF0; i+=2)
   {
    status = get_ack_status(i);
    if(status == TRUE)
      {
       printf("ACK addr: %X\n\r", i);
       count++;
       delay_ms(2000);
      }
   }

if(count == 0)
   printf("\n\rNothing Found");
else
   printf("\n\rNumber of i2c chips found: %u", count);

while(1);


22  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 07, 2013, 07:30:28 am
I can and will be as patient as Hexadec has been, but only when I'm getting paid for it.

Yeah... I was tempted to post my hourly rate for this sort of thing.... smiley-twist smiley-twist smiley-twist
23  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 05, 2013, 09:42:26 am
The 10uF caps only stabilise the power rails...the 1nF caps would stop any HF interferance caused by the switching in other circuits like the AS1130s and the SCL and SDA lines.

You might get away with it if you stay at low speeds on the I2C bus, but the AS1130s clock is 1MHz and if you want a decent refresh rate on your matrix then you need to leave it at 1MHz.
24  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 05, 2013, 07:46:32 am
You may also want to put some 1nF decoupling capacitors across pins 1 and 3 for each AS1130 chip as close to the pins as possible, especially if you intend to run the I2C bus at 1MHz.

Personally I would also decouple the MAX4617 supply pins as well...
25  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 05, 2013, 07:21:28 am
I'm no longer angry with you...I'm just astounded.  smiley-lol
26  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 05, 2013, 06:48:57 am
BTW my resistors are under 1K.   smiley-wink
27  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 05, 2013, 06:45:56 am
Quote
1) So which one should I use? 47k?

I REALLY can't believe you said that.  smiley-eek-blue Try reading this thread AND the other thread and look at my code comments.
It's no f*%cking wonder you can't get your project to work.

Quote
2) well we talked about it and you said that those vdd are connected internally but not pin18, but I thought because pin18 is also VDD I didn't have to connect it, well then I have to connect it too to VDD...

I REALLY can't believe you said that.  smiley-eek-blue Try reading this thread AND the other thread and look at my code comments.
It's no f*%cking wonder you can't get your project to work.

28  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 05, 2013, 05:55:09 am
Quote
when I say driver then it is ALWAYS the AS1300

Yeah well...when I say 'driver' it depends on the context. It could be a chip, it could be software.

Quote
the postman was at your message box

I've just spent 10 mins looking at your schematic and the first 3 things that come to mind are:

1) 100K pullups on SCL and SDA are far too high. Increasing the resistance tends to reduce the effective length of the bus and the bus speed
2) Even though we had a discussion about it which you took part in....you don't have pin 18 connected to VDD so the chips won't work.
3) Are you absolutely sure that the multiplexers are selecting the correct addresses for each of the chips. Don't just say yes...read with a meter the resistance connected to the ADDR pin AT THE PIN of each chip.
   You may have 2 resistors in parallel or have the wrong ones selected.
   You could also scan the whole address range in software to see if you get an ack.

proof of 2)
Quote
from binarygodand thanks for the information about the VDD pin!!

Rectify these and then we'll see what happens.
29  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 03:48:08 pm
can I please send those pictures to your email? I don't want to post things about my project until it's working...

OK mate but that won't help all the other people watching this thread.
Is your soldering crap?  smiley-grin

Also...


Quote
When you say drivers...do you mean the AS1130 chips?

Please answer.
30  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 03:31:43 pm
Quote
why didn't you say that at the beginning!
I did..you didn't understand.  smiley-razz

Quote
well in fact I changed nothing, I only commented those IIC_wait-functions.
So you DID change something...you destroyed the timing of the I2C bus

Quote
If I uncomment them the SCL will be again 30kHz
Yes but it will be working properly.

When you say drivers...do you mean the AS1130 chips?

You will know if the chips are dead if you do what I suggested above AND you don't get a response from the chips (ack).





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* note to self....I should have been a dentist...this is just like pulling teeth.... smiley-mr-green *
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pages: 1 [2] 3 4 ... 13