Show Posts
Pages: [1] 2
1  Using Arduino / Displays / Re: 2.6" TFT w/Micro SD on: February 23, 2014, 11:02:32 pm
Try this driver.
Hope this help.
2  Using Arduino / Displays / Re: noob: Shield w/ spfd5408 controller 240x320 - I don't know which library on: February 16, 2014, 01:24:00 am
@gunner52 and @debilbao
I bought the same display from same vendor and have same problem.

Another person ran this lcd ok with the UNO (mine is Mega).  The library which he used is the same with gunner52. However, he said that he had to change 1 line in the library from:
- if (identifier == 0x9325) into
if (identifier == 0x9120)     ( driver 9120 ?? )

Code:

tft.reset();
 
  //uint16_t identifier = tft.readRegister(0x0);
//  if (identifier == 0x9325)
//  {
 //   Serial.println("Found ILI9325");
 // } else if (identifier == 0x9328)
  //{
  //  Serial.println("Found ILI9328");
  //} else
 // {
 //   Serial.print("Unknown driver chip ");
 //   Serial.println(identifier, HEX);
  //  while (1);
  //} 

You can try it to see how it goes.
3  Using Arduino / Displays / Re: error when i try to load program for TFT shield on: January 25, 2014, 09:28:42 pm
My seller did not send the library or give info. about the IC. driver although on the advertisement he said he would.
I am very much appreciate if you can email the library to :  sinh999@gmail.com
Many thanks.
4  Using Arduino / Displays / Re: error when i try to load program for TFT shield on: January 23, 2014, 01:06:19 am
Hi
Which library do you use ? 
I have the same lcd as yours.
Many thanks
5  Using Arduino / Networking, Protocols, and Devices / Re: How to connect 2 SPI devices ( SD card and ADXL345 sensor) using the same pins ? on: October 14, 2013, 12:09:25 am
@SurferTim : thanks a lot for your info.  It is really big help.
@CrossRoads: thanks for your advise.  I haven't checked the accuracy of the data of the sensor but it seems to be in the range it should be.  When I turned high both devices, the sensor produced very high numbers (out of range).

Thank you all for your valued advises.
Tony
6  Using Arduino / Networking, Protocols, and Devices / Re: How to connect 2 SPI devices ( SD card and ADXL345 sensor) using the same pi on: October 12, 2013, 05:20:01 am
You are connecting them correctly - both get SCK, MISO, and MOSI in parallel.
Each needs its own Chip Select - only one CS can be low at a time while transfers are occurring with that device.

You are right.  I turned both devices HIGH that caused the problem. It is working now.
Does it mean that if I have several SPI devices connect in parallel, only 1 SPI device be activated at a time ?
Many thanks for your advise.

Tony

7  Using Arduino / Networking, Protocols, and Devices / How to connect 2 SPI devices ( SD card and ADXL345 sensor) using the same pins ? on: October 10, 2013, 11:08:26 pm
Hi
I'd like to connect the ADXL345 sensor and SD card into the Mega 2560.  Each card works ok. individually.  They use these SPI pins:
- pin 50  ----> SDO (MISO)
- pin 51  ----> SDA  (MOSI)
- pin 52  ----> SCL (SCK)
- pin 53  ----> SS  (CS)
I understand that the SPI can work as master and slave and can share these pins except pin 53, one has to be assigned into different pin.  I tried pin 10 without success.
How should I connect them together ?
Many thanks
Tony

 
8  Using Arduino / Displays / Missing vertical lines on LCD (TM12864L-1 model) on: September 30, 2013, 01:09:05 am
Hi all
My LCD suddenly doesn't display several vertical lines and the missing lines are changing at different locations after each time it is power on. Please see the pictures attached.  I haven't used it for a year or so.

The LCD is TM12864L-1 model, made by TGK and I run it on the Mega2560.

Would it be the voltage or current problem ?

Tony

9  Using Arduino / Motors, Mechanics, and Power / Re: (Sorted) L298N Speed Control Issue on: August 03, 2013, 12:17:39 am
Sorry Rob, i did not write the whole program because I cut and copy part of my test program with a note about Low and High. I am glad that you worked it out.
Cheers
muangau

 
10  Using Arduino / Motors, Mechanics, and Power / Re: L298N Speed Control Issue on: August 02, 2013, 06:36:40 am
I used the same board as yours to control a brushed motor (rc toy).
You need 3 wires:
- Remove the jumper at ENA (there are 2 pins) then connect a wire at ENA (next to IN1) to pin 9 (arduino) : this pin controls the speed of the motor.
- Connect IN1 to pin 10 (arduino) : this pin controls the direction
- Connect IN2 to pin 11 (arduino) : this pin controls the direction

Here is my code:

int dir1PinA = 10; // direction
int dir2PinA = 11; // direction
int speedPinA = 9;  // pin ENA on the motor shield

unsigned long time;
int speed;
int dir;

void setup ()
{
pinMode (dir1PinA, OUTPUT);
pinMode (dir2PinA, OUTPUT);
pinMode (speedPinA, OUTPUT); // SPEED A
}

void loop ()
{
analogWrite (speedPinA, 100); // change the number from 1-255 to get the speed you want
digitalWrite (dir1PinA, LOW); //  pin 10 Low, pin 11 High
digitalWrite (dir2PinA, HIGH); // change between LOW and HIGH 
delay(3000);  //  stop for 3 seconds so you can see which direction when motor starts again.
}

Hope this help.

11  Community / Local Groups / Re: Anyone in SYDNEY!!! on: January 03, 2013, 07:14:26 am
Count me in - I am at Marrickville.
cheers
Sinh
12  Using Arduino / Motors, Mechanics, and Power / Re: L298N Motor shield and 2.8A DC motor - would it fry the shield ? on: October 27, 2012, 07:52:45 pm
Hi Christian

The shield has a large heat sink so I think it may be ok.  There are 2 outputs on the board. I plan to use the motor for low speed so I think it may be ok. I concern only when the motor first starts, it draws higher ampere than the board specified but last only a few seconds. I will give it a go.
Thanks for your help.

Tony 
13  Using Arduino / Motors, Mechanics, and Power / L298N Motor shield and 2.8A DC motor - would it fry the shield ? on: October 26, 2012, 09:30:17 pm
Hi

I have a brushed DC motor measures at 2.8A when it first starts for a few seconds then drop to 1.7A at normal speed. I wonder if I connect it with the L298N motor shield, would it burn the shield ?  I understand the motor shield can handle a maximum of 2A.

Thanks for your advise.

Tony   
14  Using Arduino / Displays / Re: Wiring problem with TM12864L-1 and Mega2560 on: November 13, 2011, 11:05:33 pm
Hi Bill

I have read doc. in the ks0108 playground and glcd, they are correct. However, it may need to re-write in the pot's wiring paragraph for non-tech people, ie. pin 3 (Vo contrast pin) connects to the wiper of the pot (middle pin), pin 18 (Vout) connects to one leg of the pot and pin 2 connects to another leg.
 
Yes, using another pin and reset it through software when needed is a perfect approach.
Thanks again for your great help.

Tony
15  Using Arduino / Displays / Problem SOLVED: Wiring TM12864L-1 with Mega2560 on: November 09, 2011, 03:14:16 am
Hi Bill

Sorry for my typing error, it should read pin 18.
I used GLCD ver.3 - RC2

The good news is I found the problem, it caused by the faulty potentiometer which controls the screen's contrast. After replacing with another 20K potentiometer, it works perfectly.

In summary, in order for this TM12864L-1 works, the following should be observed:

1. Use the lgcd library ver.3 
2. Use pinout B on the table of the ks0180 playground or in the glcd doc.
2. Pin 17 on the TM12864 should be connected to +5V of the power supply, NOT to the reset pin on arduino ( it was Ugwick who found out ).
3. Use a 20K potentiometer : 
        - pin 3 of the tm12864 connets to the wiper of contrast pot ( the middle pin ).
        - pin 18 of the lcd connects to one leg of the pot.
        - the other leg of the pot connects to 5V pin of the arduino.

I will post the wiring table and the pot's wiring soon for people who may have similar problem like me  smiley

Finally, my thanks to Bill and Ugwick who have given me lots of help. It is really a great commnuity.

Tony
 
Pages: [1] 2