pawel250 / RGBControllerAndroid

Controller for RGB Led based on ARM microntroller with Bluetooth and Android application.
GNU General Public License v3.0
1 stars 0 forks source link

Help needed #1

Open Allday3D opened 9 years ago

Allday3D commented 9 years ago

Like your app very much. I only don't know how to recieve the sended info (bluetooth) on an arduino? Maybe it's a stupid question but I am new at java and android.

pawel250 commented 9 years ago

You can use source code for ARM cortex M3 and port to Arduino. https://github.com/pawel250/RGBControllerARMfw

The data frame is like below: rys3

I have written press article which describes this project, but is only in polish language. If you want I can send you by email.

Allday3D commented 9 years ago

Hi Pawel,

After a long time, almost 15 year, I try to get back in the world of microprocessing and that is not easy. I find your project very interesting but it seems a difficult project for me to understand for now.

The use of the 32-bit processor (ARM cortex M3) and then port it to the Arduino is for now to complex for me.

So I thought to make it easy if I know what to look for in the data frame. Do I look for seperaters (maybe a comma (,)) or something else? I know that it maybe is a stupid question but I hope you will help me with an example. I mean, is it possible for you to visual the data that is recieved?

And I really like to read the article you wrote which describes this project so if you can send it by email, that would be great.

For what it is worth, many thanks for your time and open source of your great project. Be well, Ray.

Date: Sat, 22 Aug 2015 10:19:55 -0700 From: notifications@github.com To: RGBControllerAndroid@noreply.github.com CC: rahbrok@hotmail.com Subject: Re: [RGBControllerAndroid] Help needed (#1)

You can use source code for ARM cortex M3 and port to Arduino.

https://github.com/pawel250/RGBControllerARMfw

The data frame is like below:

I have written press article which describes this project, but is only in polish language. If you want I can send you by email.

— Reply to this email directly or view it on GitHub.

pawel250 commented 9 years ago

I attached picture in my previous post. This picture represents what means each single byte in frame. First byte with value 0x1 marks beginning of the data frame. Last byte with value 0x3 has similar destination. Each channel contains three bytes, one for red, one for green and one for blue color. In frame are sending two channels. Black color is represented by RGB: 0, 0,0 and white color is 255,255,255;

In file https://github.com/pawel250/RGBControllerARMfw/blob/master/src/stm32f10x_it.c (from line 115) you can find usart interrupt handler which is responsible by reading and parsing all data frame. In line 138, data is successfully read.

Here you have article in polish: http://serwis.avt.pl/manuals/AVT5504.pdf

W dniu 24.08.2015 o 12:58, Ray pisze:

Hi Pawel,

After a long time, almost 15 year, I try to get back in the world of microprocessing and that is not easy. I find your project very interesting but it seems a difficult project for me to understand for now.

The use of the 32-bit processor (ARM cortex M3) and then port it to the Arduino is for now to complex for me.

So I thought to make it easy if I know what to look for in the data frame. Do I look for seperaters (maybe a comma (,)) or something else? I know that it maybe is a stupid question but I hope you will help me with an example. I mean, is it possible for you to visual the data that is recieved?

And I really like to read the article you wrote which describes this project so if you can send it by email, that would be great.

For what it is worth, many thanks for your time and open source of your great project. Be well, Ray.

Date: Sat, 22 Aug 2015 10:19:55 -0700 From: notifications@github.com To: RGBControllerAndroid@noreply.github.com CC: rahbrok@hotmail.com Subject: Re: [RGBControllerAndroid] Help needed (#1)

You can use source code for ARM cortex M3 and port to Arduino.

https://github.com/pawel250/RGBControllerARMfw

The data frame is like below:

I have written press article which describes this project, but is only in polish language. If you want I can send you by email.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/pawel250/RGBControllerAndroid/issues/1#issuecomment-134149158.

Allday3D commented 9 years ago

He Pawel,

Nice, very nice. I see if I can figure this out. Thanks and be well. Ray