Show Posts
Pages: 1 2 [3] 4 5 ... 176
31  Using Arduino / Programming Questions / Re: Trouble with millis() on: August 23, 2014, 06:32:28 am
You need to post a bit more code.
You say currentMillis is set beforehand but should it also be reset in the if (usf >= 1000) { statement?
32  Products / Arduino Due / Re: Uploading problem with FTDI Chip on: August 23, 2014, 06:14:54 am
Can you upload to a Duo this way? I thought the Duo had built in USB ports/bootloader that don't use UART ports.
33  Using Arduino / Storage / Re: How to get name of directory when directory name is unknown? SdFat on: August 23, 2014, 02:19:36 am
I am using SdFat, not the standard Sd.h library. Is that the difference you are mentioning? Perhaps I was not clear enough, because I may have only mentioned this in my title. I am sorry for any confusion that may have caused
Also my bad as I only tend to skim titles, I now see it refers to SdFat.
Is SdFat an extension of SD or a separate library? They both seem to reside in the same library folder. If it's an extension then can you mix and match SD & SdFat functions?


Something that drew me back to this page: It occurred to me that I am declaring
char name[13] locally in my function. It may be that I need to be declaring it globally, since the function does not "return" name, it seems to modify it within the function. I'm not certain.
I had a look at the original SdFat examples/documentation that don't seem to be included in the standard Arduino library and it might be worth looking at this sketch. Other than that I'm not really helping. I will have to dust off my Ethernet shield and play with the SD card functions at some point.
34  Using Arduino / Storage / Re: How to get name of directory when directory name is unknown? SdFat on: August 22, 2014, 10:51:39 am
Have you tried running the example on the reference page I linked too, it's using Serial.print(entry.name()); to print the file/directory name.
You code snippet does not show if your using the standard SD library as the function names do not seem to match.
isDirectory() vs isDir()
35  Using Arduino / Storage / Re: How to get name of directory when directory name is unknown? SdFat on: August 22, 2014, 01:48:13 am
I have not used the SD library but a quick look at the reference page seem to point to you using FileOpenNextFile and isDirectory to determine if next file is a directory or file. You can then extract the directory name using .name (all according to the reference)
36  Topics / Robotics / Re: Making a barrier for an Arduino on: August 21, 2014, 11:14:49 am
I have seen robot lawn mowers that use a buried cable to define perimeter. Maybe you could research how they detect and use it to stop the mower from crossing the line.
37  Community / Exhibition / Gallery / Re: Arduino WordClock on: August 21, 2014, 08:02:16 am
Each MAX7219 can control 64 LED's with 8x8 display being the most common layout but you could arrange the LED's in any pattern you want as long as they are wired on the 8x8 matrix style needed by the MAX7219 chip. Where it would become more complicated is determining what LED is what when they are set out in a non 8x8 pattern. For a simple word clock this would be relatively easy as the LED's go on/off in set patterns but if you want to include scrolling text then it will become really complex.
38  Using Arduino / LEDs and Multiplexing / Re: problem with the 8X8 linksprite led dot matrix board on: August 21, 2014, 07:07:39 am
i got rid of the ic socket and soldered the max chip in direct
A couple of probably stupid questions but...
Did you solder the chip in the correct way round?
Are you good at soldering as the IC could have been baked else?
39  Using Arduino / Programming Questions / Re: Compiling USB shield on: August 21, 2014, 07:03:42 am
What device are you trying to compile for?
I downloaded the zip package, extracted and renamed it, copied to libraries directory and tried compiling a few examples without problem.
40  Using Arduino / LEDs and Multiplexing / Re: problem with the 8X8 linksprite led dot matrix board on: August 20, 2014, 10:41:25 am
Do you have the 8x8 LED matrix on the right way round?
41  Using Arduino / Microcontrollers / Re: Using PROGMEM with Attiny 85 on: August 19, 2014, 11:58:30 am
At a guess I would say pgm_read_byte only reads byte values (8 bits) but both of your arrays are defined as int (16 bits).
Can you define the arrays as byte or does the range exceed 0-255
42  Community / Bar Sport / Re: Winter vs Summer on: August 19, 2014, 10:39:59 am
Crawley is some six degrees north of the latitude of St Johns, Nova Scotia, a place not noted for its balmy climate.

Crawley is doing quite nicely, I'd say.
Not today though.
43  Using Arduino / Microcontrollers / Re: Atmega328 - 28PU bootloader issues with USBasp | DIY arduino on: August 15, 2014, 06:57:16 am
Glad you got it working okay.
44  Community / Bar Sport / Re: What Faggot means in the UK on: August 15, 2014, 06:52:49 am
This stuff?
45  Using Arduino / Microcontrollers / Re: Atmega328 - 28PU bootloader issues with USBasp | DIY arduino on: August 15, 2014, 05:42:51 am
Ar the moment i dont have a pull down resistor, just a push button switch between the reset pin and ground.  Should i put a resistor in?  I will try all the things suggested after class.  Thanks for all the help!
Pullup not pulldown. You need to connect it between reset and VCC not reset and GND.
Pages: 1 2 [3] 4 5 ... 176