Show Posts
|
|
Pages: [1] 2 3 ... 5
|
|
3
|
Using Arduino / Microcontrollers / Re: Atmega168 internal osc. 8MHz, Wire.h library and compass
|
on: May 18, 2013, 12:40:01 pm
|
|
I know the chip uses the speed of the clock (either internal or external crystal) to time other things like delays and pulses.
If you wrote a program for a 20mhz chip for example and then dumped it into an 8mhz chip without fixing that in code, you may have timing problems, like the pulses to the servos are not correct because you're only running at 40% of the speed.
I found this out uploading a blink sketch to an attiny that was using a 1mhz internal clock. I thought it wasn't working because the light wasn't blinking, turns out it really was but the pulses were like 16 seconds apart because the clock wasn't compensated for.
In AVR C you have to set you chip speed at the beginning. The arduino IDE by default assumes you're just using the board speed.
When you're programming your other chips, do you have a separate entry for them in the target board with the speed set correctly?
|
|
|
|
|
4
|
Using Arduino / Installation & Troubleshooting / Re: Is My UNO Burned?
|
on: May 08, 2013, 10:49:53 am
|
|
Was that big scratch already there?
The easiest thing to do is buy a pre=programmed Atmega328p-pu chip from Sparkfun, Adafruit or one of those sites. If you buy a bare chip, you'll need the bootloader on it which you won't be able to do without a programmer or another functioning arduino.
|
|
|
|
|
5
|
Using Arduino / Installation & Troubleshooting / Re: Tried EVERYTHING still won't work UNO R3
|
on: May 08, 2013, 10:43:51 am
|
|
Adding it through Legacy hardware is not going to work. We need the hardware ID to be sure.
Do you know this is an official Uno R3 and not a clone? If it is, it may be using different guts. An Uno should have 2 Atmel chips, the big one in the center and a really small one near the USB port which controls the USB connection and provides the USB serial port.
You're going to have to delete that com port because when you get the driver installed correctly the unknown device will move up there as a com port.
|
|
|
|
|
11
|
Using Arduino / Microcontrollers / Re: ATtiny45 vs 328P using Arduino ISP
|
on: April 22, 2013, 04:18:22 pm
|
|
Ok, so I've got a couple of things to try. 1. Try the 328 that wouldn't program in the arduino itself to see if it will take a sketch. 2. Try the 328 that I've never removed from the packaging to see if it will take a sketch as is.
|
|
|
|
|