Show Posts
Pages: [1] 2 3
1  Using Arduino / Displays / Re: 2.8" TFT Color LCD Module ILI9320 Rev.2 on: July 28, 2012, 07:37:17 pm
a little notice please  smiley-eek-blue
2  Using Arduino / Displays / 2.8" TFT Color LCD Module ILI9320 Rev.2 on: July 28, 2012, 04:43:57 am
Hi everyone,

long time ago i bought the STM32F103RTB6 that came with a 2.8" TFT Color LCD Module  ILI9320 Rev.2.
long story short, i bricked the STM32F103RTB6.
now i want to use the 2.8" TFT Color LCD Module Rev.2, with my arduino UNO.

the 2.8" TFT Color LCD Module Rev.2, have two BIT modes: 16bit and 8bit (I using the 8BIT).
my problem is that i don't sure what is the the right connections, and i don't have a librery to use it smiley-cry.

1th of all this is the 2.8" TFT Color LCD Module Rev.2 Pictures:
https://docs.google.com/open?id=0B8A6VEqIObdMaGw1OXYxUHNDUW8
https://docs.google.com/open?id=0B8A6VEqIObdMNDI0bVR3bWt2bVk
https://docs.google.com/open?id=0B8A6VEqIObdMNEhVOFVWbWpORE0
https://docs.google.com/open?id=0B8A6VEqIObdMNG1HekNnQmJydDQ
https://docs.google.com/open?id=0B8A6VEqIObdMT2taRDJOUnI0LWc
https://docs.google.com/open?id=0B8A6VEqIObdMVTBLakstaE5VLXc
https://docs.google.com/open?id=0B8A6VEqIObdMaFZFV0NvTmFJeTA

I think the connections to the arduino should be: (Please Correct me if i worng)
LCD                     ARDUINO UNO
------------------------------------------
DB0                     Pin 0
DB1                     Pin 1
DB2                     Pin 2
DB3                     Pin 3
DB4                     Pin 4
DB5                     Pin 5
DB6                     Pin 6
DB7                     Pin 7

CS                       Pin A0
RS                       Pin A1
WR                      Pin A2
TP_CS                  Pin A4

SD_CS                 Pin 10
MOSI                   Pin 11
MISO                   Pin 12
SCLK                    Pin 13

Any help is welcome
thanks alot,
Nerotix.
3  Using Arduino / Programming Questions / Re: Midi USB Conntroller for Traktor on: December 23, 2011, 07:32:08 am
Working Code - Arduino UNO midi.
Code:
/* Arduino USB MIDI demo */

#define MIDI_COMMAND_CHANGE      0xB0

#define e 1
int currentPotValue = 0;
int pot = 0l

/* The format of the message to send via serial */
typedef struct {
    uint8_t command;
    uint8_t channel;
    uint8_t data2;
    uint8_t data3;
} t_midiMsg;

void setup();
void loop();

void setup()
{
    Serial.begin(115200);
    delay(200);
}

/* List of notes to play, zero terminated */


void loop()
{
    t_midiMsg msg;
  currentPot = analogRead(0) / 8;
 
    if(abs(currentPot - pot) > e)
    {
msg.command = MIDI_COMMAND_CHANGE;
msg.channel = 1;
msg.data2   = currentPot;
msg.data3   = 1; /* Velocity */
Serial.write((uint8_t *)&msg, sizeof(msg));
        pot = currentPot;
    }
   
}

awesome program to monitor MIDI msgs and the MIDI yoke virtual com: http://www.midiox.com/

tnx for all the helpers.

4  Using Arduino / Programming Questions / Re: Midi USB Conntroller for Traktor on: December 22, 2011, 07:40:26 am
well i tried all night long to make it work with the 1.0 IDE and i failed...

so i got back to the 0023 IDE and downloaded the MIDI Library v3.1  :
Code:
#include <Midi.h>
#define e 1
byte currentPot = 0;  
byte pot = 0;
byte channel = 1;
byte ControlNum = 0;

void setup() {
  MIDI.begin(0);
}

void loop() {
  currentPot = analogRead(0) / 8;    
    if(abs(currentPot - pot) > e) {
      MIDI.sendControlChange(ControlNum, currentPot, channel);
      pot = currentPot;
}
}

now this work but not fully...
i start "Serial_MIDI_Converter_V2D"
and open traktor software (like Virtual DJ),
i pressed the  "learn" key in the "Controller Manger" - (in the settings)
and then i rotated the the potentiometer.
the Traktor software did "learn" the potentiometer but not like it should...
each rotate of the potentiometer should change only the value,and in my case its changes  the channel and the status byte

Video so u will understand what i am talking about:

http://youtu.be/_UXWEUbw5b4

In the video u can see how TRAKTOR respond to the rotate of the potentiometer but in a odd way...


BTW: the only thing that connected to the arduino uno is the potentiometer
5  Using Arduino / Programming Questions / Re: Midi USB Conntroller for Traktor on: December 21, 2011, 03:38:14 pm
Ok sry i didn't know it...

Can u plz tell me why my code isn't controlling traktor ?
6  Using Arduino / Programming Questions / Re: Midi USB Conntroller for Traktor on: December 21, 2011, 03:33:05 pm
true.

but when u need to send 3 Byte Midi msg the spacing zero i imported..

BYTE 1  - 10110000 (Controller Change, Channel 0)
BYTE 2  - 00000000 (Controller Number)
BYTE 3  - 0ccccccc  (Controller Value (ccccccc = analog value that mapped to 0 - 127 and convert to BIN)

7  Using Arduino / Programming Questions / Re: Midi USB Conntroller for Traktor on: December 21, 2011, 03:19:42 pm
tnx for the replay pauls,

I never post something before i search in the arduino.cc search...
and i did found a few post about it...
but when i tried it in my program i didn't get 8bit binary..

also i tried  what u said but when i try to send 0 i didn't get 00000000, i get 0.
8  Using Arduino / Programming Questions / Midi USB Conntroller for Traktor on: December 21, 2011, 02:33:54 pm
Hi everyone,

I trying to to send midi massages to the computer via USB,
so i could control the Traktor with Potentiometers and buttons.

now i got 2 problems:
1th because i upgrade the arduino IDE i don't have the BYTE (Data Types)
and 2nd i don't know how to send 8bit binary to the serial. (0 = 00000000)
and how to change the analog input (0 - 127) to a binary with 8bits...

Code:
/**
 
#define numPots 1  
#define e 1                     
int currentPot = 0;  
byte pot = 0;

void setup() {
Serial.begin(31250);   // baud rate = 31250 for midi
//Serial.begin(38400) ;    //           = 38400 for serial debug
}                        

void loop() {
    currentPot = analogRead(0) / 8;    
    if(abs(currentPot - pot) > e) {
      sendMidi(currentPot);
      pot = currentPot;
  }
}

void sendMidi(byte val) {
  Serial.print(0xB0);
//Serial.print('\n');
  Serial.print(0x01);
//Serial.print('\n');
  Serial.print(val);

}


9  Using Arduino / Displays / Re: 2.8-inch TFT true color touch screen module on: December 04, 2011, 07:45:01 pm
I got Arduino mega 2560
and i would very much like to upgrade my old project with a touch screen
instead of the 2x16 LCD and 4x4keyboard that i got now...

But i don't know how to attack this...
maybe someone that bought stm32f103rbt6 and seeing this post would be king
enough to upload the datasheet of the screen, i believe its the same LCD module
in all of this stm32f103rbt6 boards.

http://cgi.ebay.com/ws/eBayISAPI.dll?VISuperSize&item=260876356306
10  Using Arduino / Displays / Re: 2.8-inch TFT true color touch screen module on: December 04, 2011, 02:45:47 pm
meaning i can't interface it to my arduino?
11  Using Arduino / Displays / Re: 2.8-inch TFT true color touch screen module on: December 04, 2011, 01:02:39 pm
the true.. i didn't understand much from your reply.. but again thanks for tiring  smiley

i tried few way of connections that i found on the net... but i don't know if the connections is wrong or maybe my code isn't matching the LCD.

how should i know if the arduino is compatible with this LCD and if so, how i should know what lib\code  is matching it? 
12  Using Arduino / Displays / Re: 2.8-inch TFT true color touch screen module on: December 04, 2011, 05:08:20 am
just to clarify i try a number of different connection to try and make it work..
but with no success..

i saw few posts with similar topic, i tried all of the connections i saw but still nothing...
now that i think about it... it could be that the connections is wrong or it could be that the program code is wrong.

i don't know even how to start make it work.. :[
13  Using Arduino / Displays / Re: 2.8-inch TFT true color touch screen module on: December 03, 2011, 07:14:06 pm
hi olikraus and thanks for the quick reply.
but this isn't my module and the pin layout isn't the same.
I don't have the datasheet and i can't find it anywhere home (CD) and on the net...

this is the pictures of the module:

https://docs.google.com/leaf?id=0B109QktDrJrWYjBjYTk3MzYtZTQzNi00NzlhLWI2YjgtZWQyOTExZTliNzg5&hl=en_US

https://docs.google.co/leaf?id=0B109QktDrJrWZmM5NTY3YzItMDAyMC00NmE1LWJlYzEtZTA2YjA5MWY1OWNk&hl=en_US
14  Using Arduino / Displays / 2.8-inch TFT true color touch screen module on: December 03, 2011, 01:59:30 pm
hi all..
long time ago i bought stm32f103rbt6 that comes With a "2.8-inch TFT true color touch screen module, color touch module configuration ADS7843 (or RSM1843 instead)
controller, support for a SD card (SPI mode) can be used to store pictures, in support of AT45DBxxx of a DATA FLASH (can be used for storage) "

i don't know what exactly the LCD model but this is what is wrote on him: 2.8 TFT LCD Module Rev2.0 04450J2H 13815G-04

to make long story, short, i want to connect the 2.8-inch TFT true color touch screen module to my arduino but i don't know how :[

the LCD got 40PINs: (THIS IS THE PINS ORDER (i don't have BD08 and BD09 ... ) )




thanks allot for the helpers
15  Using Arduino / Sensors / Re: DHT11 With Mega2560 on: March 30, 2011, 10:31:26 am
ok, but in what pin should i install the dht ?
and what is the pin number i should initiate?
Pages: [1] 2 3