Chained LED Bar V2

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, salmanfarisvp, violet, jeremy882, crail.lyu969

Post Reply
eknowles
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Sun Jul 29, 2018 7:09 am

Chained LED Bar V2

Post by eknowles » Sun Jul 29, 2018 7:21 am

Has anyone been able to successfully chain two or more v2 LEB Bars? I've modified the GitHub code using the MY9221 datasheet and these examples, which do support chaining: https://github.com/intel-iot-devkit/upm ... src/my9221

But I've never been able to light more than a single bar.

seeed techsupport team
Staff
Staff
Posts: 44
Joined: Mon Mar 19, 2018 11:40 am

Re: Chained LED Bar V2

Post by seeed techsupport team » Mon Jul 30, 2018 6:15 pm

Thank you for your suggestion. If any user has had similar experience, you can go to github to share, thank you.Regards!

bill.yu
Junior-7
Junior-7
Posts: 735
Joined: Mon Apr 02, 2018 11:05 am

Re: Chained LED Bar V2

Post by bill.yu » Tue Jul 31, 2018 1:44 pm

Hi there,

the J3 and J4 are connected to the same signals. So we can connect led1 J2(DO,DCKO,VCC,GND) to led2 J3(DI,DCKO,VCC,GND) and connect led1 to Seeeduino.

you also can connect the led1 J3(DI,DCKO,VCC,GND) to led2 J4(DI,DCKO,VCC,GND) and connect led1 to seeeduino. the led bars will display the same info. thanks.

Image

Bill

eknowles
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Sun Jul 29, 2018 7:09 am

Re: Chained LED Bar V2

Post by eknowles » Tue Aug 07, 2018 6:04 am

Thank you, I'm aware of how to chain the modules electrically.

My actual problem is that a) the supplied library does not support chaining (even though the product description specifically mention the module's chainability) and b) even though I've adapted a multi-MY9221 library for use with the Arduino and have thoroughly verified that adaptation against the MY9221 datasheet, I can only get one bar to light. So again, I'm wondering if anyone else (including the manufacturer) has succeeded in chaining these modules, and if so, if they can post the code. (Alpha is OK -- I'll be happy to clean it up and post the result.)

eknowles
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Sun Jul 29, 2018 7:09 am

Re: Chained LED Bar V2

Post by eknowles » Tue Aug 07, 2018 6:09 am

Just to clarify your post, specifically
So we can connect led1 J2(DO,DCKO,VCC,GND) to led2 J3(DI,DCKO,VCC,GND)
, I believe you meant to write
So we can connect led1 J2(DO,DCKO,VCC,GND) to led2 J3(DI,DCKI,VCC,GND)
correct?

bill.yu
Junior-7
Junior-7
Posts: 735
Joined: Mon Apr 02, 2018 11:05 am

Re: Chained LED Bar V2

Post by bill.yu » Tue Aug 07, 2018 6:58 pm

Hi there, Yes, you are right. Sorry for my typo. thanks.
Bill

eknowles
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Sun Jul 29, 2018 7:09 am

Re: Chained LED Bar V2

Post by eknowles » Fri Sep 07, 2018 1:30 am

It appears that the modules are defective and cannot be chained. Odd, the controller definitely has the option and the required timing is well within the Arduino's capability. I don't have an oscilloscope so I can't see the shifted-out D0 and DCK0 signals, but perhaps one or both aren't routed from the controller correctly.

If I manage to beg/borrow/steal an oscilloscope I'll post further information.

Post Reply