Show Posts
Pages: 1 ... 2251 2252 [2253] 2254 2255 ... 3234
33781  Using Arduino / Networking, Protocols, and Devices / Re: Arduino not talking to pachube on: October 10, 2011, 06:58:09 pm
That 411 response code should be a big clue. Google html error codes. One result:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
where it says:
Quote
10.4.12 411 Length Required

The server refuses to accept the request without a defined Content- Length. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message.
I don't know how a message could be clearer. Perhaps if it fixed your code for you...
33782  Using Arduino / Project Guidance / Re: Adobe Flash -> Bluetooth USB ... (wireless) ... BlueSMiRF Silver -> Serial LCD on: October 10, 2011, 04:59:02 pm
Quote
one advice, go outside and go see the sun, relax.
I'd love to but it's raining.

One last comment, and then I'll leave you alone.
Quote
once configured the BlueSMiRF just needs a TTL serial stream on Rx and it will transmit it through bluetooth to a PC for example, no arduino needed.
OK. Fine. But, that configuration needs to be performed EVERY time the BlueSmirf is powered up. What is going to perform that configuration, if not an Arduino?

Good luck with your project, however you end up accomplishing it.
33783  Using Arduino / Project Guidance / Re: Help making a controller on: October 10, 2011, 04:55:45 pm
Quote
On my 'reply #5' I included an attached text file, as I don't know how to make the little window with the sketch in it, if you want to see my code with notes. 
Next time you post or reply, look at the rows of icons above. See the one with the #? Select that, and paste your code between the tags. Or paste your code, select it all, and then hit the # button.

Quote
The relay is my SPST switch to Arduino pin-8 for input.  I have tested this using the sketch called button, on the tutorials, and it does work.
I think I need to see a schematic, a Fritzing picture, or a photo (in that order of preference) to see how that relay is connected to the Arduino. Do you have a pull-down resistor somewhere?

If not, you might (do) have a floating pin condition, where HIGH is generated when the relay is closed and either HIGH or LOW is read when the relay is open. Of course, such resistor would show on the schematic.
33784  Community / Website and Forum / Re: Sticky - Blink Two LEDs, independent, no delay on: October 10, 2011, 04:46:22 pm
Quote
Does one version seem more appropriate for a beginner (we need a few beginners to answer)?
I'd suggest that some "experts" opinion be considered, too. To me, the QuickTimer = millis(); version is easier to understand and adapt. I have to think a while about why the QuickTimer += QuickInterval is necessary in some circumstances.

For a beginner, simpler is better.
33785  Using Arduino / Programming Questions / Re: Interacting with an other USB device. on: October 10, 2011, 04:38:25 pm
Quote
And then?
Quote
(and a boatload of talent and a bit of luck to write a driver).

There is a USB Host library that might be useful. It's Google time...
33786  Using Arduino / Networking, Protocols, and Devices / Re: Xbee Explorer Regulated Shield on: October 10, 2011, 04:36:24 pm
Quote
but where do I have to connect DOUT and DIN pins provided I have 4 serial ports: RX0/TXO, RX1/TX1, RX2/TX2 AND RX3/TX3 on the Mega2560 board?
That depends. Do you want to use Serial, Serial1, Serial2, or Serial3 to talk to it?
33787  Using Arduino / Interfacing w/ Software on the Computer / Re: Win7 X64 and Mega 2560 on: October 10, 2011, 04:31:00 pm
Quote
1. Are we agreed FTDI drivers are not used for Mega 2560?
Yes, we are.

Quote
2. Is there anything to installing 0022 other than unzipping the rar?
No. Although getting the non-FTDI devices working is not quite as easy as that.

Quote
3. Does Arduino 2560 work with Win 7 32-bit?
I presume so. It work on Win7 64 bit, and the code is 32-bit only.

Quote
4. Does anyone have a suggestion on where to go from here?
http://arduino.cc/en/Guide/Windows
See section 4 - Install the drivers
33788  Using Arduino / Programming Questions / Re: Interacting with an other USB device. on: October 10, 2011, 04:24:22 pm
That, too, is a USB slave. Two slaves are not able to communicate. You need a USB Host shield.
33789  Using Arduino / Programming Questions / Re: self service bar Program help on: October 10, 2011, 04:22:30 pm
Code:
credits = credits - 1;
You know, there is a reason why the language used to program the Arduino is called C++, rather than C=C+1.
33790  Using Arduino / Programming Questions / Re: Interacting with an other USB device. on: October 10, 2011, 04:13:16 pm
Which USB device are you trying to interact with? Some USB devices, like the Arduino, are slaves. Some are hosts/masters.

Slaves can not drive/control hosts. For that, you need a USB Host shield (and a boatload of talent and a bit of luck to write a driver).
33791  Using Arduino / Programming Questions / Re: How do i read the frequency for a heart rate monitor? on: October 10, 2011, 03:56:27 pm
Code:
  if (millis() - offset >= 0 && < 5000 )
So, subtract offset from millis() (now). Compare the delta to 0. Then compare the true/false result to 5000. Not a reasonable comparison in my book.

Code:
unsigned long delta = millis() - offset;
if(delta >= 0 && delta < 5000)

In any case, I'd change the logic:
Code:
if(millis() - offset >= 5000)
{
   // Compute bpm
}
// Do the rest of the stuff (it's not an else condition)
33792  Community / Website and Forum / Re: Sticky - Blink Two LEDs, independent, no delay on: October 10, 2011, 02:11:37 pm
Quote
I was planning to write more "dual timer" examples (Playground?), the LED being the simplest, the other would combine the Servo sweep with a LED PWM
Hey, there's a poster over in Programming now that wants to do this. Can you hurry it up?  smiley
33793  Using Arduino / Programming Questions / Re: About The Loop on: October 10, 2011, 02:04:49 pm
Quote
I think this is my answer  "you can't do any two things at the same time". Now I will think another way.
I think it isn't. Moving a servo one degree and then turning an LED on will appear as though they are happening at the same time, even though they really are discrete events that occur in some order. As long as the interval is short enough, discrete events will appear to be simultaneous.
33794  Using Arduino / Project Guidance / Re: Help making a controller on: October 10, 2011, 01:56:39 pm
What kind of device is connected to Beam_Sensor? Does that device output LOW until triggered, then output HIGH?

Quote
The program should, in order:
1 - turn off all the relays
That's done in setup.

Quote
2 - turn on relay 1 to start background sounds then turn it off
Turned on in setup. When do you want it turned off?

Quote
3 - look for PIN8 to go active to start the events
Done in loop.

Did you write a test sketch to test the sensor? Do you KNOW that HIGH means triggered?

33795  Using Arduino / Project Guidance / Re: How would you mount an Arduino on posterboard for school science fair? on: October 10, 2011, 01:49:06 pm
Which Arduino? Mine all have holes for mounting. Use nylon standoffs and nylon screws and nuts.
Pages: 1 ... 2251 2252 [2253] 2254 2255 ... 3234