# 5 Bit Barker Code

**URL:** <https://discourse.processing.org/t/5-bit-barker-code/31141>\
**Category:** Coding Questions\
**Created:** [July 9, 2021, 4:34pm UTC](https://discourse.processing.org/t/5-bit-barker-code/31141 "2021-07-09T16:34:14Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [July 14, 2021, 4:35am UTC](https://discourse.processing.org/t/5-bit-barker-code/31141/21 "2021-07-14T04:35:40Z")

</div>

Thanks for everyone for help this code has replaced hardware it’s apart of something I am planning to have fun with (autocorrelation and matched filter)

I have built this project years ago using microcontroller Z80 and a lot of logic integrated circuits

 ![IMG_20210714_081855](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3ad43e6e43ec97735a8eb56069a1dd61b968fc9f.jpeg)

 ![IMG_20210714_081744](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/e7180e1b3ed4bffd5e437951947574a3d711dc44.jpeg)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [July 16, 2021, 12:25am UTC](https://discourse.processing.org/t/5-bit-barker-code/31141/22 "2021-07-16T00:25:27Z")

</div>

![pulscompression.big](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/f878e7467e550605aef500f5f789896609d3d5d1.gif)

![kor7](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/98627cd3ef0ee6228ebf7d86a413e800e3af9179.gif)

[https://www.radartutorial.eu/08.transmitters/Barker%20Code.en.html](https://www.radartutorial.eu/08.transmitters/Barker%20Code.en.html)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [July 19, 2021, 2:42am UTC](https://discourse.processing.org/t/5-bit-barker-code/31141/23 "2021-07-19T02:42:52Z")

</div>

@glv

Thank you very much for all your efforts

And be absolutely sure that the reward is much greater than what you offer

you are very great person

good luck

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [August 2, 2021, 10:14am UTC](https://discourse.processing.org/t/5-bit-barker-code/31141/24 "2021-08-02T10:14:58Z")

</div>

@paulgoux

hi how are you

i made other version of your code

```auto

int i, j;
float counter;
int N =5 ;
float x[]={1, 1, 1,-1, 1};
float y[]={1, 1, 1,-1, 1};

int buffer;
  for (buffer = -N + 1; buffer< N; buffer++){
 counter = 0;
    for (i=0; i<N; i++)
    {
      j = i + buffer;
      if ((j < 0) || (j >= N)) 
        continue;
      else
  counter += (x[i] * y[j]);
   
  }
 println( counter );

}

```

thanks again for you

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [December 22, 2021, 5:05pm UTC](https://discourse.processing.org/t/5-bit-barker-code/31141/25 "2021-12-22T17:05:24Z")

</div>

![Barker5](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3668a13d894cc6bfb6ee8206f985436017a9692e.jpeg)

[Previous page](https://discourse.processing.org/t/5-bit-barker-code/31141.md?page=1)
