#1 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-10-17 00:15:14

And the measurement on 25khz:

Time (s)     Analyzer Name     Decoded Protocol Result
2.9616    Async Serial    '255' (0xFF) (parity error)
2.96508    Async Serial    '223' (0xDF)
2.96896    Async Serial    '255' (0xFF) (parity error)
2.97124    Async Serial    '183' (0xB7) (framing error & parity error)
2.97264    Async Serial    '223' (0xDF)
2.9738    Async Serial    '223' (0xDF)
2.97524    Async Serial    '255' (0xFF) (parity error)
2.97636    Async Serial    ~ (0x7E) (parity error)
2.97752    Async Serial    '255' (0xFF)
2.97868    Async Serial    '127' (0x7F) (framing error)
2.97996    Async Serial    '255' (0xFF) (parity error)
2.98108    Async Serial    '255' (0xFF) (parity error)
2.98232    Async Serial    '214' (0xD6) (parity error)
2.9836    Async Serial    6 (0x36) (parity error)
2.9848    Async Serial    '231' (0xE7) (parity error)
2.9874    Async Serial    '255' (0xFF) (parity error)
2.99436    Async Serial    '255' (0xFF) (parity error)
2.99696    Async Serial    '255' (0xFF) (parity error)
2.99852    Async Serial    '255' (0xFF) (parity error)
3.0006    Async Serial    '255' (0xFF) (parity error)
3.00184    Async Serial    '255' (0xFF) (parity error)
3.0036    Async Serial    '255' (0xFF) (parity error)
3.00476    Async Serial    '255' (0xFF) (parity error)
3.23612    Async Serial    '255' (0xFF) (parity error)
3.23908    Async Serial    '239' (0xEF)
3.24164    Async Serial    '255' (0xFF) (parity error)
3.24308    Async Serial    '239' (0xEF)
3.2442    Async Serial    '255' (0xFF) (parity error)
3.24532    Async Serial    '127' (0x7F)
3.24676    Async Serial    '127' (0x7F)
3.24792    Async Serial    '255' (0xFF) (parity error)
3.44788    Async Serial    '255' (0xFF) (parity error)
3.45496    Async Serial    '239' (0xEF)
3.45628    Async Serial    '254' (0xFE)
3.45768    Async Serial    '255' (0xFF) (parity error)
3.6198    Async Serial    '239' (0xEF)
3.62812    Async Serial    '255' (0xFF) (parity error)
5.36648    Async Serial    '255' (0xFF) (parity error)
5.3816    Async Serial    '255' (0xFF) (parity error)
5.49696    Async Serial    '255' (0xFF) (parity error)
5.51464    Async Serial    '255' (0xFF) (parity error)
5.57636    Async Serial    '255' (0xFF) (parity error)

#2 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-10-16 23:41:30

I finally got some data. 1Mohm resistor between pin1 and Saleae saved the day smile
The projector is not rebooting anymore and got the following data on 50khz:

Time (s)     Analyzer Name     Decoded Protocol Result
1.30964    Async Serial    '127' (0x7F)
1.31224    Async Serial    '255' (0xFF) (parity error)
1.3134    Async Serial    '255' (0xFF) (framing error & parity error)
1.3146    Async Serial    '255' (0xFF) (parity error)
1.31606    Async Serial    '255' (0xFF) (parity error)
1.31722    Async Serial    '255' (0xFF) (parity error)
1.31864    Async Serial    '175' (0xAF)
1.31978    Async Serial    '255' (0xFF) (parity error)
1.321    Async Serial    '251' (0xFB)
1.32214    Async Serial    '255' (0xFF) (parity error)
1.32326    Async Serial    '255' (0xFF) (parity error)
1.32442    Async Serial    '255' (0xFF) (parity error)
1.32568    Async Serial    '255' (0xFF) (parity error)
1.32692    Async Serial    '255' (0xFF) (parity error)
1.32808    Async Serial    '255' (0xFF) (parity error)
1.32922    Async Serial    '255' (0xFF) (parity error)
1.33038    Async Serial    '255' (0xFF) (parity error)
1.33218    Async Serial    '255' (0xFF)
1.33342    Async Serial    '255' (0xFF) (parity error)
1.33534    Async Serial    '255' (0xFF) (parity error)
1.33668    Async Serial    '255' (0xFF) (parity error)
1.33778    Async Serial    '255' (0xFF)
1.33962    Async Serial    '254' (0xFE)
1.34202    Async Serial    '247' (0xF7)
1.3439    Async Serial    '255' (0xFF) (parity error)
1.35394    Async Serial    '255' (0xFF) (parity error)
1.3559    Async Serial    '255' (0xFF) (parity error)
1.36178    Async Serial    '255' (0xFF) (parity error)
1.4138    Async Serial    '255' (0xFF) (parity error)
1.57338    Async Serial    '255' (0xFF) (parity error)
1.57482    Async Serial    '255' (0xFF) (parity error)
1.57698    Async Serial    '239' (0xEF)
1.57808    Async Serial    '255' (0xFF) (parity error)
1.57918    Async Serial    '255' (0xFF) (parity error)
1.58198    Async Serial    '255' (0xFF) (parity error)
1.5841    Async Serial    '255' (0xFF) (parity error)
1.58552    Async Serial    '255' (0xFF) (parity error)
1.68722    Async Serial    '255' (0xFF) (parity error)
1.69312    Async Serial    '255' (0xFF) (parity error)
1.69426    Async Serial    '255' (0xFF) (parity error)
1.69562    Async Serial    '255' (0xFF) (parity error)
1.69684    Async Serial    '251' (0xFB)
1.80872    Async Serial    '239' (0xEF)
1.80984    Async Serial    '255' (0xFF) (parity error)
1.81102    Async Serial    '255' (0xFF) (parity error)
1.81218    Async Serial    '255' (0xFF) (parity error)
1.81332    Async Serial    '247' (0xF7)
1.81446    Async Serial    '255' (0xFF) (parity error)
1.81592    Async Serial    '255' (0xFF) (parity error)
1.81704    Async Serial    '237' (0xED) (parity error)
1.81862    Async Serial    '255' (0xFF) (parity error)
1.91102    Async Serial    '255' (0xFF) (parity error)
1.91292    Async Serial    '255' (0xFF) (parity error)
1.91444    Async Serial    '255' (0xFF) (parity error)
1.91558    Async Serial    '255' (0xFF) (parity error)
1.9173    Async Serial    '255' (0xFF) (parity error)
1.95572    Async Serial    '255' (0xFF)
1.95782    Async Serial    '255' (0xFF) (parity error)
1.96036    Async Serial    '255' (0xFF) (parity error)
1.96272    Async Serial    '255' (0xFF) (parity error)
1.96386    Async Serial    '255' (0xFF) (parity error)
1.96502    Async Serial    '255' (0xFF) (parity error)
1.96702    Async Serial    '255' (0xFF) (parity error)
3.4185    Async Serial    '255' (0xFF) (parity error)
3.4298    Async Serial    '223' (0xDF)
3.43266    Async Serial    '255' (0xFF) (parity error)
3.4351    Async Serial    '238' (0xEE) (parity error)
3.4362    Async Serial    '255' (0xFF) (parity error)
3.43742    Async Serial    '255' (0xFF) (parity error)
3.4412    Async Serial    '255' (0xFF) (parity error)
3.44254    Async Serial    '255' (0xFF) (parity error)
3.44404    Async Serial    '255' (0xFF) (parity error)
3.44518    Async Serial    '255' (0xFF) (parity error)
3.4515    Async Serial    '255' (0xFF) (parity error)
3.45334    Async Serial    '255' (0xFF) (parity error)
3.46424    Async Serial    '255' (0xFF) (parity error)
3.47786    Async Serial    '255' (0xFF) (parity error)
3.48394    Async Serial    '255' (0xFF) (parity error)
3.49758    Async Serial    '255' (0xFF) (parity error)
3.53632    Async Serial    '255' (0xFF) (parity error)
3.54132    Async Serial    '255' (0xFF) (parity error)

#3 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-09-23 12:09:24

I have made another measurement and got the following data. The measurement is made only on pin 5 on CH0, because if i connect pin 1 to CH1, the projector the lamp turn off after few seconds and projector is keep rebooting.

25 kHz, 0 M Samples [2]

How much i try, pin 1 is causing reboot. Even if is single connected on Saleae.

#4 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-09-22 22:24:50

The connector was 1 2 3 4 5 to 5 4 3 2 1 smile Now the measurement part. I will keep update this post tongue

Update. I got some data but too many frame errors. Is that normal?

25 kHz, 0 M Samples [29]

#5 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-09-22 20:57:19

Hi, Saleae has arrived today, but the projectors is broken. I have get all parts together and is not starting anymore even with original ballast. Maybe, i have broke it with arduino?

https://youtu.be/LdEVLUmQJBQ

#8 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-09-18 20:01:58

Hello. Until the Saleae will arrive, i have dig more on internet and i have found Standardized UART Protocol and is helping me to understand some things smile As i see, for me:

Ballast 3AC/380 O3 Rev. 2

    case 0x00:  Serial.write(0x00); break; //echo
    case 0x70:  Serial.write(0x70); break;  // Enable comnication
    case 0xF0:  Serial.write(0xF0); Serial.write(0x01); break;// Company ID , default is 01
    case 0xF1:  Serial.write(0xF1); Serial.write(0x0C); Serial.write(0x07);; break; // F1h + hardware ID + software ID = as table, 0Ch | as software ID i haven`t figure out yet.
    case 0xF3:  Serial.write(0xF3); Serial.write(0x00); break; // waveform 00 is default as table 3
    case 0xF2:  Serial.write(0xF3); Serial.write(0x64); break; // ??
    case 0xF4:  Serial.write(0xF4); Serial.write(0x80); break; // This query returns the single byte value of the actual waveform gain, which has been set with the command
“Set Gain” (for gain calculation formula, see section 2.2.1.7 “Set Gain (72h)”). Can i set gain ???

    case 0xF6:  Serial.write(0xF6); Serial.write(0x02); break; // This query returns a single byte, representing the total number of waveforms stored in the lamp driver. This can represent projector resolutions?
    case 0xFA:  Serial.write(0xFA); Serial.write(0x60); break; // This query returns the minimum allowed gain value for the lamp. (for gain calculation formula, see section
2.2.1.7 “Set Gain (72h)”) Again, can i set gain?

    case 0xFB:  Serial.write(0xFB); Serial.write(0x80); break; // This query returns the maximum allowed gain value for the lamp. (for gain calculation formula, see section
2.2.1.7 “Set Gain (72h)”) ....
    case 0xF5:  Serial.write(0xF5); Serial.write(0x01); break; // This query returns a single byte, status of the ballast. Table 12 defines the bits of the ballast status
register. Lamp on represent 0.

Even so, is not working yet. Having the pdf above, and using a lcd on arduino, those values can`t be readed from mainboard?

#10 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-09-14 23:47:44

NoName, thank you again for you answer. I followed your advice, and i have started to dig smile So far, i have found the pins order from http://cncms.com.au/SANYO-SMs/Commercia … e31_sm.pdf (Service Manual) on page 78.
K8H: pin 1 LAMP_SENS , PIN 2 GND, PIN 3 5V, PIN 4 LAMP_SW, PIN 5 ECO. Witch one from those will be TX and RX ?

#12 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-09-14 11:32:34

Hello NoName and thank you for answer. The friend of mine, gave me that photo with 2 octocuplors schematics. I have now 4 of PC 817 (Sharp) optocuplors and some 100 ohm resistors, and a Arduino UNO. What schematics should i use for PT VIP 3AC/380 03 Rev. 2 ? Thank you.

#14 Re: Апаратні питання » Прошу помощи! Создание эмулятора балласта лампы проектора Epson. » 2016-09-13 22:27:36

Hello. I friend gave me this link, and maybe one of you will be helpful with me in english (i`m Romanian tongue). I have a Sanyo PLC-XE31 with PT VIP 3AC/380 03 Rev. 2 from OSRAM. I want to try the schematics posted by martinways on 2015-04-11 10:33:04 with following code.

#include <SoftwareSerial.h>
int data;
int rest;
int StatusLamp;
int ledPin = 13;
#define  INIT1  1
#define  INIT2  2
#define  WORK1  3
#define  WORK2  4
#define  TAG_LEN 2
#define  ARR_LEN 1

byte code[TAG_LEN];
int bytes_read = 0;
char ss[] = {0x72, 0x60};
void setup() {
  StatusLamp = INIT1;
  Serial.begin(9600, SERIAL_8E1);
  pinMode(13, OUTPUT);
}
void loop() {
}
void serialEvent() {
  while (Serial.available() > 0)
    data = Serial.read();
  //Serial.flush();
  //delay(200);
  switch ( data )
  {
    case 0x00:  Serial.write(0x00); break; //echo
    case 0x70:  Serial.write(0x70); break;  // Enable comnication
    case 0xF0:  Serial.write(0xF0); Serial.write(0x01); break;// Company ID.
    case 0xF1:  Serial.write(0xF1); Serial.write(0x16); Serial.write(0x11);; break; //Lamp driver ID
    case 0xF3:  Serial.write(0xF3); Serial.write(0x00); break;
    case 0xF2:  Serial.write(0xF3); Serial.write(0x64); break;
    case 0xF4:  Serial.write(0xF4); Serial.write(0x80); break;
    case 0xF6:  Serial.write(0xF6); Serial.write(0x02); break;
    case 0xFA:  Serial.write(0xFA); Serial.write(0x60); break;
    case 0xFB:  Serial.write(0xFB); Serial.write(0x80); break;
    //case (0x72 && 0x60):  Serial.write(0x72); Serial.write(0x60); break;
    case 0xF5:  Serial.write(0xF5); Serial.write(0x01); break;
    default  :  func_2hex_read(data); break;
  }
}
void func_2hex_read(int data) {

  digitalWrite(ledPin, HIGH);
}
void software_Reset()
// Restarts program from beginning but
// does not reset the peripherals and registers
{
  asm volatile ("  jmp 0");
}

My wonder is what pin 2 is for? I do not understand what is written there.

Thank you!

Підвал форуму