Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Switch/case - number of cases based on user input? on: January 21, 2014, 09:06:21 am
Thanks, that clears that up!

Jamie
2  Using Arduino / Programming Questions / Re: Switch/case - number of cases based on user input? on: January 21, 2014, 08:57:39 am
What I would like to achieve is this; A rotary encoder is turned to increment a variable, that variable is used to define how many cases (menu levels) are used in the switch statement.

Jamie
3  Using Arduino / Programming Questions / Re: Switch/case - number of cases based on user input? on: January 21, 2014, 08:46:48 am
The number of cases in the statement:

Code:
input = 8;
switch (menu_levels){
   case 1:
      //code
   break;
   ...
   case 8:
      //code
   break;
}
4  Using Arduino / Programming Questions / Switch/case - number of cases based on user input? on: January 21, 2014, 08:38:37 am
Hi, I've been trying to workout how I can control the number of cases in a switch/case statement based on user input. Is it possible?

Jamie
5  Using Arduino / LEDs and Multiplexing / Re: Multiplexing dual 7segment diplays on: September 12, 2012, 10:27:04 am
Wow that was quick; only 3 working days and 4 MAX7219 chips have just landed on my desk in the UK from San Jose!

Reading up on them they look like really well thought out chips. I've got the rest of the week off work so I'll see what I can do with them.

Cheers,
Jamie
6  Using Arduino / LEDs and Multiplexing / Re: Multiplexing dual 7segment diplays on: September 08, 2012, 03:13:36 pm
Many thanks Oracle, I've just ordered a couple of MAX7219 samples from Maxim and will have a play.

Cheers,
Jamie
7  Using Arduino / LEDs and Multiplexing / Multiplexing dual 7segment diplays on: September 08, 2012, 06:24:18 am
Hi there,

I'm a relative newbie to programming and electronics, with a lot of perseverance I've built my own Arduino controlled home brewery and now my attention has turned to serving the beer! I've got a beer fridge (kegerator) with 4 taps and want to display the amount left in each keg. I'm concentrating on the display first.

I've got 4 CC and 4CA dual segment displays:


I also have a bunch of 74HC595N shift registers. From my research I believe its possible to drive each display via a '595 and PNP / NPN transistors to sink /source current, depending on which type of display is used (not forgetting current limiting resistors on each data pin on the display). I really could do with some pointers as to a schematic using a 328 Arduino chip, I've seen loads of different ways to drive 7 segment displays and I'm a wee bit baffled by it all!

Cheers,
Jamie
Pages: [1]