Show Posts
Pages: 1 ... 376 377 [378] 379 380 ... 590
5656  Using Arduino / Sensors / Re: proximity sensor IQS128 on: April 25, 2012, 10:30:40 am
I think you can ignore the CTRL/ND pin unless you want to change the default configuration.

Connect power (+5V) to VDDHI, ground to VSS, antenna to CX and see if OUT changes when you touch the antenna. 

You will need a pull-up resistor on OUT.  If you connect it to an Arduino input you can turn on the internal pull-up by setting the input pin to HIGH:

Code:
pinMode(2, INPUT);  // OUT from sensor
digitalWrite(2, HIGH); // Turn on the pull-up
5657  Using Arduino / Installation & Troubleshooting / Re: How to switch off Keypad LCD Shield V2.0 -Arduino Compatible on: April 17, 2012, 02:38:06 pm
Try setting RS, EN, D4, D5, D6, and D7 to LOW in addition to turning off Vdd.
5658  Using Arduino / Installation & Troubleshooting / Re: Hardware Serial on Leonardo talking jiberish on: April 17, 2012, 02:33:54 pm
The garbage could be due to a baud rate mismatch.  Have you tried other baud rates?

Have you used the generic USB to Serial cable successfully with other projects?
5659  Using Arduino / Installation & Troubleshooting / Re: Arduino Chip Boot Problem on: April 17, 2012, 02:30:03 pm
http://arduino.cc/en/Tutorial/ArduinoISP
5660  Using Arduino / Installation & Troubleshooting / Re: Hardware Serial on Leonardo talking jiberish on: April 17, 2012, 02:07:57 pm
How are the serial lines connected to your PC's COM port?
5661  Using Arduino / Installation & Troubleshooting / Re: Arduino Chip Boot Problem on: April 17, 2012, 02:02:08 pm
Sounds like something very strange in the bootloader that came installed on those chips. If you have another UNO or earlier Arduino you can use the omniloader sketch to use one Arduino as a programmer to write a fresh bootloader on the other Arduino.

If you don't have a second Arduino you can get a USBasp programmer from eBay for under $5 (including shipping from China!). Then you can program fresh bootloaders on chips in your Arduino.
5662  Using Arduino / Audio / Re: How do I set 256 steps into a rheostat vs potentiometer? on: April 17, 2012, 01:50:46 pm
You won't get a full range (0-1023) but if you make a voltage divider with a fixed resistor and your variable resistor you can get a wide range of readings.  Connect the fixed resistor between +5V and the analog input pin. Connect your variable resistor between the analog input pin and Ground. If your VR goes to 30k and your fixed resistor is half that (15k) you will get values in the bottom 2/3 of the range (roughly 0 to 680).
5663  Using Arduino / Project Guidance / Re: Converting frequency to delay time on: April 17, 2012, 01:41:11 pm
Thank you for your reply. I was starting to think the problem was something to do with that. So by using hardware interrupts do you mean using the millis function? Are there any other issues which you can see with the code - this is my first program so everything is a learning curve!

You light only one LED at a time.  You can get better brightness if you light all pixels in a row, do the delay, and then turn off all the pixels (using a second loop across the columns).  That will mean one delay per row so the delay can be six times as long.
5664  Using Arduino / Programming Questions / Re: ATtiny! Damn that thing is tricky on: April 17, 2012, 01:35:14 pm
John: I've seen posts and notes showing what looks like two ways to do that, a 10 uf cap or a big resistor for possibly different rev UNO's or different Arduino boards... or just two different ways?

Two different ways.  The auto-reset happens when the DTR signal goes low. This grounds one end of a tiny capacitor. The other end is connected to the Reset pin.  The current needed to charge the tiny capacitor causes the voltage on the Reset pin to drop low enough to initiate a reset.

A low-value resistor (roughly 100 Ohms) between +5V and Reset provides current fast enough that the tiny capacitor does not draw the voltage below the Reset threshold.

Likewise a small capacitor (1 microFarad or more) provides enough capacitance that the existing pull-up resistor can keep the combined capacitors charged above the Reset threshold.

Either one will work.
5665  Using Arduino / Installation & Troubleshooting / Re: Arduino Chip Boot Problem on: April 17, 2012, 12:38:34 pm
You are plugging your chips into the Arduino UNO, in place of the original processor?  You are uploading to the chips normally, the same as you do with the original chip? If so you definitely have a boot loader on the new chips and I don't know why the sketch does not run again when power is applied.
5666  Using Arduino / Project Guidance / Re: Converting frequency to delay time on: April 17, 2012, 12:32:41 pm
At 1800 Hz and 6 columns your delay comes out to 92-117 microseconds. I'm surprised it does not treat that negative number as a huge unsigned number and fail completely to operate.

Might be time to learn to programm one of the built-in timers and use an interrupt to refresh your columns.
5667  Using Arduino / General Electronics / Re: 16 bit conventor on: April 17, 2012, 12:21:07 pm
Read http://arduino.cc/en/Tutorial/ShiftOut
5668  Using Arduino / Installation & Troubleshooting / Re: Upload Timeout Error on Mega 2560 - Not Sure What Changed on: April 17, 2012, 12:18:32 pm
It would really help if you said what the error was rather than the vague phrase "unable to upload".

Did you add a string that contains three or more '!' in a row?
5669  Using Arduino / Programming Questions / Re: ATtiny! Damn that thing is tricky on: April 17, 2012, 12:11:30 pm
My guess is that you did not disable auto-reset on the Arduino you are running the ArduinoISP sketch on.
5670  Using Arduino / Networking, Protocols, and Devices / Re: Where to find "WebServer_MultiPage.h" on: April 17, 2012, 12:07:38 pm
Go back to the original example and get the two blocks of code:

Webserver.h
Webserver.ino

Also, install Arduino 1.0.
Pages: 1 ... 376 377 [378] 379 380 ... 590