Mirror and Don't mirror - problem

SpokePOV kit for bikes

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Kama
 
Posts: 6
Joined: Sat May 30, 2009 1:02 am

Mirror and Don't mirror - problem

Post by Kama »

Hi,

Why at mirror inclusion to the programmed image the shone strip is added? Look the attached screenshot. At normal inclusion (not mirror) everything is all right. How to get rid of it?

Regards
Attachments
555.JPG
555.JPG (61.73 KiB) Viewed 3970 times

Kama
 
Posts: 6
Joined: Sat May 30, 2009 1:02 am

Re: Mirror and Don't mirror - problem

Post by Kama »

Nobody knows? What can be? In pictures of users the same problem - look. On the mirror party there is a parasitic luminescence of LEDs.
Attachments
22.JPG
22.JPG (10.38 KiB) Viewed 3956 times

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Mirror and Don't mirror - problem

Post by adafruit »

hmm, thats a bug we havent heard of before. does it move if you change the magnet position?

Kama
 
Posts: 6
Joined: Sat May 30, 2009 1:02 am

Re: Mirror and Don't mirror - problem

Post by Kama »

Position of a magnet does not correct a question. If the image is located on all area - then this luminescence is not visible. If the image is located not on all area - then there is a parasitic luminescence :(

matajumotors
 
Posts: 46
Joined: Sun Jul 09, 2006 2:00 pm

Re: Mirror and Don't mirror - problem

Post by matajumotors »

There already was solution for this bug on forum, cant find it now. That "line" is last line of previous image or first of next image cant tell for shure =]

But You must change this (in main.c):

Code: Select all

  if (sensor_timer < ((F_CPU/NUM_PIXELS)/256 * STANDBY_TIMEOUT)) {    
    // less than ~5 seconds since last sensor
    PORTA |= 0x1;
    eepromaddr %= NUM_PIXELS * 4;
    spieeprom_read_into_leds(eepromaddr + anim_eeprom_offset, FRONT);
    if (mirror) {
      spieeprom_read_into_leds(anim_eeprom_offset + (1024UL-eepromaddr), BACK);
    } else {
      LATCH_SELECT_PORT |= _BV(BACK);
      NOP; NOP; NOP; NOP;
      LATCH_SELECT_PORT &= ~_BV(BACK);
    }
to this:

Code: Select all

  if (sensor_timer < ((F_CPU/NUM_PIXELS)/256 * STANDBY_TIMEOUT)) {    
    // less than ~5 seconds since last sensor
    PORTA |= 0x1;
    eepromaddr %= NUM_PIXELS * 4;
    spieeprom_read_into_leds(eepromaddr + anim_eeprom_offset, FRONT);
    if (mirror) {
      spieeprom_read_into_leds(anim_eeprom_offset + (1024UL-eepromaddr)-4, BACK);
    } else {
      LATCH_SELECT_PORT |= _BV(BACK);
      NOP; NOP; NOP; NOP;
      LATCH_SELECT_PORT &= ~_BV(BACK);
    }

Kama
 
Posts: 6
Joined: Sat May 30, 2009 1:02 am

Re: Mirror and Don't mirror - problem

Post by Kama »

Thanks. I will try.
Last edited by Kama on Wed Jul 28, 2010 6:10 pm, edited 1 time in total.

Kama
 
Posts: 6
Joined: Sat May 30, 2009 1:02 am

Re: Mirror and Don't mirror - problem

Post by Kama »

matajumotors wrote:There already was solution for this bug on forum, cant find it now. That "line" is last line of previous image or first of next image cant tell for shure =]

But You must change this (in main.c):

Code: Select all

  if (sensor_timer < ((F_CPU/NUM_PIXELS)/256 * STANDBY_TIMEOUT)) {    
    // less than ~5 seconds since last sensor
    PORTA |= 0x1;
    eepromaddr %= NUM_PIXELS * 4;
    spieeprom_read_into_leds(eepromaddr + anim_eeprom_offset, FRONT);
    if (mirror) {
      spieeprom_read_into_leds(anim_eeprom_offset + (1024UL-eepromaddr), BACK);
    } else {
      LATCH_SELECT_PORT |= _BV(BACK);
      NOP; NOP; NOP; NOP;
      LATCH_SELECT_PORT &= ~_BV(BACK);
    }
to this:

Code: Select all

  if (sensor_timer < ((F_CPU/NUM_PIXELS)/256 * STANDBY_TIMEOUT)) {    
    // less than ~5 seconds since last sensor
    PORTA |= 0x1;
    eepromaddr %= NUM_PIXELS * 4;
    spieeprom_read_into_leds(eepromaddr + anim_eeprom_offset, FRONT);
    if (mirror) {
      spieeprom_read_into_leds(anim_eeprom_offset + (1024UL-eepromaddr)-4, BACK);
    } else {
      LATCH_SELECT_PORT |= _BV(BACK);
      NOP; NOP; NOP; NOP;
      LATCH_SELECT_PORT &= ~_BV(BACK);
    }


Only I have not understood - how to make these changes? Where to make changes? The special program is necessary? Help, please :|

Regards

matajumotors
 
Posts: 46
Joined: Sun Jul 09, 2006 2:00 pm

Re: Mirror and Don't mirror - problem

Post by matajumotors »

Personaly i am using AVR Studio, but the easiest way i think, is to download firmware, there will be source files, make file and hex file. edit the main.c in notepad (add "-4"), save and compile it with the make file, search site for tutorial using make files. Then upload new hex to spokepov.

Kama
 
Posts: 6
Joined: Sat May 30, 2009 1:02 am

Re: Mirror and Don't mirror - problem

Post by Kama »

Thanks. If I make changes - all will earn normally? And not the mirror party also will be normal to work?
P.S. How with you to communicate? I have a question concerning your project on a site http://kaspars.id.lv (a lantern for a bicycle). My server gives out an error at letter sending :-( My address kama95@BANNED
P.P.S. Do you speak in Russian? :wink:
Last edited by Kama on Thu Aug 12, 2010 1:31 pm, edited 1 time in total.

matajumotors
 
Posts: 46
Joined: Sun Jul 09, 2006 2:00 pm

Re: Mirror and Don't mirror - problem

Post by matajumotors »

If you will change that, everything will work as it should. =] Da, ja govorju po russki =] mail is working.

tony18183
 
Posts: 28
Joined: Mon Dec 19, 2011 11:19 pm

Re: Mirror and Don't mirror - problem

Post by tony18183 »

Hi

May I know how to upload the new firmware into Spokepov with USBtiny?

Locked
Please be positive and constructive with your questions and comments.

Return to “SpokePOV (discontinued)”