Show Posts
Pages: 1 ... 91 92 [93] 94 95 ... 253
1381  Using Arduino / Project Guidance / Re: Help needed to decide power supply for bluetooth robot on: January 17, 2014, 03:42:59 am
You will need a 9v regulator for the arduino but, this should be more than enough. 12v super battery
1382  Using Arduino / Project Guidance / Re: changing from serial to bluetooth using BT on: January 17, 2014, 03:40:23 am
Why are you using while loops and why do you have while loops that do absolutely nothing? What updates "value" now that you commented out the line that is supposed to update it? And don't use Strings, there is no need to be using them. If you need to change the incoming chars to an int then use this:

value = value * 10 +  (Buffer - '0' );

When you're done with it, set value back to zero.
1383  Using Arduino / Project Guidance / Re: Need Help in virtual laser keyboard on: January 15, 2014, 04:59:28 pm
Its an oscillating Distance Measuring laser. Like THIS. The problem with making this on your own is, you need the laser to oscillate left and right VERY fast! It may not even be doable with normal motors or servos. You need something to make that laser oscillate, and I have no clue what that would be. You can try your luck with normal DC motors, but I doubt it will work.
1384  Using Arduino / Programming Questions / Re: Error says i need more } before "else", can't get it right on: January 15, 2014, 02:39:55 pm
You need a closing bracket } for your if statement "kontroll1 == LOW". It would help you and us greatly if you formatted your code. Press CTRL+T to format your code.
1385  Using Arduino / Programming Questions / Re: Problems for getting a RFID-RC522 chip to work on: January 15, 2014, 02:51:29 am
Follow the pin layout provided.

Quote
Code:
/*
 ----------------------------------------------------------------------------- Nicola Coppola
* Pin layout should be as follows:
 * Signal     Pin              Pin               Pin
 *            Arduino Uno      Arduino Mega      MFRC522 board
 * ------------------------------------------------------------
 * Reset      9                5                 RST
 * SPI SS     10               53                SDA
 * SPI MOSI   11               52                MOSI
 * SPI MISO   12               51                MISO
 * SPI SCK    13               50                SCK

 *
 * The reader can be found on eBay for around 5 dollars. Search for "mf-rc522" on ebay.com.
 */
1386  Using Arduino / Programming Questions / Re: Speakers problem...in my pro. on: January 15, 2014, 02:35:12 am
Quote
#define trigPin 12
#define echoPin 13
#define trigPin_1 11
#define echoPin_1 10

You need to add two more pinModes in your setup function.
1387  Using Arduino / Programming Questions / Re: Intel Galileo with Osepp servo on: January 15, 2014, 02:00:31 am
With a range from 0 - 180,0 is full reverse, 90 would be stop, 180 is full forward. You need to calculate your mid point to stop the servo.
1388  Using Arduino / Programming Questions / Re: Speakers problem...in my pro. on: January 15, 2014, 01:56:00 am
You still didn't fix the names for your trigger pins and echo pins. They need different names.
1389  Using Arduino / Programming Questions / Re: Lighting LED when button pressed on: January 14, 2014, 03:17:02 pm
You  need to post your code in order to get any feedback.
1390  Using Arduino / Project Guidance / Re: help in my project ... on: January 14, 2014, 05:24:02 am
Radio shack
1391  Using Arduino / Project Guidance / Re: help in my project ... on: January 14, 2014, 04:38:39 am
You would need to make an amplifying circuit. Some TLC272 or 386 OP Amps should work nicely.
1392  Using Arduino / Project Guidance / Re: help in my project ... on: January 14, 2014, 03:11:43 am
You cant have all the speakers work at the same time, the best you can do is switch between them very fast.
Also Pin 5 should be fine.
1393  Using Arduino / Project Guidance / Re: help in my project ... on: January 14, 2014, 02:12:15 am
Quote
#define trigPin 12
#define echoPin 13
#define trigPin 10        Use different names
#define echoPin 11      -------------------
#define trigPin 8        -------------------
#define echoPin 9      -------------------



//setup trig is output and echo is input for the sound. Read serial fastest possible speed
void setup() {
    Serial.begin (115200);
  pinMode(trigPin, OUTPUT);  I believe you have more than two pins
  pinMode(echoPin, INPUT);

}

tone(7, 440, 200);              I'm pretty sure you need to turn one off before turning another one on
  delay(50);
tone(6, 494, 500);
  delay(50);
1394  Using Arduino / Project Guidance / Re: is this program is writ??? replr me on: January 14, 2014, 02:06:52 am
I told you what to change, you can correct the code.
1395  Using Arduino / Programming Questions / Re: Servo on/off with N.O. Momentary button ? on: January 14, 2014, 01:43:03 am
You want a latch.
Check the button state then compare it to an "old" state. If the two states are NOT equal to each other, then have a Boolean variable invert it's state.
Code:
ButtonState = digitalRead();
if( ButtonState == HIGH && ButtonState != oldState ) // Minor correction: without declaring ButtonState == HIGH or LOW, the Latch will invert when pressed AND released.
{
  Latch = !Latch;  // boolean variable changes from HIGH to LOW or LOW to HIGH when pressed.
  oldState = ButtonState;  // update oldState
}

if( Latch == HIGH ) // servo on
else // servo off
Pages: 1 ... 91 92 [93] 94 95 ... 253