Show Posts
Pages: 1 ... 48 49 [50] 51 52 ... 85
736  Using Arduino / Programming Questions / Re: Compare Dates - Times on: February 05, 2013, 06:54:36 pm
Code:
char s[15];
sprintf(s, "%04d%02d%02d%02d%02d%02d", year, month, day, hour, minute, second);
737  Using Arduino / General Electronics / Re: Eagle CAD - How to deal with implicit power pins on IC on: February 05, 2013, 04:38:39 pm
Aha! Thanks.
738  Using Arduino / General Electronics / Eagle CAD - How to deal with implicit power pins on IC on: February 05, 2013, 03:50:30 pm
On my schematic I placed a capacitor across the 5V and Gnd of the circuit, as the power pins of the IC are not visible. What I want to achieve on the board layout is placing this capacitor across/close to the (implicit) power pins of an IC but I can't figure out how to do this properly.

Autolayout does not do it by itself (clearly can't read my mind!), palcing the capacitor connections wherever they come. When I tried to do a manual layout of the capacitors followed by autolayout I get errors to the effect that there is duplication of connections on the board, which does not seem a good thing but I don't really know if i can just ignore it.

Does anyone know what the accepted practice is to, in the general case, do a board layout partially manually and then finish with autolayout for the non-critical connections?
739  Using Arduino / Programming Questions / Re: Compare Dates - Times on: February 05, 2013, 03:38:21 pm
If your dates are stored as separate elements, an alternative is to format them as yyyymmddhhmmss you can compare the strings or numbers directly. Use 24 hour format for the time. Works with 2 digit dates as long as they are all after 1999. Use a sprintf to get this format using leading zeros (eg %04d for the year).
740  Using Arduino / Programming Questions / Re: Real Time Clock module to display time and date on LCD on: February 05, 2013, 04:04:45 am
Often these modules need to be enabled to start keeping time. There is a bit that needs to be set to do this.  If you go to the link in my signature below I have a library with example code that allows you to look at what is happening in the ds1307.

Are you sure your connections are correct?
If you want others to help, though, you really need to be more clear about what errors you are getting.
741  Using Arduino / Audio / Re: Speaker and headphone question on: February 03, 2013, 07:44:47 pm
You need to get a headphone jack that switches when the plug is inserted. These are readily available. Internal contacts allow the circuit to go to the speaker when there is no plug; when the plug is inserted the speakers are disconnected and the headphones connected.
742  Using Arduino / Storage / Re: Strange SD card behavior on: February 02, 2013, 02:41:20 pm
As always the obvious things are the best to get a problem resolved.

Good to hear.
743  Using Arduino / Storage / Re: Strange SD card behavior on: February 02, 2013, 02:25:41 pm
Any of the samples with the SDFat library work for me. In most of my code, I am generally reading from the card rather than writing.

I would not have thought that 10cm was excessive length. I built my reader onto a prototype shield with jumpers to be able to select the ENABLE I/O line as it often clashes.

Have you tried formatting the card with the SDFat library formatter?
744  Using Arduino / Storage / Re: Strange SD card behavior on: February 02, 2013, 02:06:53 pm
So I would assume that the software would be ok, given it is a standard example.
Couple of things to try:
1. If you have set up the SD card reader on a breadboard circuit, are all the electrical connections ok?
2. Can you try a different SD card?
3. Can you reformat the SD card you are using?
4. Can you try a different SD card library?

I use SDFat as the bugs in SD get in my way, but they should have no effect in your case. SDFat is faster as well. 
745  Using Arduino / Storage / Re: Strange SD card behavior on: February 02, 2013, 01:53:09 pm
Posting code usually helps. Someone else may be able to try running it to see if the same problems happen.
746  Using Arduino / Programming Questions / Re: Multiple Blink States with a button no delay on: February 01, 2013, 02:57:16 pm
Look at Multiblink at the site in my signature block. It allows you to define the patterns but you will need to add the changes of state to do what you want.
747  Using Arduino / Audio / Re: Simple MSGEQ7 tutorial on: February 01, 2013, 02:51:29 pm
Good job as always. Your tutorials were great when I start with Arduino in January 2012 - I learned a lot quickly and I still use them as references.  Keep it up!
748  Using Arduino / Storage / Re: SD card fails to open file to write after a day of use on: February 01, 2013, 02:43:11 pm
Hard to tell unless you post your code smiley-wink
749  Using Arduino / Programming Questions / Re: MIDI OUT-Digital inputs|Specific controller data sent upon hitting 2nd of a pair on: January 30, 2013, 06:23:50 am
I don't think that your miracle will happen and someone will already have code to do what you want. It is a very specific request.

Have you actually written any code yet? A good place to start would be to send a midi message when one switch is pressed. That can then be extended to do another message when the switch is pressed twice. Then extend it to deal with a second different switch.

The key is start simple and build on what you have.
750  Using Arduino / Programming Questions / Re: Why is the read input repeated in the string? on: January 29, 2013, 05:18:34 am
You need to terminate the string you received with a '\0' character to signify the end of the string. I think you are just getting some random stuff after the string that happens to be your input string.

Edit: Nick beat me to it!
Pages: 1 ... 48 49 [50] 51 52 ... 85