Go to advanced search

by otoh
Fri Feb 10, 2017 9:38 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to get 10+ analogue outputs
Replies: 12
Views: 2146

Re: How to get 10+ analogue outputs

You can do an LED bar graph with a shift register. One SR per bar would need one gpio for each bar plus two gpio for clock and latch for all bars at once. See 74HCT595 or devices specifically for driving LEDs (constant current etc) Many thanks for the reply - it's hugely useful to get different ide...
by otoh
Fri Feb 10, 2017 9:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to get 10+ analogue outputs
Replies: 12
Views: 2146

Re: How to get 10+ analogue outputs

Alternatively make a lookup table of input value to output bitmask - it costs more in memory (which isn't normally a limit on a Pi), but is faster to lookup. Either method also allows you to apply non-linear representations to your bargraphs - switch between a virtual LM3914, LM3915, and LM3916 at ...
by otoh
Thu Feb 09, 2017 9:31 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to get 10+ analogue outputs
Replies: 12
Views: 2146

Re: How to get 10+ analogue outputs

Why not just drive your leds via digital outputs, rather than convert from digital from the Pi, to analogue for the lm3914, which then converts it back to digital for the leds? That seems a rather overengineered solution. Thanks for the reply. I guess because the LM3914 has some nice logic built in...
by otoh
Wed Feb 08, 2017 9:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to get 10+ analogue outputs
Replies: 12
Views: 2146

How to get 10+ analogue outputs

I'm doing an audio project that requires multiple analogue inputs and outputs: Inputs are to read various potentiometers - I've found the MCP3008 ADC which will do this nicely over SPI. Outputs are to drive bargraph LEDs for a visualiser. I'm currently planning 10 bands, each driven by an LM3914, wh...

Go to advanced search