Show Posts
Pages: 1 ... 507 508 [509] 510 511 ... 958
7621  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
7622  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?
7623  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.
7624  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?
7625  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.
7626  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.
7627  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino to Attiny45/85 on: April 04, 2012, 04:30:01 pm

So there's a USB-to-TTL-serial converter between the computer and the ATmega644P processor.  Is the converter part of the board or separate?
7628  Community / Bar Sport / Re: Laws of the Forum on: April 04, 2012, 04:11:44 pm

When the person states up front there is a bug in the compiler the problem usually turns out to be... I don't think you connected the grounds, Dave.
7629  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino to Attiny45/85 on: April 04, 2012, 04:04:35 pm
Quote
atmega644p

Which board?
7630  Using Arduino / Microcontrollers / Re: What is a good boxed ISP on: April 04, 2012, 02:44:19 pm
I shall post this to Microcontrollers forum too. It seems to be more on topic.

Please don't.  A moderator can easily move the topic.  You need only ask.

Oh wait.  You already did.  In that case... PLEASE DO NOT CROSS-POST.

Edit: Topics merged.
7631  Using Arduino / Microcontrollers / Re: Arduino Ethernet an AVR ISP on: April 04, 2012, 03:56:35 am

If you're willing to tolerate slightly slower uploads, you can use any pins you'd like.  SPI is easy to bit-bang.  smeezekitty has an example that is built to program slow targets but could be modified to be faster and use arbitrary pins.


Edit: spelling corrected.
7632  Using Arduino / Programming Questions / Re: three simple questions on: April 03, 2012, 10:03:55 pm

1. If you are programming via a bootloader (which I believe is what you are saying) then the EERPOM is not touched.  Any data written is preserved.

2. Depends on the fuse settings.  There is a "preserve EEPROM through chip erase" fuse that has to be set.

3. Yes.
7633  Development / Other Software Development / Re: Error Message Library on: April 02, 2012, 11:03:12 pm

A what?
7634  Using Arduino / Installation & Troubleshooting / Re: I've not seen this before! Any ideas? on: April 02, 2012, 10:45:59 pm

Does this help...
boardid.upload.using=arduino:USBtinyISP
7635  Using Arduino / Installation & Troubleshooting / Re: "Invalid device signature" (0x000000) since Arduino 1.0; works in 0022 on: April 02, 2012, 01:13:33 pm
Is the 'arduino' entry then some "STK500-like" protocol definition (that all Arduino projects should have been using all along)

Probably not "all along" but the "arduino" protocol has been available at least since 2010-01-19 (the latest WinAVR release).

Quote
that forces the non-use of the "universal" commands?

I believe the "arduino" protocol is just the old STK500 source code.

In fairness to the Arduino folks, the old STK500 (the new "arduino" protocol) is very likely much more efficient (i.e. faster uploads).
Pages: 1 ... 507 508 [509] 510 511 ... 958