Show Posts
Pages: [1] 2 3 ... 7
1  Using Arduino / Displays / Re: Arduino tft screen just shows lines. on: April 08, 2014, 04:10:10 pm
thanks! cant wait to try it out
2  Using Arduino / Displays / Arduino tft screen just shows lines. on: April 07, 2014, 07:17:02 pm
I have an arduino esplora with the natraul screen, the screen is the new one for the robot, acouple people said they had the same problems. so when it turns on the screen goes all white, and after a few seconds it shows four black lines horizontally down the screen that block out, pong, or any other program. it also seems the screen is broken, at the top its loose (it can move up and down) other than that the hardware looks fine. some other people were saying its a sw problem and it works fine on the arduino robot only. Help! and thanks in advance!
3  Using Arduino / Displays / Re: Can't get my LCD screen to work. Help? on: April 07, 2014, 07:12:11 pm
Just putting it out there nice name smiley-wink but try connecting the second half of the control pins, like my hitachi has 8 control pins looks like you only have four. in some lcds the other four is the other half of the screen. good luck
4  Using Arduino / Programming Questions / Re: Mintrontics Mintduino chip won't program on: October 26, 2013, 11:14:46 am
 smiley Guys I had the same problem, easy fix- take two wires and plug them into rx and tx on arduino, then upload the sketch, or program the arduino chip and use it temporarily in your project. Remember be very careful putting it back into your arduino board.
-Clay
 
5  Using Arduino / General Electronics / Re: making a potentiometer with paper? on: April 07, 2013, 08:48:36 am
 Yes try making paper bigger thus causing less resistance but it is easier just to buy a potentiometer if your trying to complete a project good luck and tell us how you did it in the end! smiley
6  Using Arduino / General Electronics / Re: lm12864lfw to arduino on: April 06, 2013, 10:46:10 am
http://www.topwaydisplay.com/Pub/Manual/LM12864LFW-Manual-Rev0.1.pdf
7  Using Arduino / General Electronics / Re: lm12864lfw to arduino on: April 06, 2013, 08:49:48 am
scroll down to LM12864LFW and open second PDF
http://www.topwaydisplay.com/Product/LCDM-Graphics/index-gb.htm
8  Using Arduino / General Electronics / lm12864lfw to arduino on: April 05, 2013, 08:57:45 pm
Hello I want to run the GLCD library with my arduino and lm12864lfw I have tried different hookups to replace the ones in the library but I have failed. I need to know how to hookup the LCD to my arduino so I can use the GLCD library. Thanks!
9  Using Arduino / Programming Questions / Re: Arduino limit switch robot problem on: March 16, 2013, 05:17:44 pm
Thanks jimbo, but now when it hits something it stops and the loop repeats here new code:
Code:
int STBY = 10; //standby

//Motor A
int PWMA = 3; //Speed control
int AIN1 = 9; //Direction
int AIN2 = 8; //Direction

//Motor B
int PWMB = 5; //Speed control
int BIN1 = 11; //Direction
int BIN2 = 12; //Direction


const int button = 2;

int buttonState = 0;


void setup(){
  pinMode(STBY, OUTPUT);

  pinMode(PWMA, OUTPUT);
  pinMode(AIN1, OUTPUT);
  pinMode(AIN2, OUTPUT);

  pinMode(PWMB, OUTPUT);
  pinMode(BIN1, OUTPUT);
  pinMode(BIN2, OUTPUT);
 
  pinMode(button, INPUT);
 
}

void loop(){
 

 
buttonState = digitalRead(button);

  if (buttonState == LOW)
  {
     move(1, 255, 1); //motor 1, full speed, left
     move(2, 255, 2); //motor 2, full speed, right
     delay(10);     
  }
  else
  {
    move(1, 255, 2);
    move(2, 255, 1);
    delay(500);
    stop();
    move(1, 255, 1); //motor 1, full speed, left
    move(2, 255, 1); //motor 2, full speed, left
    delay(1000);
    stop();
  }
   
   
  }




void move(int motor, int speed, int direction){

//Move specific motor at speed and direction
//motor: 0 for B 1 for A
//speed: 0 is off, and 255 is full speed
//direction: 0 clockwise, 1 counter-clockwise

  digitalWrite(STBY, HIGH); //disable standby

  boolean inPin1 = LOW;
  boolean inPin2 = HIGH;

  if(direction == 1){
    inPin1 = HIGH;
    inPin2 = LOW;
  }

  if(motor == 1){
    digitalWrite(AIN1, inPin1);
    digitalWrite(AIN2, inPin2);
    analogWrite(PWMA, speed);
  }else{
    digitalWrite(BIN1, inPin1);
    digitalWrite(BIN2, inPin2);
    analogWrite(PWMB, speed);
  }
}

void stop(){
//enable standby 
  digitalWrite(STBY, LOW);
}
10  Using Arduino / Programming Questions / Re: Arduino limit switch robot problem on: March 16, 2013, 02:55:41 pm
now I get an error saying else without previous if here problem:
Code:
  if (buttonState == LOW);
  {
     move(1, 255, 1); //motor 1, full speed, left
     move(2, 255, 2); //motor 2, full speed, right
     delay(10);     
  }
  else
  { 
    move(1, 255, 1); //motor 1, full speed, left
    move(2, 255, 1); //motor 2, full speed, left
    delay(1000);
  }
11  Using Arduino / Programming Questions / Re: Arduino limit switch robot problem on: March 16, 2013, 02:10:27 pm
THANKS!
12  Using Arduino / Programming Questions / Arduino limit switch robot problem on: March 16, 2013, 01:33:47 pm
Hello I am making a robot for a project and so far I have
-two gear motors
-tb6612fng driver
-arduino uno
-one limit switch

So far I can get it to go forward but I can't get it to stop when it hits a wall, so I used a if statement
like this:
Code:
if (buttonState = HIGH)
  {
     move(1, 255, 1); //motor 1, full speed, left
     move(2, 255, 2); //motor 2, full speed, right
     delay(5000);
     stop();
  }
   else {
    // turn LED off:
    stop();
  }
and my whole code is:

Code:
int STBY = 10; //standby

//Motor A
int PWMA = 3; //Speed control
int AIN1 = 9; //Direction
int AIN2 = 8; //Direction

//Motor B
int PWMB = 5; //Speed control
int BIN1 = 11; //Direction
int BIN2 = 12; //Direction


const int button = 2;

int buttonState = 0;


void setup(){
  pinMode(STBY, OUTPUT);

  pinMode(PWMA, OUTPUT);
  pinMode(AIN1, OUTPUT);
  pinMode(AIN2, OUTPUT);

  pinMode(PWMB, OUTPUT);
  pinMode(BIN1, OUTPUT);
  pinMode(BIN2, OUTPUT);
 
  pinMode(button, INPUT);
 
}

void loop(){
 

 
buttonState = digitalRead(button);

  if (buttonState = HIGH)
  {
     move(1, 255, 1); //motor 1, full speed, left
     move(2, 255, 2); //motor 2, full speed, right
     delay(5000);
     stop();
  }
   else {
    // turn LED off:
    stop();
  }
 

 
  stop();
 
}


void move(int motor, int speed, int direction){
//Move specific motor at speed and direction
//motor: 0 for B 1 for A
//speed: 0 is off, and 255 is full speed
//direction: 0 clockwise, 1 counter-clockwise

  digitalWrite(STBY, HIGH); //disable standby

  boolean inPin1 = LOW;
  boolean inPin2 = HIGH;

  if(direction == 1){
    inPin1 = HIGH;
    inPin2 = LOW;
  }

  if(motor == 1){
    digitalWrite(AIN1, inPin1);
    digitalWrite(AIN2, inPin2);
    analogWrite(PWMA, speed);
  }else{
    digitalWrite(BIN1, inPin1);
    digitalWrite(BIN2, inPin2);
    analogWrite(PWMB, speed);
  }
}

void stop(){
//enable standby 
  digitalWrite(STBY, LOW);
}
13  Using Arduino / General Electronics / Re: Bi Colour Led Matrix Problem on: March 15, 2013, 08:46:23 pm
Ok now I got the program running it is random, and at the "SPACE" at the end it is supposed to be clear but there is two lines left.  smiley-confuse smiley-slim
14  Using Arduino / General Electronics / Re: Bi Colour Led Matrix Problem on: March 15, 2013, 07:55:57 pm
Never mind now it all works but one side is green other is red>  smiley-mad
15  Using Arduino / General Electronics / Re: Bi Colour Led Matrix Problem on: March 15, 2013, 07:53:59 pm
Now half of it isnt working and it is green and yellow and orange, could the leds be burnt from 5v?
Pages: [1] 2 3 ... 7