Show Posts
Pages: 1 ... 388 389 [390] 391 392 ... 519
5836  Using Arduino / Displays / Re: 12 button and lcd is a big problem on: May 24, 2011, 05:18:36 pm
Can you try to write some code that will do the following with 3 buttons?

0) Clear selected cities
1) Sense all buttons
2) Any buttons pressed? Yes, store the button's city to "first city". No, back to 1.
3) Sense all buttons
4) Any buttons pressed? Yes, store the button's city to "second city". No, back to 3.
5) Now that both cities are selected, do something. Return to 0.

I don't know if anyone did exact project you want to do so you will have to write some code. If you can at least write something that might do the above steps, we can look at the code and see how to improve it.
5837  Community / Bar Sport / Re: Your latest purchase on: May 24, 2011, 04:49:12 pm
Nick,

So you'll be flashing atmega chips for some projects? BTW, the 9V battery cap/power barrel connector looks awfully like the one I just got from adafruit.
5838  Using Arduino / Displays / Re: 12 button and lcd is a big problem on: May 24, 2011, 04:28:44 pm
thank you liudry

I must a lot of work and I have only 10 day smiley

if you find material about this project, are you  share with me?

10 days to change from what you have to what you want is a bit short. I suggest you do say 3 buttons, find out what code you need to make 3 buttons work then go from there. If you try the full problem (12 buttons), you will meet difficulty too big to overcome. If you can write program that works with 3 buttons, you can expand from there.
5839  Development / Other Hardware Development / Re: Need board/connector/cable for 20 pin 128x64 display for a Mega on: May 24, 2011, 04:22:05 pm
My solution might be worth looking at if you used UNO or 2009. You can connect everything to your breadboard and pass the connection to arduino.

http://liudr.wordpress.com/gadget/phi-connect/

I managed to run hard drive cable up to 18' long without signal problem so hard drive cable will definitely solve your problem.
5840  Development / Other Hardware Development / Re: eagle library part needed on: May 24, 2011, 04:17:48 pm
Does anyone know if there is an eagle library part for this FCI SD connector?

http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=609-3956-1-ND

Looks like one of the better ones available, thicker gold plating (50u-inch) than this Molex part, and less expensive to boot:

http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=WM3469CT-ND

It may exist already and I just haven't found it, or maybe it's buried in the cadsoft website somewhere.

No, but this one provides eagle file though, and it seems to be cheaper. I have a few at hand but didn't have time to play with it. Maybe after wife's cellphone upgrades I'll get her micro-sd card to play with this holder. They have a shipping coupon too. Read my bar/sport post.
5841  Development / Other Software Development / Re: Anyone else developing a user interface (UI) on LCDs and keypads/buttons? on: May 24, 2011, 04:12:29 pm
To follow up on this, I just released the latest version:

http://arduino.cc/forum/index.php/topic,62021.0.html

The videos are not very clear for the 20X4 display  smiley-sad-blue Will try videotaping again later.
5842  Development / Other Software Development / Re: idea for physics.h library on: May 24, 2011, 04:10:56 pm
You could also add a formula to convert resistance to temperature for a thermistor. It's a bit intimidating to some newbies. Formula is here for simple thermistor curves. I'm sure some more accurate thermistors has more than three constants, R1, T1, and B.

http://liudr.wordpress.com/2011/02/10/measure-temperature/
5843  Using Arduino / General Electronics / Re: Controlling a 12v solenoid... on: May 24, 2011, 03:58:54 pm
Okay, I see what I did wrong. The diagram, which I made a poor assumption about, looked as if the Base was the 2nd pin. I had hooked it up wrong for sure.

Rewired and that fixed it!

Many thanks. Just wish I could wrap my head around electronics and circuitry better.

Yeah, most npn transistors have EBC pin sequence. It's an understandable mistake. Just glad the transistor is not damaged.
5844  Using Arduino / Displays / Re: 12 button and lcd is a big problem on: May 24, 2011, 03:54:59 pm
Ok, some online reading on the Dijkstra's algorithm plus you code made me believe you are trying to achieve the following with the LCD and 12 buttons:
Press one button (city) then another, the LCD displays the first city and the second city. Then you can do it again.

Please use the "#" button when posting code next time.

I'm pretty sure your code won't work. Here is my logic:

0) Clear selected cities
1) Sense all buttons
2) Any buttons pressed? Yes, store the button's city to "first city". No, back to 1.
3) Sense all buttons
4) Any buttons pressed? Yes, store the button's city to "second city". No, back to 3.
5) Now that both cities are selected, do something. Return to 0.

Sensing if a digital input is HIGH doesn't mean the button is pressed. It just means the button is held down. You want to act when a button is pushed and released, not when it is held down.

I suggest you use my phi_buttons library to handle buttons. But even before that, you should learn A) how to do for loops B) how to do array. Don't proceed before you know both A and B. I'm pretty sure other helpers would want you know A and B too before they seriously help you.
5845  Using Arduino / Displays / Re: 12 button and lcd is a big problem on: May 24, 2011, 01:42:19 pm
If you can describe more details that are missing, maybe we can help. Not being able to use a keypad doesn't mean you can't connect your 12 buttons in a matrix way and use 7 digital io to address them. This way you can just use a keypad library on your buttons, no need to write your own code.
5846  Using Arduino / Displays / Re: Nuelectronics TFT + Ethernet Shield (no sd) - Pin Conflict? on: May 24, 2011, 12:26:53 pm
OK, my best bet was pin 10  from the doc smiley-sad.

Anyone else?

I could suggest de-solder male pins and replace with female stacking headers with long pins like the ethernet shield headers. Then you can jump the lcd shield to the ethernet shield without actually plugging the lcd shield on the ethernet shield. But that is a lot of work.
5847  Using Arduino / Programming Questions / Re: Help with Wire + LiquidCrystal on: May 24, 2011, 12:21:24 pm
I suspect you have used analog pins 4 and 5 (AKA digital pins 18 and 19) on your LCD or something else, which are the I2C pins for the RTC but help me out here with pics and code.

Every one of my clocks works fine:

Video:


scroll down to "complete projects"

http://liudr.wordpress.com/shields/phi-2-shield/
5848  Using Arduino / Programming Questions / Re: Library name problem on: May 24, 2011, 12:15:39 pm
When I was just starting my Arduino hobby I used to name file names like haha-01 but arduino ide changes it to haha_01, with the underscore. I suspect it comes from the fact that arduino ide is a hacked version of Processing ide, which also does this naming convention, possibly to avoid any problems across OS.
5849  Using Arduino / General Electronics / Re: RTC 1307 Problem on: May 24, 2011, 12:10:26 pm
Just post here or on bars forum asking for good shops (online or local) in India. Lots of friends in India visit this forum and should be able to point you to places for parts.
5850  Using Arduino / Displays / Re: Nuelectronics TFT + Ethernet Shield (no sd) - Pin Conflict? on: May 24, 2011, 12:08:22 pm
If you have already tried bending the pin, then my bet is some other pins have conflict.

After a closer look at their diagram:
http://www.nuelectronics.com/download/projects/Arduino_tft_v1.2.pdf

I realized there are two additional chip_select lines besides the lcd, the mmc_cs and the tp_cs are probably connected to arduino pins 10 and 9. Of cause there's a conflict. The ethernet chip on the ethernet shield uses 10 as CS too;

http://arduino.cc/en/Main/ArduinoEthernetShield

Bending pin 4 can't do it. It's marked as one of the H_data lines, which I don't know does anything. You may need to bend pin 10 on the lcd shield, then jump it to other pins if you want to use the mmc on the lcd shield, which I suspect is sd card. give it a try on the lcd shield pin 10.
Pages: 1 ... 388 389 [390] 391 392 ... 519