Show Posts
Pages: 1 [2] 3 4 ... 252
16  Using Arduino / Project Guidance / Re: Working with RF Module on: September 16, 2014, 10:13:25 am
The VirtualWire library does the encoding and decoding for the module I suggested, and Yes, yours already does the en/decoding.
So, now what you need to do is basically all the work of converting the values to bits and send them out, then regroup them on the other side.

Which is why I first suggested you use bitRead() of the values you want to send and then send the bits out. However, now you need to regroup those bits back together with bitWrite to be usable for your project.
17  Using Arduino / Project Guidance / Re: Working with RF Module on: September 16, 2014, 08:09:48 am
Well then, that is not the correct RF module to use. You should have gotten this.
433 Mhz RF pair
18  Using Arduino / Project Guidance / Re: Working with RF Module on: September 15, 2014, 10:34:43 am
These RF modules are "Simple" meaning they do their own decoding and what you send is what you get. If you want to send two analog signals, you would need to use bitRead() to read the bits in the integer from analogRead() value. Then just send those bits out to the transmitter.
19  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: September 15, 2014, 09:23:21 am
Have you download the library, Yes or No?
20  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: September 15, 2014, 09:19:14 am
Write a code that makes the robot drive forward while continuously checking the distance. If the distance is less than say 8 inches, have the robot reverse to the left until the distance is more than 8 inches.

It's simple once you download the NewPing library.
21  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: September 15, 2014, 08:53:13 am
Look into that link I gave you for the NewPing library and find two available pins on the robot to use. From a picture I was able pull up, you should have a few pins you can use.
22  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: September 15, 2014, 08:29:12 am
Since you're not using an Arduino Leonardo, you can take this out.
Quote
while (!Serial) {
  ; // wait for serial port to connect. Needed for Leonardo only
 }

One other thing, why have a button to stop the motors, if you already have this in your code.
Quote
void loop() // run over and over
{
  if (Serial.available())
    mySerial.write(Serial.read());
  digitalWrite(6,LOW);
  digitalWrite(5,LOW); //stop motors
  digitalWrite(9,LOW);
  digitalWrite(10,LOW);
//stop motors   
23  Using Arduino / Programming Questions / Re: on going car project proplem help on: September 15, 2014, 08:19:37 am
Make this into a function that takes a variable for time, and 4 bytes for the data to be sent out.
Quote
digitalWrite(8,LOW);
 
 shiftOut(11,12, MSBFIRST,0);
 shiftOut(11,12, MSBFIRST,1);
 shiftOut(11,12, MSBFIRST,0);
 shiftOut(11,12, MSBFIRST,0);
 digitalWrite(8, HIGH);
 delay(30);

Two buttons one state variable? Not good.
Quote
buttonState = digitalRead(buttonL);
buttonState = digitalRead(buttonR);

Now you have the sequence for when the buttons are pressed individually, fine, now make it so they do something else when ButtonL_State && ButtonR_State are both HIGH
24  Using Arduino / Programming Questions / Re: Arexx AAR Robot need help on: September 15, 2014, 07:58:19 am
You are using the Software Serial library, yet it is not included in your sketch.

Quote
Ultraschallsensor.....pls....pls help AFAP........
What? Is this homework, because we don't do that here. A good majority of us have already done our homework years ago.

Upon closer inspection, What is this? How many times are you going to send that same data?
Quote
if (mySerial.available())
   Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
  digitalWrite(6,LOW); digitalWrite(5,LOW); //stop motors
  digitalWrite(9,LOW); digitalWrite(10,LOW); //stop motors   
  if (mySerial.available() > 0) // What? {

For the Ultrasonic Ping sensor, have you looked into the NewPing library?
25  Using Arduino / Programming Questions / Re: Mega2560 Sainsmart 320x240 LCD Sainsmart LCD shield UTFT library ? on: September 14, 2014, 11:58:03 pm
Your first error indicates the compiler doesn't know where to find the UTFT library. So where did you put it? It should be in a folder called "libraries" in the Arduino sketch folder, which is usually under your MyDocuments.
26  Using Arduino / Project Guidance / Re: digitalWrite Code explanation on: September 14, 2014, 11:28:42 am
Basically the closer you get, the quitter the alarm gets, but it should not be using digitalWrite. Instead it should be using analogWrite and a pin that supports PWM.
27  Using Arduino / Motors, Mechanics, and Power / Re: DC motor on: September 14, 2014, 10:30:27 am
I just sent this as a PM, but I'll put it here too.

Putty is really simple, but in order to use it, you first need to know the COM port the bluetooth module is set to.

I don't have a MAC, so I don't know where to get that information. But if you have a PC, then you can go to your Device Manager, under your Control Panel, and look for Ports(COM & LPT). Once your Bluetooth module is paired to your computer, you should see it when you click on the down arrow, next to Ports(...). It should also tell you the COM port associated with that module.

Please note: If you have an arduino connected to your computer, you will also see it's COM port too.

Once you have the COM port for the Bluetooth module, open up Putty. You should see a button next to Serial, click it.

Now you should notice the boxes above have changed to COM1 and 9600. I don't know what your baud rate is but for now, leave it at 9600. All you need to do is change the COM port number to whatever your BT module is set to.

Mine is on COM7 (No space between them), but yours may differ.

Now test it by clicking open.

Once it works, enter the information again, COM port and Baud rate, (if the baud rate did work) and now you can save it, by going to the box underSaved Sessions and adding a name of your choice. I just put BTMod1.

Finally click save. the name will be added and all you need to do is double click on the name and it will open.

If you get a small error box, it is possible the COM port number you entered is not correct, or the baud rate is not at 9600. Usually when you pair a bluetooth module, 2 COM ports are created, but only one works. And sometimes the Bluetooth modules are set to 38,400 baud.

Try it with these configurations.
28  Using Arduino / Project Guidance / Re: Could I connect multiple 8x8 LED matricies (w/ MAX2719)? on: September 14, 2014, 02:07:18 am
The wall charger would be just for the LEDs, but if you want to also power the arduino, you would need one that can output a little more than 7V @ 1A. You would also need a 5V regulator for the LEDs.
29  Using Arduino / Project Guidance / Re: Miniature quadcopter project plan on: September 14, 2014, 01:47:31 am
I can't really say, you're looking at roughly 150 grams or about 0.33 lbs. How much thrust do those motors provide? I would look into something a little bigger or at least a 3 or 4 bladed prop.
30  Using Arduino / Project Guidance / Re: Miniature quadcopter project plan on: September 14, 2014, 12:35:57 am
What about the battery?

Also make sure you get two counter rotating props. If all four props are the same, the quad copter with just spin in the air.
Pages: 1 [2] 3 4 ... 252