Show Posts
Pages: [1] 2 3 ... 11
1  Using Arduino / LEDs and Multiplexing / Re: Push button & muti coloured LED on: March 24, 2014, 08:05:56 pm
lol, same project as me.. same example i saw..
2  Using Arduino / LEDs and Multiplexing / Re: 1 button to control 1 RGB LED on: March 23, 2014, 06:14:25 pm
Quote
Does this means 'free running at full speed' or step to next color?

i don't know what you mean by that..


the RGB led starts off, then you press the button and it's first color (say red), appears.. press the button again and it's next color appears (say purple), press it again and it's third color appears (say yellow).. so on and so forth.. that's why i say the colors must be hard coded into the code.. that way i can change the 8 colors if need be.

the second button has 2 functions.. but for now i just want it to turn off the RGB led..
3  Using Arduino / LEDs and Multiplexing / Re: 1 button to control 1 RGB LED on: March 23, 2014, 03:25:52 pm
this has 3 buttons to control the 3 colors of 1 led - not what 'm looking for..


looking for 1 button, 1 rgb led
4  Using Arduino / LEDs and Multiplexing / Re: 1 button to control 1 RGB LED on: March 23, 2014, 03:22:29 pm
no random colors, the 8 colors must be specific - ie: red, green, blue, orange, ect.. any 8 will do

currently yes it is a common anode but that may or may not change to common cathode

no waiting for button release.. press and let go for each color

should have debounce

second button is just to turn the rgb led off, has no other effect currently

5  Using Arduino / LEDs and Multiplexing / 1 button to control 1 RGB LED on: March 23, 2014, 02:41:54 pm
Project:

1 rgb starts off, then when you press the button it changes to another color. press it again and it changes to another color. It would have say 8 colors you could go through (hard coded ofcourse, incase color changes need to be made).

so here's what i have:

1 RGB led and 3 resistors
1 push button and a resistor

i'd like to know how to connect it together and make it work right.. i haven't found an example yet. can someone please give me a diagram?

actually, there will be a second button, it will do something else, but will also turn that RGB led off as well..
6  Using Arduino / Programming Questions / Re: 3 Digit Led on: January 08, 2014, 08:12:08 pm
i gave you everything i have, how it's wired and all... i don't need a meter to tell me anything... it's all wired up right...
7  Using Arduino / Programming Questions / Re: 3 Digit Led on: December 31, 2013, 04:31:02 pm
is the project upside down or is the display in upside down?

Tom... smiley

nope..
8  Using Arduino / Programming Questions / Re: 3 Digit Led on: December 30, 2013, 06:02:30 pm
http://cdn.img42.com/d56f59c361bfcf61c752e83304b4b96c.jpeg

and i do not have a DMM
9  Using Arduino / Programming Questions / Re: 3 Digit Led on: December 29, 2013, 09:33:29 pm
yes, that's how i have it.. and now nothing lights up
10  Using Arduino / Programming Questions / Re: 3 Digit Led on: December 29, 2013, 10:38:54 am
was from the last topic.. so i just left them there.. so do i take out the resistor from 19 and put a cap there instead?
11  Using Arduino / Programming Questions / Re: 3 Digit Led on: December 29, 2013, 10:12:36 am
i don't have a cap connected yet... but i can

too big to post
http://cdn.img42.com/cb9057572a27bb164293e869ee6f7321.jpeg

12  Using Arduino / Programming Questions / 3 Digit Led on: December 29, 2013, 09:00:16 am
Ok,  let's try this again... I was going to have my other topic unlocked but i didn't want to get confused nor did i want anyone else to be as well.

i just received a pair of COMMON CATHODE 3 Digit Led's..  I have tested them both and unfortunately one is defective and i'm waiting for the replacement.

Here is the pin layout - the X's are the COMMON CATHODES:
X A F X X B

E D DP C G

They are connected to their corresponding segments on a MAX7219, the only one that is NOT connected is the DP simply because i have no use for it at all.


Here is the code i have that was given to me in the other topic, unfortunately it does NOT work, all it displays is 888
Code:
#include <SPI.h>

// set up names for the 14 MAX7219 registers:
const byte MAX7219_REG_NOOP        = 0x00;
// codes 1 to 8 are digit positions 1 to 8, see below
const byte MAX7219_REG_DECODEMODE  = 0x09;
const byte MAX7219_REG_INTENSITY   = 0x0A;
const byte MAX7219_REG_SCANLIMIT   = 0x0B;
const byte MAX7219_REG_SHUTDOWN    = 0x0C;
// registers 0x0D and 0x0E are not used
const byte MAX7219_REG_DISPLAYTEST = 0x0F;
// you have 3 digits, so
const byte MAX7219_DIG0        = 0x01;
const byte MAX7219_DIG1        = 0x02;
const byte MAX7219_DIG2        = 0x03;

// 0x00,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F are same as 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15

// and 3 variables to hold data - you will change these later to have different things displayed
byte digit0 = 3;
byte digit1 = 6;
byte digit2 = 9;

byte latchPin = 10; // or whatever pin you used
// 13 SCK will connect to MAX7219 clock
// 11 MOSI will connect to MAX7219 serial data in

// now put some data in the MAX7219 registers, and setup the latchPin - backing off from the function calls

void setup ()
  {
Serial.begin(9600); // setup serial communications for debugging
pinMode (latchPin, OUTPUT);
digitalWrite (latchPin, HIGH);

// turn on SPI library - sets  up the internal hardware for SCK, MISO, MOSI
SPI.begin (); // transfers to the MAX7219 will use default speed of 4 MHz

// now setup the 5 registers that control things
digitalWrite (latchPin, LOW);
SPI.transfer (MAX7219_REG_SCANLIMIT);      // send address
SPI.transfer (2); // send data to show 3 digits
digitalWrite (latchPin,  HIGH); // data latched on this signal going Low to High

//continue for the other registers
digitalWrite (latchPin, LOW);
SPI.transfer (MAX7219_REG_DECODEMODE);      // send address
SPI.transfer (0xFF); // use internal mapping to create the digits
digitalWrite (latchPin,  HIGH); // data latched on this signal going Low to High

//continue for the other registers
digitalWrite (latchPin, LOW);
SPI.transfer (MAX7219_REG_DISPLAYTEST);      // send address
SPI.transfer (0); // no display test (display test on turns on all segments)
digitalWrite (latchPin,  HIGH); // data latched on this signal going Low to High

//continue for the other registers
digitalWrite (latchPin, LOW);
SPI.transfer (MAX7219_REG_INTENSITY);      // send address
SPI.transfer (7); // mid level intensity, 0 to 15
digitalWrite (latchPin,  HIGH); // data latched on this signal going Low to High

//continue for the other registers
digitalWrite (latchPin, LOW);
SPI.transfer (MAX7219_REG_SHUTDOWN);      // send address
SPI.transfer (1); // 1 = not shutdown mode
digitalWrite (latchPin,  HIGH); // data latched on this signal going Low to High

// MAX7219 control registers all set, send some data!
Serial.println ("MAX7219 Setup done");

//continue for the data registers
digitalWrite (latchPin, LOW);
SPI.transfer (MAX7219_DIG0);      // send address
SPI.transfer (digit0); // data
digitalWrite (latchPin,  HIGH); // data latched on this signal going Low to High

//continue for the data registers
digitalWrite (latchPin, LOW);
SPI.transfer (MAX7219_DIG1);      // send address
SPI.transfer (digit1); // 1 = not shutdown mode
digitalWrite (latchPin,  HIGH); // data latched on this signal going Low to High

//continue for the other registers
digitalWrite (latchPin, LOW);
SPI.transfer (MAX7219_DIG2);      // send address
SPI.transfer (digit2); // 1 = not shutdown mode
digitalWrite (latchPin,  HIGH); // data latched on this signal going Low to High

Serial.println ("End of Setup");
}   // end of setup
void loop(){
}

What i want to accomplish is: to control a 10x10 LED MATRIX
These buttons control the 3 Digit Led, but each button will have 2 jobs..
Button 1: A/1
Button 2: B/2
Button 3: C/3
Button 4: D/4
Button 5: E/5
Button 6: F/6
Button 7: G/7
Button 8: H/8
Button 9: I/9
Button 10: J/10

So, if i wanted to display "e08" i would press button 5 and then button 8. Also i assume i would have to multiplex the buttons somehow with another chip?

We'll get to the following soon:
Button 11: Clear
Button 12: Enter
Button 13:  Fleet
13  Using Arduino / Microcontrollers / Re: how do you make these? on: December 23, 2013, 06:51:16 pm
now i wanna buy that stupid thing and i can't find it.. i swear i found it on ebay
14  General Category / General Discussion / Re: I was logged in as someone else WTF? on: December 23, 2013, 06:38:50 pm
hope this issue was fixed!
15  Using Arduino / LEDs and Multiplexing / Re: is there a way to test out a segment display without wiring it up? on: December 02, 2013, 03:30:04 am
Temporarily locked ...

for a reason... new displays ordered.. common cathode and i asked nicely to pause the topic, therefore it was temp locked until i got the new parts. because we are going to continue with the max7219 as we started.. just have to swap out the displays when i get them.
Pages: [1] 2 3 ... 11