Show Posts
Pages: 1 ... 53 54 [55] 56 57 ... 252
811  Using Arduino / Project Guidance / Re: Need help for my arduino project PLEASE ANYONE! on: April 28, 2014, 04:06:49 pm
I should have asked for you to format your code too with CTRL+T.

What do your sensors return when they are blocked? Do they return a range, or just a HIGH or LOW signal?

Have you tried to simply block one sensor to change the state of an LED? Starting small usually leads to bigger and better things.

You need to first see what the sensors return, and second use an IF statement to see if both sensors are blocked at the same time. If both are blocked LED = HIGH, else LED = LOW.
812  Using Arduino / Project Guidance / Re: Need help for my arduino project PLEASE ANYONE! on: April 28, 2014, 03:11:27 pm
Sounds to me like you need a latch, but I won't know for certain unless you post your code. Please put your compiled sketch in code tags, of which can be obtained with the # sign above the smiley faces. If you have any errors from the compiler, please post them too.

813  Development / Other Software Development / Re: New TFT Extension Library on: April 28, 2014, 11:59:01 am
UPDATE:

Functions added:
   rounded_Square   :: robtillaart
   drawMoon              :: robtillaart
   smiley_Face          :: robtillaart
   HourGlass               :: robtillaart
   SpeechBubble        :: robtillaart

   drawGauge             :: cyclegadget

My own new functions:
  Triangle : Bare basic make-a-triangle function
  fillPoly : Basically a fill triangle function
  drawOvalArc : See the example sketch, MoonLightPark
----------------------------------------------------

I moved the variable Thickness next to radius in both TouchArc and drawArc.
Polygon and drawStar now are able to be filled

And I am still working on making the SpeechBubble have multiple lines of text.

If anyone has anymore ideas for functions they would like to add to the library, let me know and I will add them.

**Currently working on the Greek Font and symbols.
814  Development / Other Software Development / Re: New TFT Extension Library on: April 26, 2014, 02:41:44 pm
@cyclegadget
Yea, I can make that, in fact I think I already did, but I didn't make it into a library function.

I will add it to the list.
815  Using Arduino / Project Guidance / Re: First project, building a RC-car on: April 25, 2014, 04:55:44 pm
I'm not sure if that Bluetooth module is able to pair with a PS3 controller, usually you need a USB shield and bluetooth dongle to connect to one. You definitely should do some research on that and see what the specs of that module are and what it is capable of doing.
816  Using Arduino / Project Guidance / Re: Wireless Accelerometer Controller for Biped Robot on: April 24, 2014, 08:31:20 pm
Well for starters, you're going to need two arduinos of your choice. You will also need a motor shield if you plan to use DC motors, or a small board that can regulate the input voltage and supply 6 volts to power your servos. Since this will be indoors, you can use either IR, a cheap RF pair, or even Bluetooth. Each have their advantages and disadvantages, but whichever one you choose to use, will also depend on your other parts.

I would go with either RF or Bluetooth.


I have others on my channel too.
817  Using Arduino / Programming Questions / Re: Searching for info regarding the PS2X Library on: April 24, 2014, 03:45:47 pm
What you should do is have two power supplies, one for the motors and the other for the arduino. NOTE make sure you connect the ground on the arduino to the ground for the motors. Or simple the negative battery terminals together.
818  Using Arduino / Programming Questions / Re: Searching for info regarding the PS2X Library on: April 24, 2014, 12:23:19 am
I might be able to explain why both motors go in reverse. I know if I just turn on my controller and don't press the analog button, it goes full reverse. This is because your telling the code to look at the analog stick, get a value and map it for the motors. If the analog button is not pressed, then the sticks output 0 and that in turn is mapped to full reverse.

This could also be done if the controller suddenly cuts off so maybe your adapter is not getting enough current or a stable 3.3 voltage. If you want, you can debug and use some serial prints to see what values are being sent to the robot.
819  Using Arduino / Programming Questions / Re: keypad on: April 23, 2014, 10:06:04 pm
Did you remember to change the number in Serial.begin() to the number that is found in the lower right corner of your serial monitor?
820  Using Arduino / Programming Questions / Re: keypad on: April 22, 2014, 06:14:14 pm
What you want to do is:
First, read the keypad, which you have done.

Second, see if a button is pressed, which again you have already done with if (key != NO_KEY )

Third, you want to convert the chars into an actual value. This is done simply with, n = n * 10 + (key - '0');. Where "(key - '0')" makes the char into a value by subtracting the char by 48 or '0'. Then adding it to "n * 10", where n must be set to zero before you add the converted value. Now once that is done, every value afterwards will concatenate into n, UNTIL, n is once again set back to zero.

Example using the serial monitor. Enter 123. or 25.
Code:
int num = 0;

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

void loop()
{
  if(Serial.available() > 0)
  {
    char c = Serial.read();
    //if(c != NO_KEY) // For keypad library
    //{
      if(c == '.') // if char == '.' then show the value. NOTE this can be changed to if(c == '*') or if(c == '#')
      {
        Serial.println(num);
        num = 0; // once shown reset num back to 0
      }
      else // char was not a period, so store the chars and convert them into num.
       num = num * 10 + (c - '0');
    //}
  }
}
821  Development / Other Software Development / Re: New TFT Extension Library on: April 22, 2014, 04:45:33 pm
Ok here is the current version of my library.

The speech bubble is a pain in the butt. I can get it to display text in the center just fine, but when I want to divide the text to use the whole bubble, that's when things go wrong.

I will get it eventually.
822  Using Arduino / Programming Questions / Re: Searching for info regarding the PS2X Library on: April 22, 2014, 04:11:37 pm
What are you using to move your robot, 360 servos or DC motors?

Post a picture of your robot and if possible the connections too.
823  Development / Other Software Development / Re: New TFT Extension Library on: April 22, 2014, 12:45:00 pm
Ok, Great then the HourGlass function, will be accurate to that length of time.
824  Development / Other Software Development / Re: New TFT Extension Library on: April 22, 2014, 12:04:11 am
Related to HourGlass function.

Does anyone know how long it takes for the millis function to rollover?
825  Using Arduino / LEDs and Multiplexing / Re: Need help changing code to change display orientation on: April 21, 2014, 07:34:38 pm
Can you send me a before and after video of what your seeing?
Pages: 1 ... 53 54 [55] 56 57 ... 252