Show Posts
Pages: 1 ... 50 51 [52] 53 54 ... 244
766  Using Arduino / Project Guidance / Re: Robotic arm from scratch on: April 05, 2014, 01:58:24 am
If you want your arm to be strong, then use metal worm gears. What is the arm going to be made from and how big will it be?
767  Using Arduino / Project Guidance / Re: need help with judge dredd lawgiver lights and sound [IMAGES] on: April 04, 2014, 09:18:13 pm
I want one.
768  Using Arduino / Displays / Re: Can't get my LCD screen to work. Help? on: April 04, 2014, 09:14:13 pm
Well what does it do? Does anything at all happen, does the backlight come on, do you see black boxes on the screen. Did you remember to have a pot connected to the contrast pin?

Post some pictures of your setup. Please try to make the pictures a reasonable size.
769  Using Arduino / Project Guidance / Re: Bee Hive Scale on: April 04, 2014, 08:38:22 pm
Why not just hang the hive from a digital scale? Or you can make your own scale that way you can have whatever alarms your want.
770  Using Arduino / Programming Questions / Re: Variable Counting on: April 04, 2014, 05:31:46 pm
Make sure you declare all the variables at the top.

if( someVar == 0)
  counter++;
else
  counter = 0;

Its not rocket science.
771  Using Arduino / Project Guidance / Re: Robot wireless mode select on: April 04, 2014, 01:26:50 am
Try this.
Quote
boolean state = digitalRead(Stay) ; // make state boolean at the top of your code
 if( state != lastState )
 {
   if( state == HIGH )
      s = !s;

   lastState = state; // <- this had to be taken out of "if( state == HIGH )"
 }
772  Using Arduino / Project Guidance / Re: Sumobot project on: April 03, 2014, 11:58:15 pm
Backlash, Nightmare and Minion were my favorites.
773  Using Arduino / Project Guidance / Re: Sumobot project on: April 03, 2014, 11:41:19 pm
Basically.
I miss Battlebots
774  Using Arduino / Project Guidance / Re: Sumobot project on: April 03, 2014, 11:13:17 pm
The rules are the same, each component must abide by a certain set of guidelines or rules according to their class to ensure a fair match.

As I said, they will not allow something as small as a toaster to go up against something as big as a lawnmower.
775  Using Arduino / Project Guidance / Re: Sumobot project on: April 03, 2014, 10:57:53 pm
Quote
Are we supposed to know what the heck that is ?
Im going to go out on a limb and say Sumo wrestling with robots.

Quote
What is the best program/ strategies to be used in competitions against other sumo bot users.
First you need to know what the rules are and what is allowed. How big does it need to be, I'm sure they won't allow something the size of a lawn mower, so find the max height, width and weight.

How many wheels can you use, can you use treads, what type of motors can you use. Find out if sensors can be used to detect and try to stay within the ring, even though I doubt sensors can be used but check everything.

Once you know everything that is allowed, then you can start designing and building.
776  Using Arduino / Project Guidance / Re: Creating a bluetooth controller on: April 03, 2014, 08:29:22 pm
The default baud rate is usually 9600. Also from my experience, if they are blinking then they are not connected, only when the LED is solid, are they connected.
777  Using Arduino / Programming Questions / Re: Real Time Key control on: April 02, 2014, 09:07:21 pm
The program Putty will allow you to do that, you will just need to code it so if no key is pressed it sends a stop key 'w'.
778  Using Arduino / Programming Questions / Re: Question about Scroll Display Left on: April 02, 2014, 03:39:15 pm
This is what I came up with. I modified another users sketch that I had.
You will need to change a few things to get it to work on your screen. Also it would be better if this was made into a class.

Code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#define N_CHARS  ((sizeof(Compass)/sizeof(Compass[0]))-1)

LiquidCrystal_I2C lcd(0x20,20,4);  // set the LCD address to 0x20 for a 16 chars and 2 line display

char Compass[21] = {
  "N....E....S....W...."};
 
int index = 19, index2 = 0;
unsigned long time = 0, time2 = 0;

void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.backlight();
}

void loop()
{
  setHeadingRight(0, 1000);
  setHeadingLeft(1, 500);
}

void setHeadingRight(byte row, unsigned long duration)
{
  if(millis() - time > duration)
  {
    time = millis();
    if(index >= 0)
    {
      index--;
      for (int i = 0; i < N_CHARS; i++)
      {
        lcd.setCursor(i,row);
        if(index == N_CHARS) index = 0;
        lcd.print(Compass[index++]);
      }
    }
    else index = 19;
  }
}

void setHeadingLeft(byte row, unsigned long duration2)
{
  if(millis() - time2 > duration2)
  {
    time2 = millis();
    if(index2 < 20)
    {
      index2++;
      for (int i = 0; i < N_CHARS; i++)
      {
        lcd.setCursor(i,row);
        if(index2 == N_CHARS) index2 = 0;
        lcd.print(Compass[index2++]);
      }
    }
    else index2 = 0;
  }
}
779  Using Arduino / Programming Questions / Re: Question about Scroll Display Left on: April 02, 2014, 02:47:46 pm
I don't think it will work even like that. The scrollDisplay functions will move whatever is on the screen. I'll try something on my end but I still don't think it will work.
780  Using Arduino / Programming Questions / Re: Question about Scroll Display Left on: April 02, 2014, 02:17:18 pm
No, for that you would need to make you own function. What you can do is make a table (array) of everything that is to go on the screen, then you can move whatever you want in the array then update the screen.

Pages: 1 ... 50 51 [52] 53 54 ... 244