Show Posts
Pages: 1 2 3 [4] 5 6 ... 38
46  Forum 2005-2010 (read only) / Troubleshooting / Re: My Arduino environment is quadrupled on screen on: January 03, 2010, 05:09:53 pm
Not that I have any solutions for you, but it will help others to help you if you tell us what operating system you use...

Why did you post this in the "hardware" section rather than the "software" section? Just interested because it seems like a lot of posts get put in this section that would be much better suited in the software section.

Also maybe a screenshot?
47  Forum 2005-2010 (read only) / Troubleshooting / Re: Building Arduino with ATMEGA8L on: January 03, 2010, 10:49:43 pm
Don't change anything - leave the crystal at 16Mhz.
48  Forum 2005-2010 (read only) / Troubleshooting / Re: strange analog input? Wierd... on: October 27, 2009, 04:40:16 pm
Yes you are misunderstanding.

The results you are getting are perfectly normal and mean your arduino is working 100% correctly.

When you enable a "pullup" it very weakly connects the input internally to 5V, so when nothing else is connected, it reads that pin as HIGH, which is equal to digital 1.

Similarly with the analog inputs - when nothing is connected, it can read anything between 0 and 5V.

Remember that there are small voltages everywhere, for example static electricity can read in the thousands of volts, and since there is nothing to overcome those small voltages in the atmosphere, they are what the arduino reads.

Do a bit more reading/googling using the terms people here have given you - specifically "floating", and "pullup".

Also Ladyada's Tutorial #5 - http://www.ladyada.net/learn/arduino/lesson5.html
49  Forum 2005-2010 (read only) / Troubleshooting / Re: Etched a Purpose-Built Arduino - It Does Nothing! on: October 07, 2009, 06:05:34 pm
Quote
3. Check 0.84v on Pin 1

Well that's not considered "HIGH" in Arduino world, and pin 1 needs to be high, otherwise it is in the "reset" state.

Oh wait I meant pin 1 of the atmega (i.e. reset), not like "digital pin1" inside the arduino IDE yeah? just checking.

Your schematic / board does show a resistor going between Vcc and reset, so if you have a suitable value resistor soldered in, and are not getting a HIGH, check that area of the board.

Looking at the photo maybe the leg of the resistor isn't soldered properly to the reset line?
50  Forum 2005-2010 (read only) / Troubleshooting / Re: Etched a Purpose-Built Arduino - It Does Nothing! on: October 07, 2009, 05:23:43 pm
It's always frustrating when it's good in theory, but just doesn't bloody work!

That said, remote de-bugging is difficult too.

I'd try...

[1] Check there is zero resistance between pins 8 and 22 of the AtMega

[2] Plug in power, and make sure you get +5V on pins 7 and 20 of the AtMEga

[3] With power still on, check you get > ~3.5V on pin 1 of the AtMega

[4] Check the LED lights up if you take out the AtMega, apply power, and plut a bit of jumper wire between pins 7 and 19 of the empty socket
51  Forum 2005-2010 (read only) / Troubleshooting / Re: Atmega328 on a NG board. on: July 29, 2009, 11:59:42 pm
Well, yes, it works every time for me.

Did you follow my advice re: timing?

Push the reset button on the arduino board immeadiately when you see the on-board RX LED flash. For me the LED flashes 3~4 seconds after I push the upload button in the IDE, but that depends on the size of the sketch and what other programs I'm running on my PC at the time.
52  Forum 2005-2010 (read only) / Troubleshooting / Re: Atmega328 on a NG board. on: July 28, 2009, 12:24:29 am
Quote
Is there any other 328 bootloader that work on "legacy" Arduino boards?

I'm running a '328 on a pre-NG arduino - it's the very first USB version. (old-skool points for me)

I have the default bootloader on the '328. Because it is assuming there is the autoreset function (which our boards don't have) the "window of opportunity" for the PC to start talking to the bootloader is very small.

I have found a way to program it that is 100% reliable for me -

[1] Hit the "upload" button in the IDE
[2] Watch the "RX" built in LED on the arduino board. AS SOON as it flashes, push the reset button on the arduino board.

This way the IDE and the bootloader are "N*Sync" (ha) and the program uploads.

Good luck
53  Forum 2005-2010 (read only) / Troubleshooting / Re: Extreme newbie question... memory/recalling sketch on: September 02, 2009, 10:57:57 pm
You can read the sketch back using an ISP programmer - you can't do it using the built in USB serial port.

When you did read it back in, it would be in machine code - a .hex file not readable by humans. You can get disassemblers which would transfor the machine code into assembly code, but you'll have to translate that into "arduino-speak" yourself - probably something you wouldn't be able to do if you are asking this question. It would be MUCH faster to re-write the program from scratch.

If you have an ISP programmer you can "erase" the chip. Uploading a blank sketch, as CaptainObvious suggest, is the easist way to do it if you don't have an external programmer, or want to keep the bootloader.
54  Forum 2005-2010 (read only) / Troubleshooting / Re: LEDs on pins other than 13: resistor required? on: August 20, 2009, 09:51:36 pm
Absolute maximum rating is not the same as typical rating.

I bet if you left the no-resistor LED and an exact equivalent with a resistor lit next to each other, the no-resistor LED would stop working a long time before the on with the LED.
55  Forum 2005-2010 (read only) / Troubleshooting / Re: DS18B20 Temperature Sensor: What am I missing? on: August 07, 2009, 12:33:10 am
Quote
The sensor is correctly wired to the Arduino: VCC to 5V, GND to GND and DG to pin 10 (and I tried Analog 0 too with same results)

Not quite sorry...


pwillard has it:
Quote
a 4.7k pull-up resistor must be connected to the 1-wire bus.
Although the arduino playground page implies you only need the 4.7k resistor in parasite mode (which you are not using), it needs to be there in the direct-power mode too.

56  Forum 2005-2010 (read only) / Troubleshooting / Re: Serial port already in use? on: August 11, 2009, 12:35:59 am
Close the Arduino IDE!

That is the program that is causing the serial port to be "busy"
57  Forum 2005-2010 (read only) / Troubleshooting / Re: Formating for numerous IN/OUTputs on: August 11, 2009, 03:29:47 am
Spend some time reading ladyada's tutorials. You need a good grounding in the basics, otherwise you'll constantly be running into little problems like this

You can probably start with lesson 2 - it sounds like you know how to plug it in and open the IDE

http://www.ladyada.net/learn/arduino/lesson2.html

BTW, everyone will be happy if you use the "code" tags when posting your code here - it makes it SO much easier for everyone to read. The button looks like a "#" in the toolbar above the input box.

(Hint: you are using "straight" brackets to enclose the setup function, you need to use "curly" brackets.)
58  Forum 2005-2010 (read only) / Troubleshooting / Re: Problem with 2 leds on digital pins on: August 07, 2009, 12:26:42 am
It VERY much sounds like the what BRuTuS said - it's almost guaranteed you are not setting the pins as outputs.

post your code
59  Forum 2005-2010 (read only) / Troubleshooting / Re: Bluetooth Transmitter Help? on: July 30, 2009, 08:32:49 pm
The major advantage of the ArduinoBT (in my eyes) is that you can wirelessly program it over the bluetooth connection.

If you are only using the bluetooth feature to send data to your PC, you might as well get a normal arduino + a serial->bluetooth converter.

With this set up you still program a sketch using the USB cable with the board connected to the PC, then use the blutooth modem to send data. The advantage is that this combination is significantly cheaper than the ArduinoBT, and is more flexible if you want to re-use various parts on other projects later on.

Just my opinion and to give you something to think about.
60  Forum 2005-2010 (read only) / Troubleshooting / Re: help with writing serial code. on: July 17, 2009, 12:54:11 am
Few things to consider...

[1] You'd format the command to get the text + score on the same line something like this

Code:
Serial.print("Left Players score: ");  
Serial.print(Left_score_value);
Serial.print("     ");
Serial.print(Right Players score: ");
Serial.println(Right_score_value);

[2] To clear the previous score, it depends on what you are "printing" to, for example are you viewing the output in the Arduino IDE, hyperterminal, processing, LCD, something else?

If you are using hyperterminal, there are clear line and clear screen commands you can send. You would do this just before sending the new score.
Pages: 1 2 3 [4] 5 6 ... 38