Show Posts
Pages: 1 ... 38 39 [40] 41 42 ... 197
586  Using Arduino / Programming Questions / Re: 315 MHz Tx and Rx problems. on: January 08, 2014, 10:33:27 pm
What are the voltages to the transmitter and receiver? And what is the baud rate set to on your Serial monitor?
587  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: January 08, 2014, 10:22:51 pm
The Serial printouts slow the code down, so move them after  lastTime = firstTime.
588  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: January 08, 2014, 09:31:49 pm
Post your updated code.
589  Using Arduino / Project Guidance / Re: combined lanc+PS/2 controller possible? on: January 08, 2014, 08:21:56 pm
Ok simple. There are two types of button setups, normally HIGH and normally LOW.

(VCC) ------ | Button | -----={ Arduino Pin }=-----(Resistor 10K) ------ (GND):  Normally LOW

(VCC) ------(Resistor 10K)-----={ Arduino Pin }=-----| Button | --------(GND): Normally HIGH

Simple Code with Debounce:
Code:
const byte LED = 13;
const byte Button = 2; // use array for multiple buttons. "= {2,3,4,5};"
byte ButtonState;  // use array for the multiple button states
byte lastState = LOW; //-------------------------
unsigned long oldTime = 0; //-------------------------

// **Fill in for other buttons. Hint: use a for loop
void setup() {
  pinMode(LED, OUTPUT);
  pinMode(Button, INPUT);
}

void loop() {
  ButtonState = digitalRead(Button);

  if(ButtonState && ButtonState != lastState)
  {
    oldTime = millis();
    lastState = ButtonState;
  }

  if((millis() - oldTime ) > 50UL)
  {
    if(ButtonState)  // if button is pressed and state is HIGH
    {
      // Do something here
      digitalWrite(LED, HIGH);
    }
    else
    {
      // Do something else
      digitalWrite(LED, LOW);
    }
  }
}
590  Using Arduino / Project Guidance / Re: combined lanc+PS/2 controller possible? on: January 08, 2014, 07:23:25 pm
A keyboard button or a regular tactile button?
591  Using Arduino / Programming Questions / Re: love o meter starting project on: January 08, 2014, 07:48:05 am
@PaulS
Ale_ale15 was already given working solutions by me and one other person. My guess is he tried them and it still does not work, which means it's not the code, but more likely the wiring itself. Possibly the LEDs are not grounded or are wired backwards.
592  Using Arduino / Project Guidance / Re: motor movement sensing on: January 08, 2014, 04:48:00 am
Quote
how will i attach the rotary encoder.to the conveyor belt..
with a wheel or knob pressed against the belt.
593  Using Arduino / LEDs and Multiplexing / Re: HELP for creating 8x8x4 LED MATRIX non-scrolling text on: January 08, 2014, 02:56:10 am
What chips are you using to drive the LEDs, and have you taken a look at all the LED matrix libraries in the Arduino Playground?
594  Using Arduino / LEDs and Multiplexing / Re: LCD printing weird characters in loop function on: January 08, 2014, 02:52:52 am
Your libraries are most likely using the same pins. Are they loose boards connected by wires, or stacked on top of each other?
595  Using Arduino / Programming Questions / Re: Help on LCD display backwards scrolling text on: January 08, 2014, 02:37:27 am
@UKHeliBob: You beat me to it.

You do know you have functions like  rightToLeft(); and leftToRight(); which moves whatever you print either left or right, not to mention being able to scroll your (S/s)trings with scrollDisplayLeft(); and scrollDisplayRight();

Here is a link you your LCD library, with all your possible functions. HERE

Unless of course, you are fully aware of these functions and don't want the (S/s)trings to bleed onto the next row, you just want them to disappear when they get to the edge of the lcd screen.
596  Using Arduino / Project Guidance / Re: motor movement sensing on: January 08, 2014, 02:21:16 am
An encoder measures pulses, and depending on the pulses, the value calculated is either positive or negative. There are many example in the arduino playground, check them out.
597  Using Arduino / Project Guidance / Re: combined lanc+PS/2 controller possible? on: January 08, 2014, 01:59:17 am
It should be as simple as combining the setup functions, loop functions and just drop-in everything else. Make sure they use different pins, or have it so that the same pins are called to do the same thing I.E open/close shutter, take photo, things like that.
598  Using Arduino / Programming Questions / Re: multidimensional boolean array ?? on: January 08, 2014, 01:08:20 am
Not sure you fully understand arrays or maybe you just made "small" have different data on purpose, but you can use a FOR loop(s).

If you know how many elements you have per group (in this case you have 3) you can use the module operator (%) to change the group when you get to the last element of the group. But still, you should either have two different arrays, maybe  small and Small.
599  Using Arduino / Project Guidance / Re: Learning about Arduino & Electronics on: January 08, 2014, 12:24:01 am
If you want to learn electronics and how everything works together, go by a small toy (anything) and take it apart. You know what most componets are, and I'm sure you know how to read a schematic, right? If you do, then you should study the toy's circuit board, write down a schematic of what you see (part numbers, resistor bands, everything). Once you are comfortable with your schematic, take apart the circuit board part by part, and try to put it back together without the actual circuit board. The only way to learn how something works is by taking it apart.

If you lack soldering skills, then you can simply buy a radio shack learners kit (if you haven't already) and make everything in the circuit books. Once you get something to work, try swapping parts and see what happens when you do.
600  Using Arduino / Project Guidance / Re: touch screen buttons on: January 07, 2014, 09:16:32 pm
The Utouch library has a way to let you see your raw touch data. GetY and GetX. These will let you see if your screen is calibrated or not. There should also be a calibration sketch, if not, then it should be on henning's website.
Pages: 1 ... 38 39 [40] 41 42 ... 197