Go Down

Topic: Help with getting started with an LED driver (AS1100PL) (Read 1 time) previous topic - next topic

Nicknml

#5
May 21, 2013, 06:39 pm Last Edit: May 21, 2013, 09:42 pm by Nicknml Reason: 1
I'm now looking at the AS1113, it appears that you can drive it similarly to the 74HC595 (each bit controls the pin state of the pin that corresponds to that pin.)  It also looks like I would only have to use one resistor to limit the current for all LEDs by placing it between the REXT pin and ground.  So to wire that up I would just need to hook up the clock(CLK), latch(LD), data (SDI), vcc(VDD), ground, REXT pins (and of course the LED pins that I plan to use)?

UPDATE: Nevermind, apparently it's not available in a DIP package.


https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=http%3A%2F%2Fwww.ams.com%2Feng%2Fcontent%2Fdownload%2F1208%2F6983%2Ffile%2FAS1113_Datasheet_v1_04.pdf&ei=iaObUcKPD8L40gGv04GQCw&usg=AFQjCNGafd3IuC6xlcf8We2GykyWGOWUpw&sig2=ONdHqgUA1JCDwUU-gWfBLw&bvm=bv.46751780,d.dmQ

didiy

It might work, but if they don't read the other sources I suspect they won't read a sticky. Just an opinion (that I'm willing to change).

I've had beginners argue with me about the subject, they want to treat them like light bulbs and that is all there is to it.
You can find more info in here http://agicoledspot.blogspot.com/


Nicknml

Ok I back to playing with the AS1100 chip.  I managed to get it in test mode.  Now the problem is that only DIG0 of the DIG 0-DIG7 pins is on.

My sketch code below:
Code: [Select]


int latchPin = 8;

int clockPin = 12;

int dataPin = 11;
int speed1 = 50;
void setup() {
  //set pins to output so you can control the shift register
  pinMode(latchPin, OUTPUT);
  pinMode(clockPin, OUTPUT);
  pinMode(dataPin, OUTPUT);


twelvebit(1,1,1,0,0,0,0,0,0,0,0,1);  //sets clock to external


twelvebit(1,1,1,1,0,0,0,0,0,0,0,1);  //turns on display test
}
void loop() {
 
}

void clockpin(){
digitalWrite(clockPin, HIGH);
digitalWrite(clockPin, LOW);
}

void twelvebit(byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, byte b8, byte b9, byte b10, byte b11, byte b12){
digitalWrite(latchPin, LOW);
  digitalWrite(dataPin, LOW);
  clockpin();
  digitalWrite(dataPin, LOW);
  clockpin();
  digitalWrite(dataPin, LOW);
  clockpin();
  digitalWrite(dataPin, LOW);
  clockpin();
  digitalWrite(dataPin, b1);
  clockpin();
  digitalWrite(dataPin, b2);
  clockpin();
  digitalWrite(dataPin, b3);
  clockpin();
  digitalWrite(dataPin, b4);
  clockpin();
  digitalWrite(dataPin, b5);
  clockpin();
  digitalWrite(dataPin, b6);
  clockpin();
  digitalWrite(dataPin, b7);
  clockpin();
  digitalWrite(dataPin, b8);
  clockpin();
  digitalWrite(dataPin, b9);
  clockpin();
  digitalWrite(dataPin, b10);
  clockpin();
  digitalWrite(dataPin, b11);
  clockpin();
  digitalWrite(dataPin, b12);
  clockpin();
  digitalWrite(latchPin,HIGH);
 
}
 



Nicknml

After some more research it appears that it's almost identical to the MAX7219CNG.  I've been playing around with the example code, but all I could get was all LEDs flashing momentarily. http://playground.arduino.cc/LEDMatrix/Max7219

Go Up