Show Posts
Pages: 1 2 3 [4] 5 6 ... 231
46  Using Arduino / Programming Questions / Re: Multiple buttons for State Changes - Rgb led strips on: July 23, 2014, 09:10:23 pm
You can cut down your pin usage by using shift registers and a 16-4 encoder for your buttons.
Look at these links.
http://www.instructables.com/id/64-pixel-RGB-LED-Display-Another-Arduino-Clone/

https://www.youtube.com/watch?v=QIZX8qZ6nlE


Added:
Quote
Why not just have one function and pass in the value for the denominator?
This was meant for Bulldog

Quote
code was for demonstration purposes only... a visualization of how to approach the problem
Ok, that's fair enough.
47  Using Arduino / Programming Questions / Re: Multiple buttons for State Changes - Rgb led strips on: July 23, 2014, 08:52:52 pm
Why not just have one function and pass in the value for the denominator?
48  Using Arduino / Programming Questions / Re: Unexpected behavior with RF receiver code on: July 23, 2014, 08:49:57 pm
Quote
421 > delayLeft > 0
this doesn't look correct to me. This however does, (421 > delayLeft) && (delayLeft > 0), it might not solve your entire problem, but its a start.

I'll go over the code some more.  Could you post the FULL code please?

Added:
When does bufVal get updated to the new buf value?
49  Using Arduino / Programming Questions / Re: Multiple buttons State Changes - Rgb led on: July 23, 2014, 08:46:08 pm
What is your setup, what board are you using and  what LED driver/shift register are you using? Do you have a sketch you are currently working on and can you provide us with pictures and/or a complete schematic.

Your problem sounds like it has an easy solution, but we don't know your exact hardware to be certain.
50  Using Arduino / Programming Questions / Re: Using an array in a switch case on: July 23, 2014, 08:21:40 pm
Quote
For one, the array needs to be 2D (char states[4][6], not char states[4]) to work with my previously written code.
If you had posted the previous code and said you needed them to work together, I would have given you exactly what econjack gave you.
51  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: July 23, 2014, 04:50:36 pm
The pins used in the diagram are just examples, it's the pins in the code you want to go by. Then again, you could always changes those too, but as long as you know which pin is what (clk,data,reset and busy) you can code it to work on any combination of arduino pins. Just note, if you plan on using the serial monitor, don't have anything in digital pins 0 & 1 , otherwise you may get incorrect results.
52  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: July 23, 2014, 03:46:50 pm
P06 is the busy pin (pin 5), it lets the arduino know when a audio file has ended.
53  Development / Other Software Development / Re: AWind. GUI library for Arduino - TFT Displays on: July 23, 2014, 01:04:49 pm
It sounds similar to my library, but you included charts, oscilloscopes and sensor monitors.

My library is here TFT_Extension
54  Using Arduino / Programming Questions / Re: Using an array in a switch case on: July 23, 2014, 12:52:28 pm
No but you can do this.
Code:
#define Dud 0
#define Win 1
#define Lose 2
#define Accel 3

byte states[4] = {
  Dud,Win,Lose,Accel};

void setup()
{
  Serial.begin(115200);

  switch(states[0])
  {
  case Dud:
    //do nothing
    break;

  case Win:
    // user wins
    break;

  case Lose:
    //user loses
    break;

  case Accel:
    //timer accelerates
    break;
  }
}

void loop()
{

}
55  Using Arduino / Project Guidance / Re: wich one? on: July 23, 2014, 12:43:20 pm
Added:
Quote
the UNO is the general use one with 14 pins that can be inputs or outputs.
Dont forget the analog pins too.
56  Using Arduino / Project Guidance / Re: LCD Clock on: July 22, 2014, 09:49:07 am
Do you have the DateTime library?
57  Development / Other Software Development / Re: library for mongodb on: July 21, 2014, 08:44:31 am
Is it related to Arduino in any way, shape or form?
58  Using Arduino / Project Guidance / Re: 2-fan controller with OLED Display and navigation knob? on: July 17, 2014, 09:05:02 am
Check out this link Thermistor2
59  Using Arduino / Programming Questions / Re: using XOR in a loop on: July 17, 2014, 08:56:53 am
What do you mean, your XOR logic is in the if(Serial.available() ) statement, so you wont see anything unless you first send something.

If you want it to continuously show the data, then take them out of that statement.

Can you post a printout of what you're seeing and what you expect to see?
60  Using Arduino / Programming Questions / Re: using XOR in a loop on: July 17, 2014, 08:02:27 am
You need to post the full code. We can't help on snippets alone.
Pages: 1 2 3 [4] 5 6 ... 231