You are not logged in.

#1 2019-09-25 13:03:45

F.m
Member
Registered: 2017-12-22
Posts: 59

young optics NVM Hex cammands needed

any body can help me for hex commands for nvm light engine from young optics. for example: projector on/off    led on/off and led amperage settings.
i attach the data sheet commands here, it includes i2c commands but there are not the complete commands. i just want to use nano dlp itself to send the commands


User I2C Command set (I2C bus speed

100 kbit/s

I2C commands conform to
the Philips I2C specification)
Command format:
Slave device address:0x1B [0x37 (Read) / 0x36 (Write)]
1st Byte = Command
2nd Byte = Data [0]
3rd Byte = Data [1]
(1) LED Current Setting
Command: 0x54
Data [0] Reserved ( set to 0x00)
Data [1] Reserved ( set to 0x00)
Data [2] LED current parameter (LSByte)
Data [3] LED current parameter (MSByte)
Data [4] Reserved ( set to 0x00)
Data [5] Reserved ( set to 0x00)
LED Current Formula=[(Bit value+1)/1024] x 6 For Bit value=1 to 1023
The step of current setting is 5.8593mA.\Example as below,
If the UV LED current is 5000mA then the setting value is 0x354 (5000/5.8593=
852 = 0x354).
Command: 0x54 // Write LED current
Data[0] = 0x00 //
Data[1] = 0x00 //
Data[2] = 0x54 // LED current parameter (LSB)
Data[3] = 0x03 // LED current parameter (MSB)
Data[4] = 0x00 //
Data[5] = 0x00 //
(2) LED Enable / Disable
Command : 0x52 // Write LED Enable / Disable
Data[0] = 0x02 // LED enabled
Command : 0x52 // Write LED Enable / Disable
Data[0] = 0x00 // LED disabled
Note

Please make sure the video signal presented, otherwise the LED will be
turn off automatically.
(3) Read LED Junction Temperature
Step 1: write command
Command: 0xD6
Date 08/10/2017
NVM UV Engine User’s Guide – Version 3.1
Page 18 of 31
Step 2: read data
Data [0] LED Junction Temperature (LSByte)
Data [1] LED Junction Temperature (MSByte)
LED Junction Temperature need to be calculated according to LED On/Off and
current status
If LED is on:
LED_Junction_Temp = (Data[1]*256 + Data[0])/10 + DW*Vol*LED_I/1000
Else if LED is off:
LED_Junction_Temp = (Data[1]*256 + Data[0])/10
Note:
- DW is the LED thermal resister is 1.6 (°C/W)
- Vol is the LED operating voltage is about 4V
- LED_I is the LED current (mA)
(4) Projector Image Flip Setting
Command : 0x14 // Write Projector Image Flip Setting
Data[0] = 0x00 // No Flip
Command : 0x14 // Write Projector Image Flip Setting
Data[0] = 0x02 // Horizontal Flip
Command : 0x14 // Write Projector Image Flip Setting
Data[0] = 0x04 // Vertical Flip
Command : 0x14 // Write Projector Image Flip Setting
Data[0] = 0x06 // Horiontal and Veritcal Flip
(5) Read Light Sensor Value
Command format
Slave device address: 0x39 [0x73 (Read)]
1st Byte = Command
2nd Byte = Data [0]
3rd Byte = Data [1]
Step 1: write command
Command: 0xAC
Step 2: read data
Data [0] Light sensor value (LSByte)
Data [1] Light sensor value (MSByte)
Light_Sensor = (Data[1]*256 + Data[0])
Note: Suggest reading the light sensor value with a fixed pattern. Light sensor
value may differ with different patterns.
Date 08/10/2017
NVM UV Engine User’s Guide – Version 3.1
Page 19 of 31
(6) Projector Source and Test Patterns Selection
a. HDMI
Command : 0x05 // Projector input source selection
Data[0] = 0x00 // HDMI input source
b. Ramp
Command : 0x05 // Projector input source selection
Data[0] = 0x01 // Test Pattern
Command : 0x0b // Pattern type selection
Data[0] = 0x01 //Ramp
Data[1] = 0x70
Data[2] = 0x00
Data[3] = 0xff
Data[4] = 0x00
Data[5] = 0x00
c. Checker
Command : 0x05 // Projector input source selection
Data[0] = 0x01 // Test Pattern
Command : 0x0b // Pattern type selection
Data[0] = 0x07 //Checker
Data[1] = 0x70
Data[2] = 0x04
Data[3] = 0x00
Data[4] = 0x04
Data[5] = 0x00

Offline

#2 2019-09-26 04:08:57

Yianni-VJ
Member
Registered: 2016-05-24
Posts: 88

Re: young optics NVM Hex cammands needed

Glad to see others using DLP light engines for 3D printing !
Adam from this forum, wrote a python script to send the commands via I2C to Young Optics module.
See if you can contact him.

Also, you will want to read the factory image file for the mask. You need to do that with SPI mode.
Let me know if you need help with that.

Offline

#3 2019-09-26 09:48:43

F.m
Member
Registered: 2017-12-22
Posts: 59

Re: young optics NVM Hex cammands needed

Thank you very much. sure, i need help for both.

Last edited by F.m (2019-09-26 09:49:34)

Offline

#4 2019-09-26 09:54:03

F.m
Member
Registered: 2017-12-22
Posts: 59

Re: young optics NVM Hex cammands needed

but at first order, i need to control it via usb to serial by sending commands with nanodlp.
i think by sniffing the com port which their software using to control the device, commands can be extracted.

Offline

#5 2019-09-26 23:29:55

sidastig
Member
Registered: 2019-08-23
Posts: 1

Re: young optics NVM Hex cammands needed

I'm looking for the same answer. Thanks for posting this F.m
Yianni-VJ is there any public documentation to read the factory image for the mask in SPI mode?
Any help would be greatly appreciated.

Offline

#6 2019-09-26 23:44:22

Yianni-VJ
Member
Registered: 2016-05-24
Posts: 88

Re: young optics NVM Hex cammands needed

sidastig: The only public documentation I m aware is the sample code attached to the PDF document you received from Young Optics.

Not having programming know-how, I commissioned this task to a third party. They had some hard time, they claimed the sample code had lots of bugs. They were successful though, they read the png file. I think I might have kept the source files they used I have to look for them. Contact me privately to exchange notes if you like.

Offline

#7 2019-09-29 13:20:23

F.m
Member
Registered: 2017-12-22
Posts: 59

Re: young optics NVM Hex cammands needed

any idea for HEX codes, to control uv led amperage, turn off/ on led and projector?

Offline

#8 2019-09-30 05:52:11

peaceblackhair
Member
Registered: 2018-12-11
Posts: 16

Re: young optics NVM Hex cammands needed

Hello,
I'm using a young optics projectors too but im not commanding with nanodlp.There is 2 way to use young optics projectors.
1)via USB
2)Direct I2C communicate (you need a cable for this).

if you want to control via usb there is a dll which name is cyusbserial you can use it.(you download from cypress offical web site.)

But i think they changed light source or something in projector.Because my older projectors work better then the newer ones.

Offline

#9 2019-10-03 20:35:14

F.m
Member
Registered: 2017-12-22
Posts: 59

Re: young optics NVM Hex cammands needed

Hi peaceblackhair, then how do you send commands to your projector? do you use relays for turning on/off the projector and LED?

Offline

#10 2019-10-04 07:31:34

peaceblackhair
Member
Registered: 2018-12-11
Posts: 16

Re: young optics NVM Hex cammands needed

F.m wrote:

Hi peaceblackhair, then how do you send commands to your projector? do you use relays for turning on/off the projector and LED?

just read carefully projector datasheet.in the datasheet they explained everything well.you dont need any relay or something.

Offline

#11 2019-10-06 07:10:02

F.m
Member
Registered: 2017-12-22
Posts: 59

Re: young optics NVM Hex cammands needed

i read it word by word, for example how do you turn off the projector? you need to remove the jumper by hand? so you need to use relay. if it is possible share your method.
if you control it by provided software, it is not the case i pursue.

Last edited by F.m (2019-10-06 07:11:37)

Offline

#12 2019-10-07 06:34:23

peaceblackhair
Member
Registered: 2018-12-11
Posts: 16

Re: young optics NVM Hex cammands needed

F.m wrote:

i read it word by word, for example how do you turn off the projector? you need to remove the jumper by hand? so you need to use relay. if it is possible share your method.
if you control it by provided software, it is not the case i pursue.

I'm controlling with my own software but not directly via nanodlp.

If you are using windows you can refactor the controlling software and get the codes.It's written in C# or Vb.net as i remember.

smile))

Offline

Board footer

Powered by FluxBB