Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / Re: Yet another Uno upload problem... on: April 13, 2011, 04:21:02 pm
Update!

Uninstalled the network device, plugged the Arduino directly into my iMac (not using the powered USB hub I have) and it seems to be working. Bit of an inconvenience, but at least I know the boards work!

Anyone had similar issues with USB hubs before?
2  Using Arduino / Installation & Troubleshooting / Yet another Uno upload problem... on: April 13, 2011, 03:00:47 pm
Hello!

I've just bought a couple of shiny new Unos from Cool Components to use in a project. I've previously used a Duemillenove without issue. I'm seeing the all too familiar message of:

Code:
Binary sketch size: 1018 bytes (of a 32256 byte maximum)
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P/dev/tty.usbmodemfa421 -b115200 -D -Uflash:w:/var/folders/M0/M0+6FaHh2RasNU+BYw18g++++TI/-Tmp-/build2124115610933965625.tmp/Blink.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 "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/mike/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/tty.usbmodemfa421
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 115200
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

I've tried the "unplug from USB, hold down reset button, plug back in, shift+click upload, release reset after sketch size message" to no avail.

One thing I've noticed is that the TX light on the board lights up solid for a few seconds, which seemed weird, and I can't connect with the serial monitor which to my uneducated eyes suggests some sort of serial sync problem.

In the Arduino software, the Board type is set to "Arduino Uno" and I've tried both /dev/tty.usbmodemfa421 and /dev/cu.usbmodemfa421 as serial port options, with no joy.

I've also tried updating the 8U2 on one of the boards as per http://arduino.cc/en/Hacking/DFUProgramming8U2, but this doesn't seem to have done 'owt.

Any thoughts/suggestions? Totally stuck and bewildered that two new boards can be duff. :/


EDIT: I should say that I'm running Mac OS X 10.6.7 on Intel hardware, and the Arduino simply falls back to the default LED blinking state (I suppose due to a failed sketch upload and it defaulting back to the original sketch that was installed).

Here's the output when using /dev/cu.usbmodelfa421:

Code:
Binary sketch size: 1018 bytes (of a 32256 byte maximum)
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P/dev/cu.usbmodemfa421 -b115200 -D -Uflash:w:/var/folders/M0/M0+6FaHh2RasNU+BYw18g++++TI/-Tmp-/build3678148342472031873.tmp/Blink.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 "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/mike/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/cu.usbmodemfa421
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 115200
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
3  Using Arduino / General Electronics / Re: Ardunio relay module wiring on: March 30, 2011, 03:18:43 pm
Yeah, it seems like an odd design choice to limit users like that. Thanks for that - I'll buy one of those next time!
4  Using Arduino / General Electronics / Re: Ardunio relay module wiring on: March 30, 2011, 02:30:03 pm
Thanks very much for the help guys, much appreciated smiley

So, just taken a look at the module - unless I'm mistaken, it sadly doesn't look like it's possible to do NO operation with it. If you take a look at the PCB traces:



And compare with the datasheet:

http://datasheet.octopart.com/G5LA-14-DC12-Omron-datasheet-134281.pdf

Pins 1 and 3 of the relay are hard-wired to the outermost contacts of the module, and the inner most contacts on the module are hard-wired to each other. Here's the view from the top for comparison:



As I understand it, switching the relay on swings the connection from pin 3 to pin 4 of the relay, opening it. It doesn't look like pin 4 is connected to anything to me...

Unless I'm talking nonsense - there's a strong possibility of that, mind.. smiley-wink

If this is the case, I'll rewrite the logic of the Arduino code to send the output "low" when I want to switch the air freshener on - annoying to have power blips on start up, but it'll have to do for now..

EDIT: In fact, I was talking nonsense about 'power blips' - have the appropriate pin set to high in setup and it seems to be seamless! Lovely. smiley
5  Using Arduino / General Electronics / Re: Ardunio relay module wiring on: March 30, 2011, 06:27:10 am
Aha! Found a wiki page on the module here, with a relevant code example:

http://www.dfrobot.com/wiki/index.php?title=Relay_Module_(Arduino_Compatible)_(SKU:_DFR0017)

So a high voltage will indeed open the relay/switch it off. Am I just being stupid with faffing with transistors to invert the state of the digital output - should I just invert the logic in the Arduino code? I'm guessing this will mean that the relay will be closed during Arduino boot up time (as power will be flowing to it and the digital output controlling it will be low), but this shouldn't be a problem in this application...for future reference, is there a way around this?
6  Using Arduino / General Electronics / Ardunio relay module wiring on: March 29, 2011, 05:53:26 pm
Hello!

I'm looking at using one of these relay modules to control switching a mains powered air freshener on/off:

http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=320654392812&ssPageName=ADME:X:AAQ:GB:1123

Unfortunately the logic of the module seems to be the opposite of what I want (it seems like it's acting normally closed, whereas I want it normally open). After mucking around with a transistor, I somehow came out with the following circuit to act as a kind of logical NOT gate (please excuse my lack of ability with Fritzing - also, the 'servo' is actually the servo style connector leading into the relay module!):



Can anyone explain why this works? I'm not entirely sure why....

And also, can anyone see anything dangerous with how this is wired up? The air freshener draws super low current, so the G5LA-14 relay should handle it, and I'm presuming that the module isolates the Arduino/breadboard sufficiently (it looks like it has a requisite diode for back EMF, etc). I'm not looking to hold anyone accountable should I blow up myself and burn my house down, I just want to double check I haven't missed anything obvious!
7  Using Arduino / General Electronics / Re: ID12 RFID chip pins/breadboard on: February 27, 2011, 06:02:48 pm
Awesome, thank you! Managed to solder one up in the end (never attempted soldering before)...only slight mess/one broken breakout board smiley-wink
8  Using Arduino / General Electronics / ID12 RFID chip pins/breadboard on: February 19, 2011, 01:21:22 pm
Hello!

I've just picked up an ID12 RFID chip to do my first Arduino project with. I failed to realise that the 2mm pin spacing on the chip would mean I couldn't connect it to my breadboard...I do however now realise that there is a breakout board available for it (http://www.coolcomponents.co.uk/catalog/product_info.php?cPath=88&products_id=108) - this describes it as providing 'two 0.1" spaced headers', which leads me to think that although spaced a bit better, there won't actually be pins I can just drop into my breadboard. Then again, pictures I've seen online lead me to think that it *can* just drop in:

http://img191.imageshack.us/img191/5325/imag0183a.jpg
http://mbed.org/cookbook/ID12-RFID-Reader
http://my.safaribooksonline.com/book/hardware/arduino/9781430232407/beginning-arduino/chapter_16_making_an_rfid_read#X2ludGVybmFsX0ZsYXNoUmVhZGVyP3htbGlkPTk3ODE0MzAyMzI0MDcvMzQ5

Is it simply a case of plugging the breakout board in, and then dropping it into my breadboard? Otherwise am I going to have to solder some connectors on?

I apologise in advance for my total lack of hardware knowledge. smiley
Pages: [1]