Show Posts
Pages: [1] 2
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: circle code for Etch a sketch? on: October 02, 2007, 05:19:57 am
there "http://www.mikrocontroller.net/topic/42447#610705" is an implementation of Bresenham for a full circle - its not perfect for small circles though
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Programmer is not responding on: August 29, 2007, 03:46:13 am
The 0009 version / avrdude works fine! I got me the debian package only after downloading/running that one, because this one helped me conveniently fulfill the dependencies.

I did not realize those are different versions. One of the reasons may be, that the page with the link to the debian package looked like maintained, while its not.

thank you.

peter
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Programmer is not responding on: August 28, 2007, 06:02:05 pm
hello mellis,

I am running the version that is shipped with debian unstable, it declares itself as 0.0007alpha. after transmitting the code to the card, there is a pause of about five seconds, before the program starts to run. I do not have to reset the board, ie. push the switch, but the board resets itself when the transmission starts (most of the time at least). sending the program immediately after pushing the reset button on the board worked too (command line not IDE though).

yours.

peter
4  Forum 2005-2010 (read only) / Troubleshooting / Re: Programmer finally responding on: August 28, 2007, 01:51:27 pm
I too get this message. I think its about timing. The board is a diecimila. a LED is already there and blinks in sync with the one I put on port 13. as delivered, the amber led on the board would flicker continuously.

to work around any delays introduced by compiling the software or such I tried with uploading from the command line, here is a way that works for me (W4M):

- copy the uisp command from the verbose upload log.
- run it in a terminal
- timeout after first transmit line
- run it again
- success

I do not have to click the reset button (its a diecimila). I would expect to reach the same when just pressing twice the upload button in the IDE, yet it seems to be too slowly reacting to meet the time window when the chip is receiving - performing the upload immediately from the command line after the timeout message arrives works though.

peter
5  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: bug with serial port? on: October 05, 2007, 01:47:03 pm
I did now wire arduino TX pin1 to db9 RX pin2 and arduino GND to db9 GND pin5. on the computer nothing received on the serial port. the arduino tx led does not flash neither. computer and arduino use the same datarate. the arduino has its own power adaptor.

What am I doing wrong?
6  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: bug with serial port? on: September 29, 2007, 05:59:09 am
Maybe I can workaround this reset problem by using the digital pins 0,1? The setup is as follows: an arduino board that runs standalone on an external power supply. With each iteration the code dumps some values on the serial port, so a monitoring computer can be attached - this should not interrupt the running program in any way, though, so I rather not mess with DTR, which is a pain on the USB connection.

I imagine, the arduino digital pins 0,1/RX,TX map to pins 3,2 of a 9pin computer port. How do I connect computer pin 5/ground on the arduino?

Peter
7  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: bug with serial port? on: September 22, 2007, 05:54:04 am
Thank you mellis; What I think I understand, please correct me if Im wrong:
- HUPCL=hangup on close?
- When I interrupt tail-ing of the port, it will not be shut down properly, so subsequent opens will not change DTR, voilĂ  no reset.
- This is consistent with the following: After killing tail, reading the port by a processing sketch also will not reset the arduino. (above I said, it always does, but I just did shorten the story.)
- also consistent: doing a tail after the processing sketch will again reset the board.
- also consistent: if I "kill" the processing sketch, not "esc" out of it, it behaves the same as tail or "ttylog".

actually the linux kernel ftdi driver should not mess with DTR on close, if not instructed to do so: http://www.gelato.unsw.edu.au/lxr/source/drivers/usb/serial/ftdi_sio.c#L1333

PS: my interest in this discussion: it was nice to be able to connect a computer to an arduino diecimila *from time to time only* to monitor, what its doing.
8  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: bug with serial port? on: September 21, 2007, 03:23:07 pm
hello mellis,

this is with a recent linux system:
- no I did not set -hupcl explicitly, that seems to be the way the device gets created by udev
- when reading the serial port with a processing sketch, the arduino resets every time.
  also, if I set
  • hupcl with stty, running the sketch will again set it to -hupcl!

what was it, you did to rxtx to make the autobootloader work on the 10k?
9  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: bug with serial port? on: September 20, 2007, 02:37:21 pm
Quote
There is a difference in the Diecimila, in that opening a serial connection to the board will reset it.

When doing a "tail -f /dev/ttyUSB0" the first time after connecting the diecimila to the computer, it will reset and its program will run from the start; breaking out of tail (ctrl-c) and restarting it will not do that (inbetween readings are lost though). I am just too lazy right now to check what happens when the computer is rebooted while the diecimila grafts.

PS: stty reports that HUPCL is set to off on the port. Trying above procedure with the arduino-IDE serial monitor will perform the reset all of the time.
10  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Stepper Shield on: September 23, 2007, 02:38:58 pm
a google search for "avr gcc stepper motor" found two good links about controlling a stepper motor on the cheap with an atmega on the first result page: http://www.vimms.org/dbfstepper/docu.html http://www.instructables.com/id/Drive-a-Stepper-Motor-with-an-AVR-Microprocessor/

still looking forward to the arduino shield design. Can the existing DC motor shield be used to drive two stepper motors?

peter
11  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Stepper Shield on: September 20, 2007, 02:15:02 pm
Hello Daniel,

I'm looking forward to hearing from you - especially on how to control motors (I have two of them) with the atmega chip!

Thank you.

Peter
12  Forum 2005-2010 (read only) / Interfacing / Re: Easy Driver stepper motor driver on: September 30, 2007, 05:31:34 am
I was told that its common and OK to just connect the grounds of two DC-adapters; even if they provide a different current. Using a single PC power supply is a nice idea, as parts and connectors are robust and essentially free:)
13  Forum 2005-2010 (read only) / Interfacing / Re: Easy Driver stepper motor driver on: September 28, 2007, 08:06:27 pm
The designer of the Easy Driver wrote to tell me, that his board only needs the power for the motor (12-30V), but both the driver and the controller need the same ground level. Its a tough exam - who will find out first how to get at it? I imagine that plugging both transformers into the same mains socket will not work.
14  Forum 2005-2010 (read only) / Interfacing / Easy Driver stepper motor driver on: September 28, 2007, 02:22:11 pm
Sparkfun electronics sells a stepper motor driver with only two inputs: to me that looks like a very comfortable part, as all the complexity is in software smiley-wink please see "http://www.sparkfun.com/commerce/product_info.php?products_id=8368" and http://greta.dhs.org/EasyDriver/ for details.

Now I dont know at all, how to hook that up to an arduino:
- does the arduino have to supply the power?
- otherwise, how would both have a common ground?
- which arduino ports to wire to the easy driver STEP/DIR pins (digital out)?

Thank you.

Peter
15  Forum 2005-2010 (read only) / Interfacing / DC Motor Shield on: September 28, 2007, 12:54:56 pm
Hello, I am not at all familiar with the hardware side of electronics, I beg your patience with my two questions.

- Do you have instructions and sample code to drive two motors with the DC motor shield by D. Cuartielles (the one available as a kit from PCBItaly) and would you care to post it?

- Can this shield be used to drive a stepper motor, or eventually two, and how would I do that?

Thank you very much.

Peter
Pages: [1] 2