Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Interfacing / use 4015 shift register instead of 74595 shift out on: July 28, 2008, 11:40:42 pm
I'm attempting the ShiftOut tutorial..which is HERE:

But I'm trying to use the cmos 4015 shift register...which is similiar, the main differences being it lacks a latch pin, and it is actually two separate 4-bit shift registers. I'm trying to just use the first 4-bits right now.



int dataPin = 11; // digital out 11 from arduino connected to serial input A on 4015
int clockPin = 12; //digital out 12 from ard. connected to clockinput A on 4015

void setup() {
pinMode(dataPin, OUTPUT);
pinMode(clockPin, OUTPUT);

void loop(){
for(int i = 0; i < 16; i++){
shiftOut(dataPin, clockPin, LSBFIRST, i);

The parallel outputs are connected to 4 separate resistors->LEDS.....

When I try it all the LEDs light up at once and nothing changes....

Think the problem is with my 4015???
2  Forum 2005-2010 (read only) / Exhibition / Re: 1khz Sine Wave Generator on: December 29, 2008, 02:00:49 am
I replaced it with a variable Val, and I tried decrementing it infinitely(Val--) in the void loop() function. The pitch changed, but their isnt much of a range at all. It was also strange because even though I was decrementing the value, the pitch only changed if I did a Serial.println(Val) in void loop().

Interrupts are tricky business, I'm beginning reading about them but so far I am totally confused.
3  Forum 2005-2010 (read only) / Exhibition / Re: 1khz Sine Wave Generator on: December 28, 2008, 01:10:33 am
How did you know the value 455 would output 1khz? Is it possible to output lower frequencies?
Pages: [1]