Show Posts
Pages: 1 [2] 3 4 ... 582
16  Using Arduino / Sensors / Re: Reading multiple sensors on: July 27, 2014, 11:03:09 am
You are calibrating the MAX and MIN of your light sensor in the first five seconds after power-up.  Are you sure you are rotating the device so it can get valid MAX and MIN values?  Could your LDR have gotten disconnected?
17  Using Arduino / Networking, Protocols, and Devices / Re: Manually setting UDP address with Shields on: July 27, 2014, 10:52:28 am
Those functions are for getting header data from a received UDP packet:

http://arduino.cc/en/Reference/WiFiUDPRemoteIP

To specify an arbitrary destination use the domain name ("server.demo.com") or the IP address:

Code:
       IPAddress destination(192, 168, 0, 2);
       Udp.beginPacket(destination, 3030);

The port number is just an integer.
18  Using Arduino / Networking, Protocols, and Devices / Re: Get String from Internet without Wifi Shield on: July 27, 2014, 10:38:32 am
An Ethernet Shield and a cheap WiFi "Game Adapter".  Several companies make them, including the Linksys WGA11B (802.11b) and WGA54G (802.11g).  They will connect to the strongest open WiFi signal or you can program them for a specific SSID and WEP key.  The newer WGA54G might even do WPA2.  Available used on eBay for about $20.
19  Using Arduino / Sensors / Re: Parallax RFID Scanner on: July 27, 2014, 09:55:27 am
It means you don't have the NewSoftSerial library installed.  You should change NewSoftSerial to SoftwareSerial which comes with Arduino 1.0.x.
20  Using Arduino / Interfacing w/ Software on the Computer / Re: remote pendent on: July 27, 2014, 09:49:36 am
You could write an Arduino sketch to send commands to your 3D printer.  You will need some buttons on the Arduino for user input and an understanding of the messages used to control the printer.
21  Using Arduino / Displays / Re: How do you connect the nintendo ds screen to the nintendo breakout board. on: July 27, 2014, 09:45:16 am
The dark part of the connector is pulled out to un-latch the connector.  Slide the four conductor ribbon cable int the connect and push the latch back into place.
22  Using Arduino / Project Guidance / Re: Using a Parallax Trackball with an Arduino on: July 27, 2014, 09:32:30 am
The trackball produces pulses for UP, LEFT, DOWN, and RIGHT (outputs A, B, C, and D respectively).  Each change on each of the four pins means a step in that direction.
23  Using Arduino / Storage / Re: Atmega328P-AU interfacing with an SD Card at 3.3 V system voltage on: July 27, 2014, 09:19:14 am
1) If my Atmega328P-AU runs at 3.3 volts, I can just connect pins 10-13 (SPI) directly to the SD socket?.
2) If I run it at 3.3Volts, I'll need to flash a different Bootloader on the Atmega328P-AU than the one I use for 5volt?
3) I will need to use an 8Mhz crystal instead of a 16Mhz one?
4) I have an FTDI board I use to program my projects that has a 3.3V/5V switch, so I can use that to program it?

1: Yes.

2: If you switch to 8 MHz then yes.  If you stick with 16 MHz then no.

3: The ATmega328P is not rated to operate at 16 MHz on 3.3V (you are supposed to use 3.7V or more) but many people push the envelope and keep their 16 MHz crystal on a 3.3V system with good results.

4: Yes.
24  Development / Other Software Development / Re: LCD and Analog pins on: July 27, 2014, 07:36:23 am
The first one should work as long as you are not using those pins for anything else.

What model Arduino are you using?

Do you have anything else attached to it?
25  Using Arduino / Microcontrollers / Re: Using atmega 8 on: July 27, 2014, 07:32:50 am
Under Tools->Board select "Arduino NG or older w/ ATmega8".
26  Community / Gigs and Collaborations / Re: Quick $5 for the first working response on: July 27, 2014, 07:17:59 am
Hi All,

I would like to offer $5 usd to the first person that can add potentiometer adjustment to the code bellow.
Payment will be made via paypal

Currently the code will move a servo horn 90° from a starting position of 5° when a button is pressed. It will also hold the position until the button is released.

What I need is a potentiometer to be able to adjust the value of 90° to a value between 10° - 180°

The code can be posted as a reply, so that anyone can use/see it.

If this is not possible or if I'm too cheap!, please feel free to let me know.
Thanks

Code:
#include <Servo.h>

Servo myservo;  // create servo object to control a servo
// a maximum of eight servo objects can be created

int pos = 5;    // variable to store the servo position
int button = 2;  // The button will be on Pin 7


void setup()
{
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
  pinMode(pos, OUTPUT);
  pinMode(button, INPUT);
  digitalWrite (button, LOW);
}

void loop() {
  int destination = map(analogRead(A0), 0,1023, 10, 180);  // fixed typo

  if (digitalRead(button) == LOW) { // Button pushed
    myservo.write(destination);
  }
  else {
    myservo.write(5);
  }
}

27  Using Arduino / Installation & Troubleshooting / Re: Problem uploading to NANO board. on: July 27, 2014, 07:09:06 am
Wrong board selected?
Wrong bootloader installed?
Incorrect wiring?
Auto-reset not working?
Serial output flooded by previous sketch?

Try holding down the Reset button, unplugging and re-plugging the USB cable, starting the upload, and releasing RESET when the "Binary sketch size:" message appears.
28  Using Arduino / Project Guidance / Re: Implement octave shift buttons code? on: July 26, 2014, 08:25:13 pm
If anybody can help me with just an example of how you can implement the concept of octave up and down into the code I already have, this would be greatly appreciated. I just can't fathom it!

PLEASE!! smiley-cry

There are lots of tutorials about reading buttons and debouncing the signal (mechanical buttons tend to bounce a few times on closing).  Use a variable to keep track of which octave.  Use buttons to go up and down.  Add some checks so that you don't go outside your desired range of octaves.
29  Using Arduino / Storage / Re: arduino and excel on: July 24, 2014, 08:50:56 pm
Depends on what you mean by "lots of data".  The FLASH (program) memory can contain about 30,000 bytes.  Of course your program has to share that space so much more than about 20,000 bytes and you should consider external memory like an SD card or an EEPROM or FRAM chip.
30  Using Arduino / Installation & Troubleshooting / Re: how can I program a pro mini arduino on: July 24, 2014, 08:46:46 pm
Yes.
Pages: 1 [2] 3 4 ... 582