Pages: [1]   Go Down
Author Topic: How can i send data to led banner?  (Read 936 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi! its my second question.

i have a led banner. i send data to it with vb6 or python its working.

my python code:
# -*- coding: utf-8-*-
import serial, time
ser = serial.Serial('COM1',19200)
ser.parity = 'N'
ser.bytesize = 8
ser.stopbits = 1
ser.timeout = 1
beklemesuresi = 0.2

try:
 #yazmaya başla
    message = raw_input("Mesaj girin: ")
    databasla = [255,254,0,100,200,95,1,1,200,43,10,1]
    print "Datalar gonderiliyor"
    for x in databasla:
        ser.write(chr(x))
        time.sleep(beklemesuresi)
#yazmaya başla
#Mesaj
   
    for ch in message:
        mesaj = chr(ord(ch),)
        ser.write(mesaj)
        time.sleep(beklemesuresi)
#Mesaj
#yazmayı bitir
    databitir = [200,253]
    for x in databitir:
        ser.write(chr(x))
        time.sleep(beklemesuresi)
#yazmayı bitir
    ser.close()
# Hata oluşursa
except IOError:
    print "Hata olustu"

my arduino code:
int data[] = {255, 254, 0, 100, 200, 95, 1, 1, 200, 43, 10, 1, 77, 117, 115, 108, 117, 32, 89, 252, 107, 115, 101, 107, 116, 101, 112, 101, 200, 253};

void  setup(){Serial.begin(19200);}


void loop()
{
for (int i = 0; i < 30; i++){
   Serial.print(data);
   delay(30);
   }


  Serial.end();

}


How can i send data with arduino like python?
Do i have use max232 or other chip?
smiley-roll
« Last Edit: February 28, 2011, 05:52:27 pm by musluyuksektepe » Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34554
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry you will have to speak up.
Could you try using a larger type face.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i dont understand!
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8601
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

musluyuksektepe there's no point asking the same question on another forum, we've given you examples of code that should work but you seem to constantly ignore requests for information.

We still need the info about the display, otherwise there's little point continuing.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i use 18f452 series microchip on display. its working 19200 and send data with 19200 but i think maybe its not same.
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34554
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i dont understand!

The use of large type face is considered very rude.

Quote
i use 18f452 series microchip on display.

It matters not what the controlling micro is, without information on what the display actually is then no one can help you.
Logged

Pages: [1]   Go Up
Jump to: