Show Posts
Pages: [1] 2
1  Using Arduino / Installation & Troubleshooting / Re: Question about arduino powering usb v. external on: June 15, 2012, 04:53:55 pm
Hi James - thanks.

I feel like a bit of a dolt when it comes to electronics - I dug up a 9V power supply, and that works when connected to the barrel jack.

Just want to clarify - when running without USB, I can connect +5V to the board directly? Would this connect to the 5V pin on the board, or to VIN?

Thanks.

b...
2  Using Arduino / Installation & Troubleshooting / Re: Question about arduino powering usb v. external on: June 15, 2012, 04:26:58 pm
When not using USB, I am using a 5V 1000mA power adaptor.

It is connected to the power in on the arduino board.

The board is an arsuino LinkSprite Diamondback - see http://www.linksprite.com/product/showproduct.php?id=74&lang=en
3  Using Arduino / Installation & Troubleshooting / Question about arduino powering usb v. external on: June 15, 2012, 02:13:23 pm
I have a wifi-enabled arduino, connected by usb for programming.

I have an external power source (+5.02V) connected. When serial usb is connected, everything fine. When the usb is disconnected, I lose wifi - the led actually dims, so I checked voltages. When usb connected, all voltages are as you'd expect. When disconnecting usb, leaving +5.02V as main power, the voltage across the +5V pin reads 2.36V and the 3V3 pins reads 2.39V.

Can anyone shed light on this? I'm a software person - kinda stumped.

Another board exhibited the same behaviour.

Is there some jumper I need to set?

Many thanks.

brian...

4  Using Arduino / Installation & Troubleshooting / Help upgrading from 0023 to 1.0 - on: December 22, 2011, 08:09:41 am
Hello:

I have a couple blackwidow/diamondback boards - these are arduino's with built in wifi (very nice - work great). I rely on the WiShield library - all this works under 0023.

When I compile and upload using 1.0, the compile is fine, and the sketch uploads, but the board never establishes a wifi connection (ie. the led doesn't come on).

I'm stumped - would anyone have any ideas on why this would work under 0023 and not under 1.0? Not even sure where to start looking, as it's pretty low level code.

I'd prefer to upgrade, but right now I'm stymied.

Any help really appreciated - cheers.

brian...
5  Using Arduino / Programming Questions / Help with Makefile 0022 on: February 13, 2011, 07:55:34 pm
Hello -

I am trying to get a Makefile working, as I'm happier in a text editor than the IDE. I had one working for arduino version 0021, but when I upgraded to 0022, it's not working, and hoping someone can shed light on why - the error I get is:

/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:7: undefined reference to `setup'
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:10: undefined reference to `loop'

(the full output is below).

So, a couple questions:

1. Is there a 'blessed' Makefile for version 0022? It seems that a bunch of stuff has changed between 0021 and 0022 - if anyone out there has a build file which references the latest Arduino version (0022) that would be awesome.

2. Can anyone shed any light on why the link step isn't seeing the setup and loop functions (these are defined in my Main.cpp, and look to be linked into the build).

Any help is greatly appreciated.

Thx.

The build output:

...

/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/wiring_pulse.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/wiring_analog.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/pins_arduino.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/wiring.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/wiring_digital.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WInterrupts.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/wiring_shift.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/libraries/Wire/utility/twi.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/clock-arch.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/g2100.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/network.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/psock.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/stack.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/strings.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/timer.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/uip.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/uip_arp.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a /Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WMath.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs source/core.a ./lib/WiShield_user_contrib/WiServer.o
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -Os -lm -Wl,--gc-sections -mmcu=atmega328p -o source/Main.elf source/Main.o source/core.a
source/core.a(main.o): In function `main':
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:7: undefined reference to `setup'
/Programs/Arduino/0022/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:10: undefined reference to `loop'

and the main pieces from the Makefile:


C_MODULES =  \
   $(ARDUINO)/wiring_pulse.c \
   $(ARDUINO)/wiring_analog.c \
   $(ARDUINO)/pins_arduino.c \
   $(ARDUINO)/wiring.c \
   $(ARDUINO)/wiring_digital.c \
   $(ARDUINO)/WInterrupts.c \
   $(ARDUINO)/wiring_shift.c \
   $(INSTALL_DIR)/libraries/Wire/utility/twi.c \
   $(WISHIELD_PATH)/clock-arch.c \
   $(WISHIELD_PATH)/g2100.c \
   $(WISHIELD_PATH)/network.c \
   $(WISHIELD_PATH)/psock.c \
   $(WISHIELD_PATH)/stack.c \
   $(WISHIELD_PATH)/strings.c \
   $(WISHIELD_PATH)/timer.c \
   $(WISHIELD_PATH)/uip.c \
   $(WISHIELD_PATH)/uip_arp.c \

CXX_MODULES = \
   $(ARDUINO)/main.cpp \
   $(ARDUINO)/WMath.cpp \
   $(WISHIELD_PATH)/WiServer.cpp \

CXX_APP = Main.cpp

# Place -I options here
CINCS = -I$(ARDUINO) \
   -I$(INSTALL_DIR)/libraries/Servo \
   -I$(INSTALL_DIR)/libraries/SPI \
   -I$(INSTALL_DIR)/libraries/Wire \
   -I$(INSTALL_DIR)/libraries/Wire/utility \
   -I./source \
   -I$(DEVICE_PATH) \
   -I$(METRO_PATH) \
   -I$(SOFTWARE_SERIAL_PATH) \
   -I$(WISHIELD_PATH) \

CXXINCS = -I$(ARDUINO)
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Web server and servo interaction (BlackWidow) on: January 23, 2011, 09:26:18 am
Oh my! I was powering the arduino and servos from the USB cable. I changed to power from an external power supply (9V 650mA) and seems to be working fine now.

I'm a software guy, not a hardware person.

Did a quick test, and everything looks to be working okay!

Wicked news - thanks a ton, pocketscience.

Cheers.

brian...

7  Forum 2005-2010 (read only) / Troubleshooting / Web server and servo interaction (BlackWidow) on: January 20, 2011, 06:51:43 pm
Hello:

I have a BlackWidow wifi arduino, and it's very cool.

Run into a snag - I am using the supplied web library (#include WiShield.h) and have a web server up - this handles GET requests (return JSON) and as well you can POST a JSON object, and it updates data accordingly.

I'm using this to right now control 2 servos ("s1" and "s2") so the position is set from values in the JSON object POSTed to the server.

So, for example, POSTing:

{ "s1": 0, "s2": 120 }

to the arduino ultimately results in the following calls to update the servos (the Servo object defined in the standard arduino servo lib):

this->servo1_.write(0);
this->servo2_.write(120);

You can make a GET request and get back the JSON:

{ "s1": 0, "s2": 120 }

If I run with the servo updates commented out, it works. When I uncomment the code, the server runs fine for a bit (and servos rotate) but then it crashes (?) I think it crashes - it doesn't respond to GET requests - seems dead.

May take a bit, but eventually does, and so I'm wondering if there might be a timing thing with the servo rotation code causing problems with the network library?

It's got me stumped so far - any hints appreciated.

Cheers,

brian...


8  Forum 2005-2010 (read only) / Troubleshooting / Howto for xbee upload? (programmer not responding) on: December 13, 2009, 11:13:43 am
Hello:

I'm trying to get upload via zigbee (xbee Series 2) working, but running into error with avrdude -

Is there some reset or other mojo that I need to do to get this working?

Any help is appreciated - thx.

parki...




Binary sketch size: 2156 bytes (of a 30720 byte maximum)
/Programs/Arduino/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Programs/Arduino/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pm328p -cstk500v1 -P/dev/tty.usbserial-A6007wiV -b57600 -D -Uflash:w:/Programs/Arduino/Arduino.app/Contents/Resources/Java/examples/Communication/PhysicalPixel/applet/PhysicalPixel.cpp.hex:i


avrdude: Version 5.4-arduino, compiled on Oct  9 2007 at 11:20:31
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/Programs/Arduino/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/parki/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/tty.usbserial-A6007wiV
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 57600
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: Send: Q [51]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

9  Forum 2005-2010 (read only) / Troubleshooting / Cannot upload to arduino bluetooth on: July 18, 2009, 07:39:43 am
When I try to upload a sketch, it times out with error:


Binary sketch size: 896 bytes (of a 14336 byte maximum)
hardware/tools/avr/bin/avrdude -Chardware/tools/avr/etc/avrdude.conf -v -v -v -v -pm168 -cstk500v1 -P/dev/tty.arduinoserial -b19200 -D -Uflash:w:/Users/parki/repo/arduino/misc/blink/applet/blink.hex:i


avrdude: Version 5.4-arduino, compiled on Oct  9 2007 at 11:20:31
         Copyright (c) 2000-2005 Brian Dean, ww.bdmicro.com/

         System wide configuration file is "hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/parki/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/tty.arduinoserial
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: Send: Q [51]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

Any ideas welcomed - I'm stumped.

Thx.

Brian...
10  Forum 2005-2010 (read only) / Interfacing / Re: HTTP server only works when serial connected? on: October 21, 2010, 08:27:05 pm
Thanks zoomcat- I thought I was going crazy- happy to have confirmed (wasn't 100% it wasn't some other weirdness.

Am shill trying to track down, but I'm a bit outta my league.

Cheers,

b...
11  Forum 2005-2010 (read only) / Interfacing / Re: HTTP server only works when serial connected? on: October 21, 2010, 01:56:35 pm
Another way to get it working it to power up, and then hit the reset button on the ethernet shield - this also kicks it into working.
12  Forum 2005-2010 (read only) / Interfacing / Re: HTTP server only works when serial connected? on: October 21, 2010, 01:50:38 pm
Yup - definitely looks like a problem. I am now running just the example web server outlined:

http://arduino.cc/en/Tutorial/WebServer

If I run with Serial (ie. just upload the sketch) all is fine. If I then power down the board, remove the usb cable, and power back up, the simple web server does not respond (until I connect back up with a terminal).

Something very very fishy is going on - it's not in my code.

Cheers,

b...
13  Forum 2005-2010 (read only) / Interfacing / HTTP server only works when serial connected? on: October 21, 2010, 11:49:03 am
Hello - I am completely stumped.

I have a very simple HTTP server working on the arduino - it simply responds to any GET request with a hardcoded response. It all works, as long as I connect a terminal app to the serial port - if I don't, then the communication doesn't work. For example:

1. Power up arduino, with 5V power and usb. Connect a terminal app - send a HTTP GET request from a browser, and see the response. No problems. Can disconnect the usb and quit the terminal app, and all continues to work fine.

2. Power up arduino, with 5V power, but no usb - there is no response from HTTP - nothing. The LEDs flash on the board, but I get no response. If I then hook up usb and connect with terminal app, then things start to work (can disconnect and quit and continues to be fine).

I have nothing connected to tx/rx, nor am I making ANY calls to Serial - I am not even using the serial connection, but for some reason, it needs to see a terminal app before the Ethernet server will work.

I am pulling my hair out - completely mystified. Any help is greatly appreciated - something strange is going on.

Here's setup:

void setup()
{            
      uint8_t ipAddress[] = DEFAULT_IP_ADDRESS;      
      uint8_t macAddress[] = DEFAULT_MAC_ADDRESS;      
      Ethernet.begin(macAddress, ipAddress);

      delay(100);
      
      restServer.initialize();
}

Where 'restServer.initialize' is my wrapper around 'Server.begin'.

Any help is appreciated - cheers.

b...

14  Forum 2005-2010 (read only) / Interfacing / Re: Strangeness with Serial and pololu on: October 21, 2010, 11:43:07 am
Closing this thread out, and starting a new one, as the problem still persists, in that I need a serial connection before the server works.
15  Forum 2005-2010 (read only) / Interfacing / Re: Strangeness with Serial and pololu on: October 21, 2010, 09:41:37 am
ARG. Arg arg arg - I apologize - I am an idiot - I went down a rabbit hole - still have the issue, but it's not related to the pololu - this is a red herring.

The way I am sending messages to the arduino is via the ethernet shield - have a little http server. If I connect the terminal app, then everything works, if I don't connect the terminal app via serial, then nothing.

So, something to do with how Serial and Ethernet are behaving - I am still stumped, but know a bit more.

Hmmmm... Frustrating....

Thanks.
Pages: [1] 2