Shop OBEX P1 Docs P2 Docs Learn Events
MLX90641 BFC ConfigRegister1 origin setup — Parallax Forums

MLX90641 BFC ConfigRegister1 origin setup

PodionPodion Posts: 90
edited 2014-11-26 21:50 in Accessories
Hello

i try my MLX and it just work fine until i mess whit the factory calibration that is a 16bit.
Now the module work bad...

i try to search on google but they never speak about the ConfigRegister1 original setup.

so if you have one plz send it me factory calibration 0x25 ConfigRegister1 . or if you know a command restore the factory calibration it will be really appreciated!!
MLX90614_simple_demo.zip

note that i change the SLC PIN1 AND SDC PIN2 work good

Thank you

P.O.

Comments

  • DomanikDomanik Posts: 233
    edited 2014-11-25 11:10
    Later today (8 hrs) I can send you a copy of my config reg but it's for a 10 deg. FOV. Do you have a way to write the new data? I don't believe the configreg1 (addr 05) should be a problem to rewrite.
    What were you trying to do?
    Dom.

    edit: Mine's a MLX90614ESF-BCF-000-TU-ND from digikey. (you got lucky!)
  • PodionPodion Posts: 90
    edited 2014-11-25 14:01
    Hey thank you !! I'm very lucky we have the same chip !

    I just use the MLX60614_simple_demo to write the new data.

    I was to curious to explore the capability of the MLXMLX90614 and i start to play whit the setting .... bad idea lol
    I'm little confuse you say that the address for configreg1 05 but wen you run the program it says $25... Anyway if i was capable to bug it I will be able to fix it whit your code. ;-)

    Do you have good experience whit the MLXMLX90614?
  • DomanikDomanik Posts: 233
    edited 2014-11-25 15:19
    I'm using C instead of Spin. In the manual, pg 11 it says the eeprom 0x05 is the control reg. Later on page 17 it says you must use 0x2X + XXXX, anytime you want to read/write the eeprom address to read/write. So yes 0x25 is the correct eeprom location. BTW I think the latest user manual has 52 pages. Older versions are less. I don't have experience with the MLX except to read raw data and to backup into the prop board's eeprom and to read the RAM temp data and comparator levels. It's been on the back burner for a couple of weeks.
    Dom..
  • PodionPodion Posts: 90
    edited 2014-11-25 15:26
    ok if you want you can use the MLX90614_simple_demo that i post in the first post. Using the Serial terminal it will tell you all about your sensor. If you do so just remember that I change the Prop PIN 28,29 to 1,2

    Thank's for the address explanation ;-)
  • DomanikDomanik Posts: 233
    edited 2014-11-25 20:00
    Here's a dump of all 32 locations: Your magic number is $B7F0.. Location $0E, low byte is the SA, $5A.
    eeLoc = 00, val = 9993 
    eeLoc = 01, val = 62E3 
    eeLoc = 02, val = 0201 
    eeLoc = 03, val = F71C 
    eeLoc = 04, val = FFFF 
    eeLoc = 05, val = B7F0 
    eeLoc = 06, val = B172 
    eeLoc = 07, val = B172 
    eeLoc = 08, val = B35B 
    eeLoc = 09, val = B9ED 
    eeLoc = 0A, val = D6F5 
    eeLoc = 0B, val = 0000 
    eeLoc = 0C, val = 8E3C 
    eeLoc = 0D, val = 00D5 
    eeLoc = 0E, val = BE5A 
    eeLoc = 0F, val = 0800 
    eeLoc = 10, val = 0000 
    eeLoc = 11, val = 7E0F 
    eeLoc = 12, val = 0000 
    eeLoc = 13, val = 802E 
    eeLoc = 14, val = 8036 
    eeLoc = 15, val = 1D25 
    eeLoc = 16, val = 00EE 
    eeLoc = 17, val = 3507 
    eeLoc = 18, val = 0000 
    eeLoc = 19, val = 0000 
    eeLoc = 1A, val = 1D4F 
    eeLoc = 1B, val = 8011 
    eeLoc = 1C, val = 280A 
    eeLoc = 1D, val = 216D 
    eeLoc = 1E, val = 82A4 
    eeLoc = 1F, val = B0D2
    
    Dom..
  • PodionPodion Posts: 90
    edited 2014-11-26 09:38
    Thank you Dom!! I will give it a try ! Can you send me the code you use to show all this information about the EEPROM ?
    I ask you this because I think that the code I'm using don't show me really all the data like I see on your post.

    Thank's again !

    P.O.
  • PodionPodion Posts: 90
    edited 2014-11-26 17:53
    I test the code and it's working !!

    Thank you for your help!

    P.O.
  • DomanikDomanik Posts: 233
    edited 2014-11-26 21:50
    Podion wrote: »
    Can you send me the code you use to show all this information about the EEPROM ?
    I ask you this because I think that the code I'm using don't show me really all the data like I see on your post.

    Podion,
    I cleaned up the code and posted it to the Learn forum. If you copy the whole thing into your Simple IDE it should work. You will need to change SCL and SDA from 9, 10 to your pins. Also I'm using an address of 0x5A as you probably do. When I was in the terminal window I used the right mouse button to "select-All" from the menu, then clicked on a blank area with the right button and was able to "copy" to the clipboard. You might do the same to make a record of your contents. Glad to hear you have your device up and running again. I'm still a little hesitant to write data into mine- I know it will only let you do one word transfers, you must write a location to zero before you can write data into it, and it takes 5ms to complete a write. Lots of details to digest first before changing the contents.
    Good Luck,
    Dom..
Sign In or Register to comment.