# How to pair 2 bleepeds together

**URL:** <https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166>\
**Category:** Arduino\
**Created:** [January 5, 2018, 8:49am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166 "2018-01-05T08:49:31Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 7:08am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/22 "2018-01-08T07:08:45Z")

</div>

BTW: The TTL voltage for the HJ580 module is 3.3V. You shouldn’t wire mega to HJ580 directly. add a resistor (330 ohm) between mega TX and HJ580 RX.

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 7:10am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/23 "2018-01-08T07:10:35Z")

</div>

hj580

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 7:15am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/24 "2018-01-08T07:15:36Z")

</div>

i connect them in such a way  
3.3V to Vcc on hj580  
ground to gnd on hj580  
ground to p14 on hj580 (to become slave)  
ground to p00 on hj580 (to enter config mode)  
tx to rx on hj580(with a 330ohm resistor)  
rx to tx on hj580 (without resistor)  
3.3v to p06 on hj580(to wake up)

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 7:24am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/25 "2018-01-08T07:24:30Z")

</div>

The module should be peripheral only module.

> [@Jaydon](#):
>
> 3.3v to p06 on hj580(to wake up)

I think it’s the issue. GND to P06 for wake up instead.

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 7:26am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/26 "2018-01-08T07:26:24Z")

</div>

sorry, i am connecting it to ground.  
if it is peripheral only, meaning that it cannot be configured? then how can i pair it up with blepad so that it can receive data from blepad(central)

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 7:30am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/27 "2018-01-08T07:30:26Z")

</div>

You can still configure other params. But you should check [the manual](https://github.com/AprilBrother/BLEPad/raw/master/hardware/hj580-peripheral.pdf) for how to input AT command. Can you read the manual in Chinese?

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 7:36am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/28 "2018-01-08T07:36:41Z")

</div>

I tried to configure it and uploaded the sketch with Atcommand, this is my output [https://m.imgur.com/gallery/q1aYj](https://m.imgur.com/gallery/q1aYj)

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 7:40am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/29 "2018-01-08T07:40:06Z")

</div>

I will get one HJ580 similar with yours tomorrow. I will try it when I got it.

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 8:12am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/30 "2018-01-08T08:12:13Z")

</div>

I think the baud rate is 19200 for your original module. Please try it.

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 10:46am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/31 "2018-01-08T10:46:49Z")

</div>

i changed the baudrate to 19200, it doesnt work. i tried other values as well

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 10:48am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/32 "2018-01-08T10:48:12Z")

</div>

the hj580 keeps on receiving weird character even though there it doesnt pair with anything

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 9, 2018, 2:17am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/33 "2018-01-09T02:17:21Z")

</div>

did you also edit the sketch to baud rate 19200? could you please paste the sketch you edited?

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 9, 2018, 2:23am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/34 "2018-01-09T02:23:12Z")

</div>

this is my edited sketch [https://imgur.com/gallery/ssEap](https://imgur.com/gallery/ssEap)

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 9, 2018, 3:12am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/35 "2018-01-09T03:12:22Z")

</div>

I got a HJ580 module today. But the firmware is customize for us and the baud rate is 9600. It works fine with the sketch ATCommand.

But I don’t know how to test your HJ580 module.

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 9, 2018, 3:19am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/36 "2018-01-09T03:19:20Z")

</div>

you just uploaded it and it works?

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 9, 2018, 3:19am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/37 "2018-01-09T03:19:35Z")

</div>

is there any way to change firmware? are you connecting the p00 to digital pin 5, p14 to digital 11, and p03 to digital pin 4, p06 to digital pin 8?

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 9, 2018, 3:20am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/38 "2018-01-09T03:20:33Z")

</div>

No. DA14580 is designed for OTP (one-time-programming). You can’t change the firmware for it.

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 9, 2018, 3:21am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/39 "2018-01-09T03:21:40Z")

</div>

are you connecting the p00 to digital pin 5, p14 to digital 11, and p03 to digital pin 4, p06 to digital pin 8?

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 9, 2018, 3:40am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/40 "2018-01-09T03:40:26Z")

</div>

it’s same with BLEPad

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 9, 2018, 6:50am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/41 "2018-01-09T06:50:24Z")

</div>

can you send me the link you purchase your hj580?

[Previous page](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166.md?page=1)

[Next page](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166.md?page=3)
