Pages: [1]   Go Down
Author Topic: vu meter with 595 shift register  (Read 889 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

trying to get 595 shift register to display like vu meter any ideals on how i should program im kinda a noob so where do i start after the pin assignments
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8913
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

First you calculate how many of the 8 outputs you want to light up.  Call that 'N'.

Code:
digitalWrite(latchPin, LOW);

    shiftOut(dataPin,clockPin, MSBFIRST, (1<<N)-1); // To light N lights
OR
    shiftOut(dataPin,clockPin, MSBFIRST, 1<<(N-1)); // To light just the Nth light

digitalWrite(latchPin, HIGH);
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

is there some place where i could actually get the code or get even a sample i am using 595 chips to send from arduino to 595 board.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8913
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

is there some place where i could actually get the code or get even a sample i am using 595 chips to send from arduino to 595 board.

I don't know what you mean by "595 board".

What hardware do you have so far and how it is it connected to your Arduino?

The more detail you supply the better answers you will get.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

we created a board using the 595 shift register( thats what i meant by 595 board) what we want to do is creat a vu meter with a mic input. well give you more information if your welling to message me.
Logged

NL
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

595 is the typenumber for all the *595 shift registers, the most commonly used here is probably the 74hc595 a tristate shiftregister which enables one to shift in the data normally and have them waiting until you latch the outputenable or something like that and then all the pins are changed to the new vales at once.

here's an url to one of the 595's.

However i also don't know if the TS wants to know how to communicate to the 595's or how to make the vumeter code [or maybe even both]
Logged

Pages: [1]   Go Up
Jump to: