Show Posts
Pages: 1 ... 36 37 [38] 39 40 ... 196
556  Using Arduino / Project Guidance / Re: Board for final Project. on: January 09, 2014, 07:49:14 pm
What size lcd do you want? The links below are TFT LCDs only, Arduino board not included.

3.2" tft LCD for UNO/Mega

2.6" LCD for UNO/Mega

2.4" LCD for UNO/Mega
557  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: January 09, 2014, 06:52:47 pm
What do you get for the raw gyro values, do they fluctuate too?
558  Using Arduino / Programming Questions / Re: 315 MHz Tx and Rx problems. on: January 09, 2014, 12:56:50 am
If you can provide pictures, then post them. Post your setup, and wiring too.
559  Using Arduino / Project Guidance / Re: Any alternative to prevent batteries draining out on: January 09, 2014, 12:52:43 am
Quote
The setup of device is restrained to AA 9v battteries only. So cannot go for other batteries.
Why, whats restraining it? Your batteries will drain regardless of what you do, so your only option is to get either low voltage/ low current sensors and LCD which are very expensive, or get a rechargeable battery pack.

I bought this, 12V super rechargeable battery pack, LINK. Its about the size of 3 AA batteries and I've had it for about a month now and I only had to charge it once. And yes I do use it all the time, still on that same charge.
560  Using Arduino / Programming Questions / Re: 315 MHz Tx and Rx problems. on: January 08, 2014, 11:40:17 pm
You have both the 433 and 315? Maybe your using the wrong "pairs". My guess is one of them is 433 and the other is 315.
561  Using Arduino / Programming Questions / Re: 315 MHz Tx and Rx problems. on: January 08, 2014, 10:47:04 pm
Try these.

Transmitter:
Code:
#include <VirtualWire.h>

void setup()
{
    Serial.begin(9600);   // Debugging only
    Serial.println("setup");

    // Initialise the IO and ISR
    vw_setup(2000); // Bits per sec
    vw_set_tx_pin(3);
}

void loop()
{
  char *msg;
  msg = "Hi";
  vw_send((uint8_t *)msg, strlen(msg));
  vw_wait_tx();
}

Receiver:
Code:
#include <VirtualWire.h>

void setup()
{
  Serial.begin(9600); // Debugging only
  Serial.println("setup");
 
  vw_setup(2000); // Bits per sec
  vw_set_rx_pin(2);     // receiver pin
  vw_rx_start();       // Start the receiver PLL running
}

void loop()
{
  uint8_t buf[VW_MAX_MESSAGE_LEN];
  uint8_t buflen = VW_MAX_MESSAGE_LEN;

  if (vw_get_message(buf, &buflen)) // Non-blocking
  {
    for(int i =0; i < buflen; i++)
    {
      Serial.print(buf[i]);   
    }
  }
}
562  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?
563  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.
564  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.
565  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);
    }
  }
}
566  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?
567  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.
568  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.
569  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?
570  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?
Pages: 1 ... 36 37 [38] 39 40 ... 196