Show Posts
Pages: 1 ... 507 508 [509] 510 511 ... 958
7621  Using Arduino / Microcontrollers / Re: Mega 2560 as ISP for ATTiny on: April 05, 2012, 08:11:38 pm
Code:
        Hardware Version: 2
         Firmware Version: 1.18

That is a response from ArduinoISP.  Up to that point, everything is in good order.

If auto-reset was firing, the bootloader would run and potentially respond (but probably not at 9600 baud).  We would expect something like this for a response...

Code:
        Hardware Version: 3
         Firmware Version: 3.3


Code:
avrdude: Send: B [42] . [14] . [00] . [00] . [01] . [01] . [01] . [01] . [03] . [ff] . [ff] . [ff] . [ff] . [00] @ [40] . [01] . [00] . [00] . [00] . [10] . [00]   [20]
avrdude: Recv: . [15]

Everything up to that point appears to be correct.  fill consumes the 20 bytes and then checks for a space (0x20).  It blocks until a character arrives.  As far as I can tell, there are only two possibilities: 1. The space was corrupted; 2. The two sides are hopelessly out of synchronization.  Unfortunately, the evidence indicates that neither is true.


It's time for black-box probing: How does it behave when the baud rate is 19200?
7622  Using Arduino / Microcontrollers / Re: Mega 2560 as ISP for ATTiny on: April 05, 2012, 05:39:02 pm
Quote
Overriding Baud Rate          : 9600

Did you change the ArduinoISP sketch to 9600 baud?
7623  Using Arduino / Microcontrollers / Re: Mega 2560 as ISP for ATTiny on: April 05, 2012, 05:31:15 pm
Is the ArduinoISP designed for the Attiny45?

I can confirm that it works with ATtiny45 processors.
7624  Using Arduino / Microcontrollers / Re: ATtiny4313 with USBtinyISP on: April 05, 2012, 01:16:32 pm

These are the Arduino Tiny fuse settings for the 4313...
http://code.google.com/p/arduino-tiny/source/browse/trunk/hardware/tiny/boards.txt#373
http://code.google.com/p/arduino-tiny/source/browse/trunk/hardware/tiny/boards.txt#405

This is the fuse calculator I usually use...
http://www.engbedded.com/fusecalc
7625  Using Arduino / Microcontrollers / Re: Mega 2560 as ISP for ATTiny on: April 05, 2012, 12:24:30 pm
Sorry, I meant to say that I had the capacitor between RESET and GND.

Oh rats!  The capacitor goes between RESET and GND.  I apologize for the mistake.

Quote
Some also suggest that a 120ohm resistor between RESET and +5V would work as well. One thread on the old forum even mentioned connecting both.

I've read those things as well.  I suggest trying: capacitor, resistor, then both.  The goal is to disable auto-reset.  If it looks like the board resets when an upload starts then try a different method.

I also suggest an LED (and series resistor) on pin 9.  A "heartbeat" should always be present.
7626  Using Arduino / General Electronics / Re: Can't identify that component on: April 05, 2012, 03:18:08 am

I'm putting my money on "rectifier"...
http://www.datasheetcatalog.org/datasheet/Shindengen/mXqwrtw.pdf
7627  Using Arduino / Microcontrollers / Re: Mega 2560 as ISP for ATTiny on: April 05, 2012, 03:13:55 am
Any thoughts on what might be causing this?

Yup...

Quote
I am using the ArduinoISP for the programmer, and I have a 10uF capacitor between +5V and GND to stop the Arduino from resetting.

Capacitor is connected to RESET and +5V (not GND) and GND.  Be sure to get the polarity correct.
7628  Community / Bar Sport / Re: Why good style is important ... on: April 05, 2012, 02:24:07 am
And presumably people were gullible enough to part with cash for those?

As you can see from this documentary they are worth their weight in gold...
http://www.imdb.com/media/rm3197548544/tt0088000
7629  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino to Attiny45/85 on: April 05, 2012, 01:48:02 am
Quote
I'd like to free up my ttl

I believe a replacement can be had for $2 (EBay).


Quote
I did go out of my way to get mobo that has a com port. That should work right?

Only with additional hardware#.  RS-232 is +12 volts to -12 volts.  An Arduino is +5 volts to 0 volts.  One can damage to the other.


# I vaguely recall that a diode and resistor are needed for the receiver.  Various early Arduino boards have a circuit that will work.
7630  Using Arduino / Installation & Troubleshooting / Re: arduino 328p development board on: April 05, 2012, 01:40:44 am

You purchased the board through EBay?  From "ecship"?  A board like this one?

http://www.ebay.com/itm/Arduino-compatible-UNO-2011-Atmega328P-Mega-328-Free-USB-cable-00960-/110852286750?_trksid=p4340.m185&_trkparms=algo%3DSIC.NPJS%26its%3DI%252BC%26itu%3DUA%26otn%3D5%26pmod%3D170795317716%26ps%3D63%26clkid%3D7499481206719816681
7631  Using Arduino / Installation & Troubleshooting / Re: arduino 328p development board on: April 05, 2012, 01:00:34 am
just bought one

One what?

Quote
it does not detect under windows 32bit or 64 bit via the  usb cable

Have you tried a different cable?  Does the cable you are using work with other USB devices?
7632  Using Arduino / Programming Questions / Re: Need help performing multiple calculations with variables. on: April 04, 2012, 10:14:36 pm

Caret (^) is exclusive-or not raise-to-the-power.

Pick the one you prefer...

Power = (16.784*(Accel*1.467+0.018*32.174)+(0.5*ADensity*0.382*214.6*(Speed*1.467)*(Speed*1.467)))*Speed*1.467;

Power = (16.784*(Accel*1.467+0.018*32.174)+(0.5*ADensity*0.382*214.6*pow(Speed*1.467,2)))*Speed*1.467;



Quote
What types of variables should should Accel ADensity and Speed be for the equation to work?

float, float, and unsigned should be fine.
7633  Using Arduino / Programming Questions / Re: Fast PWM Timer1: adjusting duty cycles independently? on: April 04, 2012, 08:49:48 pm
Code:
 // configure for PWM mode 14 (see p.136 of datasheet)
  TCCR1B |= ((1 << WGM13) | (1 << WGM12));
  TCCR1A |= (1 << WGM11);
 

What's the value of WGM10?


Code:
 // configure for non-inverting mode on both pins (see Table 15-2, p.135)
  TCCR1A |= (1 << COM1A0);  // toggle OC1A on compare match, OC1B disconnected

What's the value of COM1A1?


Code:
 TCCR1A |= (1 << COM1B1);  // clear OC1B on compare match, set OC1B at bottom (non-inverting mode)

What's the value of COM1B0?


Code:
 TCCR1B |= (1 << CS10);       // configure prescaler to divide-by-1 and start counting

What are the values of the other CS* bits?
7634  Using Arduino / Microcontrollers / Re: ATmega328P on 8Mhz internal clock, serial comm, and libraries question on: April 04, 2012, 08:43:18 pm

Can you use a baud rate with zero error?  Like 125K?

The processor leaves the factory with the internal oscillator calibrated to ±10%.  It is possible to tune the oscillator to ±1%.  In addition to dealing with the baud rate error you may have to tune the oscillator. 

You could tune the oscillator to run a bit slow and get closer to 115200 baud rate.  Unfortunately everything else (millis, delay) will also run a bit slow.
7635  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino to Attiny45/85 on: April 04, 2012, 05:05:38 pm

Then the second option should work well.  Run transmit from the converter (and ground) to a chain of ATtiny processors, include an "address" with the command, add SoftwareSerial to the sketch, and voilà a mini X10 network.
Pages: 1 ... 507 508 [509] 510 511 ... 958