Show Posts
Pages: 1 2 [3] 4 5 ... 177
31  Using Arduino / Displays / Re: adafruit tft display examples wont compile on: August 24, 2014, 10:29:48 am
What has the Robot_Control library got to do with getting the display you linked to working?
32  Using Arduino / Programming Questions / Re: Shifting Values in an array on: August 24, 2014, 07:30:24 am
Assuming you want the output I showed earlier then the below code will produce it.
Code:
byte values[26] = {20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,0,0,0,0};

void setup(){
  Serial.begin(115200);
  for (byte a = 19; a < 20; a--){
    for (byte b = 0; b < 7; b++){
      Serial.print(values[a + b]);
      Serial.print("\t");
    }
    Serial.println();
  }
}

void loop(){}


Code:
1 0 0 0 0 0 0
2 1 0 0 0 0 0
3 2 1 0 0 0 0
4 3 2 1 0 0 0
5 4 3 2 1 0 0
6 5 4 3 2 1 0
7 6 5 4 3 2 1
8 7 6 5 4 3 2
9 8 7 6 5 4 3
10 9 8 7 6 5 4
11 10 9 8 7 6 5
12 11 10 9 8 7 6
13 12 11 10 9 8 7
14 13 12 11 10 9 8
15 14 13 12 11 10 9
16 15 14 13 12 11 10
17 16 15 14 13 12 11
18 17 16 15 14 13 12
19 18 17 16 15 14 13
20 19 18 17 16 15 14
33  Using Arduino / Project Guidance / Re: How to detect "high" 3v3 signal on 5v Arduino ? - is analog input feasible ? on: August 24, 2014, 06:59:15 am
I am using an Atmega8 , (ArduinoNG)
It fails to regiver 3v3 logic.
I need only to "detect" a high state.
According to the AtMega8 datasheet it should detect as high (assuming your powering it at 5V.
Anything below 0.2VCC should be low and above 0.6VCC high.
0.2 * 5.0 = 1V      0.6 * 5.0 = 3V

34  Using Arduino / Displays / Re: adafruit tft display examples wont compile on: August 24, 2014, 04:46:33 am
I did not use the install library option from the IDE but followed the Adafruit detailed practice of extracting the libraries to your libraries folder in your Arduino sketch folder.
35  Using Arduino / Interfacing w/ Software on the Computer / Re: Learning to use Processing with Windows 7 on: August 24, 2014, 02:52:13 am
I now little about Processing or Firmata but the Arduino examples are present in 1.0.5 (See attached image)
36  Using Arduino / Displays / Re: adafruit tft display examples wont compile on: August 24, 2014, 01:51:16 am
its the tft model with the joystick and sim card reader on the uno board
The Adafruit library needed for this LCD is not the one you linked in the first post.
However, after downloading the library indicated on the product page from here, extracting to the libraries folder and renaming  (I had to change the - to _) I could compile 7 of the 8 example sketches without any problems.
The one problem sketch (soft_spitftbitmap) error with
Quote
soft_spitftbitmap.ino: In function 'void setup()':
soft_spitftbitmap:68: error: no matching function for call to 'SDClass::begin(int, int, int, int)'
M:\DropboxPortableAHK\Dropbox\_arduino-1.0.5\libraries\SD/SD.h:69: note: candidates are: boolean SDClass::begin(uint8_t)
so do not match your errors.
37  Using Arduino / Displays / Re: adafruit tft display examples wont compile on: August 23, 2014, 10:52:22 am
yes i did and tried this lot as well and they wont compile either despite adding the gfx files as well
all in the library file

https://github.com/adafruit/Adafruit-ST7735-Library
Sorry, you must be doing something wrong. I just downloaded the library you linked to in your first post (Adafruit_ILI9340) and the Adafruit_GFX_Library from here, restarted the IDE and compiled both the example files (graphicstest & spitftbitmap) for the arduino UNO without error using the 1.0.5 version of the IDE.
I had to change the name of the GFX library to make it legal for the IDE as it was using - instead of _ in the name.

What version of IDE are you using?
What is your Arduino target device? (Mega, UNO etc.)


38  Using Arduino / Displays / Re: adafruit tft display examples wont compile on: August 23, 2014, 10:02:41 am
Have you downloaded and installed the library as per the readme on the page you linked to? You need to re-start the arduino IDE after installing new libraries.
39  Products / Arduino Due / Re: Uploading problem with FTDI Chip on: August 23, 2014, 07:30:36 am
How should I do this? Just simple wiring or is there an option for this?
I'm not sure the PC0 pin is broken out to the headers but one way to test would be to press and hold down the erase button on your Duo while initiating the FTDI upload. I don't know if it needs holding down just during reset of during the entire upload process. The serial port should be set to 115200,8,N,1
Don't forget the Duo is a 3.3V device so ensure the FTDI is working at this voltage else you may damage something.
40  Products / Arduino Due / Re: Uploading problem with FTDI Chip on: August 23, 2014, 07:00:25 am
@Riva I cannot upload with an external FTDI Chip. With the onboard it works well, but i want to use an external chip for an other project. The Due has no sepearte Bootloader like the Atmega boards.
Okay, a quick skip through the datasheet and schematic and it seems you may need to pull PC0 high (3.3V) during reset to erase the flash memory ready for programming using PA8 & PA9 (RX/TX)
41  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?
42  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.
43  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.
44  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()
45  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)
Pages: 1 2 [3] 4 5 ... 177