Show Posts
Pages: 1 2 [3] 4 5 ... 9
31  Using Arduino / Networking, Protocols, and Devices / Re: Is WiFi easier than BlueTooth on: July 31, 2012, 06:01:13 pm
Ok, Bluetooth works fairly well. The annoying thing about it is that if you start your Arduino Bluetooth, but don't connect within like 5 minutes, it seems to turnoff. With Wifi, you start your server and just leave it up. You have to start the server first, but it prety much just works or you get a clear error (like port already in use). So I guess Bluetooth is okay.
32  Using Arduino / Networking, Protocols, and Devices / Re: WIFI boards with processors, and WIFI shields - recommendations. on: July 29, 2012, 02:39:56 pm
I have to agree with Paul, it is all about the support. It sucks to spend your $$ and your time and not get the thing to work.
Sparkfun's website allows user comments on the product page. There are many comments for this product, for which I'd rate their support a B.

Do any of the other sites listed provide any support? Do they sell lots of boards? And why is wifi not so popular?   
33  Using Arduino / Networking, Protocols, and Devices / Re: Is WiFi easier than BlueTooth on: July 29, 2012, 02:19:35 pm
Reinstalling the FTDI drivers fixed the download issue. Must have lost the drivers when upgrading the Mac OS. Thanks John.

I have an Objecive-c iPhone app that connects to a Python server socket app. It works smoothly; there is minimal fussing around. I'll try the Bluetooth again as it is already wired up and see how it goes.
34  Using Arduino / Networking, Protocols, and Devices / Re: Is WiFi easier than BlueTooth on: July 27, 2012, 10:21:54 pm
No, I would like to upload a sketch over USB with FTDI cable. But the Arduino IDE does not list any ports but the Bluetooth ports. Removing the Bluetooth board from the breadboard and disabling Bluetooth on the Mac does not help. I'm using Arduino alpha 0021. Probably should upgrade that, but likely a driver issue. I didn't know you could upload sketches over Bluetooth.

But main question is: Is wifi easier?

35  Using Arduino / Networking, Protocols, and Devices / Is WiFi easier than BlueTooth on: July 27, 2012, 04:22:16 pm
I have BlueTooth working on my Mac, but it is annoying. Right now sketches don't download because only bluetooth serial ports show in the Arudino IDE. (Which is another question.) There was driver installation and Bluetooth connections don't always start automatically.

Is WiFi or something else easier?
36  Topics / Robotics / TSOP34156 Beacon on: April 14, 2011, 09:32:45 pm
I am trying to use an LED as a beacon to a TSOP34156. The receiver successfully reads 12 bit Sony messages using Ken Shirriff's IR library.

The trouble is it is rather slow, at about 30 messages/second. It does not work reliably without the 10 ms delays (see the code below.) Besides speeding it up, the next step would be to add multiple receivers to see which direction is strongest. Ken Shirriff's IR library supports multiple receivers, so this is easy to try. And will also try multiple beacons.

How can this be speeded up? What message format should be used? Any advice on this approach?

Here is the sender's sketch:
#include <IRremote.h>

IRsend irsend;

void setup()

#define WAIT 10

void loop() {
      irsend.sendSony(0xa90, 12);
      irsend.sendSony(0xa91, 12);
      irsend.sendSony(0xa92, 12);
      irsend.sendSony(0xa93, 12);
      irsend.sendSony(0xa94, 12);
      irsend.sendSony(0xa95, 12);

Here is the receiver's sketch:
#include <IRremote.h>

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
  irrecv.enableIRIn(); // Start the receiver

int i = 0;

void loop() {
  if (irrecv.decode(&results)) {

    if(i % 120 == 0) {
      Serial.print(" ");
      Serial.println((long)results.value, HEX);
    irrecv.resume(); // Receive the next value
37  Using Arduino / Microcontrollers / Re: Can Only Upload Once on: March 31, 2011, 09:23:38 pm
It was the auto reset issue!

I'm not sure why the first sketch uploads without holding the reset button, but burn and repeated upload worked with 2 atmega328p chips.

Also had to move freshly burned chip to another breadboard (instead of uploading on same board as Arduino ISP), but this is a good idea anyway.
38  Using Arduino / Microcontrollers / Can Only Upload Once on: March 30, 2011, 09:32:14 pm
Steps to reproduce:
Burn a ATMEGA328P-PU with an ArduinoISP - No errors
Download blink sketch - No errors and it blinks
Download blink sketch a second time - Fails with following error:
  avrdude: stk500_recv(): programmer is not responding
  avrdude: stk500_recv(): programmer is not responding

Burning and downloads from Arduino Development Environment on a Mac. Arduino is breadboard variety like

If the atmega is burned again, a sketch can be downloaded once.

Any ideas for diagnosing this? Is there anything funky about ArduinoISP burning?
39  Using Arduino / Networking, Protocols, and Devices / Re: Can More than 2 Wireless Transceivers Talk? on: February 15, 2011, 08:10:02 pm
Has anyone tried this? Anyone have code or links to projects?
40  Using Arduino / Networking, Protocols, and Devices / Can More than 2 Wireless Transceivers Talk? on: February 15, 2011, 02:52:03 pm

Can any of the cheaper tranceivers on Spark Fun (like be setup with multiple senders and receivers?

The idea is that 3+ devices can communicate. They would take turns transmitting, maybe just transmitting short messages at random times, ignoring occasional contention. All transcievers would receive all messages.
41  Forum 2005-2010 (read only) / Troubleshooting / Re: Simple Stopwatch on: October 09, 2010, 10:12:16 pm
I think what you have done is fine.

It sounds like when lcd.print converts the integer 'seconds' to a string, it does not display the initial zero you would like, i.e. it displays "9" instead of "09".

This is just a guess, but to get the extra zero try:

if (seconds < 10)

Just play around with it until the lcd displays what you want.

42  Forum 2005-2010 (read only) / Troubleshooting / Re: Simple Stopwatch on: September 30, 2010, 03:42:49 pm
Maybe you need something like:

long ea = 133456;  
long totalSeconds = ea/1000; // 133s = 2minutes 13seconds
long seconds = totalSeconds%60; // 13 seconds
long displayLowSeconds = seconds%10; // 3
long displayHighSeconds = seconds/10;  // 1
long displayMinutes = totalSeconds/60; // 2

Hardcode a value for ea and Serial.print() the numbers to check your math. Once you workout the math, remove Serial.print().
43  Forum 2005-2010 (read only) / Troubleshooting / Re: Bootloader burning, bad signature,  -F on: October 16, 2010, 10:46:18 am
Burning an atmega168P-20PU from Mouser on a Mac w/ Arduino IDE v21, Arduino ISP results in:
avrdude: Expected signature for ATMEGA168 is 1E 94 06
         Double check chip, or use -F to override this check.

This thread states,
When I ordered the chips from Digikey, they came with the fuses set in the atmel default configuration which is DIFFERENT than what is set on the Arduinos (by default they are set to use the internal osc. instead of the external crystal on the arduino, they don't have the bootrst set, no brownout, etc).
So, when avrdude tries to read the device signature, the default 500kHz bitrate is too high, so you get back a garbage signature (sometimes it gets lucky and it read correctly, but mostly it was just garbage)
You have to lower the mkII's ISP freq to a speed supported by the default chips, fix the fuse settings, and then crank the speed back up on the mkII.  Once you do that the chips work fine with the Arduino environment.  I've been programming them all afternoon without hitch.

This implies the issue is likely with the bitrate. Is the way to solve this to change the bitrate via avrdude or AVR studio? Would an external oscillator help? Do any of the chips from Mouser or Digikey have this set right?
44  Forum 2005-2010 (read only) / Troubleshooting / Re: 2 servos controlled with mouse in processing on: June 11, 2010, 09:55:39 pm
Switching the motors was smart. You proved the motor is wired right. Of course there could be some issue with pin 10 or using two adjacent pins.

The next clever thing to do is run the sketch from the Arduino serial monitor. Also have the sketch echo back what it is doing:
case 'w':
         Serial.write("servo2.write("); Serial.write(v);Serial.writeln(");
        v = 0;

Think of testing with the serial monitor as unit testing the Arduino sketch. You want to make sure that works as expected before introducing Processing. Check that the servo is attached to pin 10 and the value in Serial.write(v).

After this, I would try a different port or a different servo library. Define the ports at the top of your sketch so you can  change them easily. But first make sure your Arduino and the library supports pwm on the pin. Early versions of Servo only supported pins 9 and 10.
45  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Better Arduino Switch Example on: September 30, 2010, 09:35:08 pm
Mellis's code is better, because it debounces. Though adding 'counts' or double click functionality is a good idea.
Pages: 1 2 [3] 4 5 ... 9