Show Posts
Pages: 1 ... 10 11 [12] 13
166  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: October 11, 2012, 04:23:20 am
Read the sketch posted in the first post....and here http://arduino.cc/forum/index.php?topic=123071.0


BTW the speed of the processor is irrelevant it is only used as a master on the serial bus to send commands and data.
167  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: October 11, 2012, 03:46:47 am
Hope you feel better soon funky mate.... smiley-roll-sweat

Anyway....

The AS1130 runs completely independently once the microcontroller has told it what to do.

Basically, you set up the registers, upload the frame and PWM data and tell it to start...it then runs on it's own.

While it is running you can upload more data and it'll display that.

All this is explained in the first post of this thread along with the answer to all your other questions.... smiley-wink
168  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: October 10, 2012, 02:25:16 pm
To be honest mate...I think private messages are for 'private' communications.

If questions are answered on the Forum, then everybody benefits and mostly you get more than one answer which also benefits everybody. Also the recipient of a private message ends up answering the same questions over and over again.

Anyway...the bottom line is I don't answer private messages unless they are errrrr private... smiley-mr-green


To contradict the above... smiley-twist

I don't have a schematic for the board other than what is posted in this thread. The LEDs are wired exactly as shown in the datasheet and so is the AS1130. There is also quite a bit of example code posted in this thread.

The code for the video you refer to is written for the PIC18F4550 because I am more familiar with PICs and I have lots of them. I will port it to Arduino when I get the time but it's not a priority. Also I have hung on a 64K EEPROM which gives me room for 77 full pages of 36 frames.

I will be glad to answer any specific questions you have on the Forum and I suggest that you dive in and build yourself a panel, get the AS1130 and Arduino fired up and then see what problems you have.

169  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: October 10, 2012, 01:44:33 pm
Fire away mate.... smiley-mr-green
170  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: September 25, 2012, 09:38:03 am
If you don't use pullups on those pins they'll be like the Grand Old Duke of York...they won't know whether they're up or down  smiley-mr-green

I use interrupts whenever I need them.

For instance (if I could get the IRQ line to respond  smiley-eek) I would play through 36 frames of data, then have the interrupt fire, then change the data and restart the movie with new frames.

I'm doing this at the moment but I have no control over when the change happens - if I used interrupts I would be in charge... smiley-twist
171  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: September 25, 2012, 02:29:22 am
The resistors are:-
1 SDA pull-up
2 SCL pull-up
3 RSTN pull-up
4 IRQ pull-up


As per the datasheet.  smiley-wink
172  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: September 25, 2012, 01:40:38 am
OK...here's the video. (Sorry about the crap quality  smiley-red)


http://www.youtube.com/watch?v=msn3LvtdRaM&feature=youtu.be
173  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: September 25, 2012, 12:32:38 am
Here's an example of dynamic data change using the internal EEPROM of a PIC18F4550 (256 bytes).
This gives a negative image of each frame.
I've included the reset routine as well. This is easily ported to Arduino code.


Code:
/***** Flip every bit in eeprom then write to AS1130 **************************/
void flipData(void)
 {
printf(usb_cdc_putc, "Flipping Data:\r\n");
char i,j;
char data = 0;
char mask = 0b00000111;
char flipped;
  for (i = 0; i <= 253; i+=2)    //size of eeprom
   {
     flipped = mask ^ read_eeprom(i);    
       write_eeprom(i, flipped);
    }
i = 254;
flipped = mask ^ read_eeprom(i);    
       write_eeprom(i, flipped);

mask = 0b11111111;
  for (i=1; i <=253; i+=2)    //size of eeprom
   {
       flipped = mask ^ read_eeprom(i);    
       write_eeprom(i, flipped);
    }
printf(usb_cdc_putc, "Data Flipped:\r\n");          
   write_frame_data();
AS1130_reset();
 }
/***** AS1130 Copy Frame Data from EEPROM *************************************/
void write_frame_data(void)
 {
  char i, j, k;
  char data = 0;
  for (i=FRAME0; i<=FRAME10; i++)    
   {
     for (j=0x00; j<=0x0B; j++)   // 0x00 to 0x0b are the Current Segments in each frame (CS0-CS11)
     {
       as_config(i, 2*j+1, read_eeprom(data));     // i = frame address, 2*j+1 = CS register address (odd numbers) then second data byte
       data++;
       as_config(i, 2*j,   read_eeprom(data));     // i = frame address, 2*j = CS register address (even numbers) then first data byte
       data++;      
     }
   }
 }
/***** Restart AS1130 with changed settings ***********************************/
void AS1130_reset(void)
 {
bit_clear(SHUTDOWNOPENSHORT_BYTE, 0);
bit_clear(SHUTDOWNOPENSHORT_BYTE, 1);
as_config(CONTROLREGISTER, SHUTDOWNOPENSHORT, SHUTDOWNOPENSHORT_BYTE);

        as_config(CONTROLREGISTER, MOVIEMODE, MOVIEMODE_BYTE);
   as_config(CONTROLREGISTER, DISPLAYOPTION, DISPLAYOPTION_BYTE);
as_config(CONTROLREGISTER, FRAMETIME, FRAMETIME_BYTE);
as_config(CONTROLREGISTER, PICTURE, PICTURE_BYTE);
   as_config(CONTROLREGISTER, MOVIE, MOVIE_BYTE);

bit_set(SHUTDOWNOPENSHORT_BYTE, 0);
bit_set(SHUTDOWNOPENSHORT_BYTE, 1);
as_config(CONTROLREGISTER, SHUTDOWNOPENSHORT, SHUTDOWNOPENSHORT_BYTE);  
 }


I'll upload a video of this later so you can see the speed etc.
174  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: September 24, 2012, 01:40:20 pm
If you check out the datasheet (page 28 Table 25) it shows that you have to physically set the sync_out or sync_in bits to get any response on pin 12.

In other words it's not a problem pulling it to VSS  smiley-cool


I've been working on this chip through an 18F4550 PIC for the last few days and have just added a 512Kbit EEPROM to swap out the frame data. The EEPROM holds 38 full datasets and you can flip the data on the fly.

Great fun this ain't it.... smiley-mr-green
175  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: September 24, 2012, 10:36:34 am
 
Quote
I guess I can just cut the trace.

Unless you're using multiple chips I wouldn't bother...I pulled it low and high on different prototypes and it made no difference.

I haven't tried cascading them yet though.

Keep me informed of how you get on.  smiley-wink
176  Using Arduino / LEDs and Multiplexing / Re: AS1130 First attempt - working on: September 24, 2012, 02:45:58 am
According to the datasheet IRQ should be pulled high but the sync is left floating.

I have emailed AMS about the IRQ line as all the chips I have stay at logic low even with a pull-up resistor. Whatever I try I can't get the IRQ to respond.

I haven't had a reply yet though....
177  Using Arduino / LEDs and Multiplexing / Re: Uh oh - RGB common Anode? on: September 19, 2012, 01:59:39 am
When the pin is high it should be at the same potential as VCC so no...it's not a short it just turns the diode off (no potential difference so no current can flow).

Well worked out BTW  smiley-mr-green

You might be interested in looking up charlieplexing  smiley-cool
178  Using Arduino / LEDs and Multiplexing / Re: AS1130 So far, so good... on: September 18, 2012, 03:17:40 am
Quote
Trust me, I'm sufficiently cheeky.

Respect.... smiley-mr-green

I tend to only order what I will use but have been tempted a few times with Microchip samples  smiley-red


Oh well...they are billionaires and I'm not. smiley-cool
179  Using Arduino / LEDs and Multiplexing / Re: AS1130 So far, so good... on: September 17, 2012, 02:46:07 pm
Quote
Damn, you have me beat.  I have 3 so far...


You need more cheek.... smiley-razz

 smiley-grin smiley-grin
180  Using Arduino / LEDs and Multiplexing / Re: AS1130 So far, so good... on: September 17, 2012, 10:45:12 am
Hi Rob,

Quote
Sounds like the interrupt is not being cleared despite your efforts.

What I don't understand is...if I read out the registers in the AS1130 they all make sense and show the settings I have sent via I2C and everything works fine but the Interrupt status register shows all 0s which means that no interrupt has occured. The IRQ pin is still pulled low somehow though.

By the way...it's the AS1130 which generates the IRQ after certain conditions occur (like a movie ending).

I would expect the pin which is connected to VDD (5V on Arduino) via a 4k7 resistor to be at 5V or thereabouts at power up or POR and it isn't for some reason. All other pins with pull-ups are working as expected.
Pages: 1 ... 10 11 [12] 13