[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Brads Electronic Projects Forum • Image conversion software - Page 2
Page 2 of 3

Re: Image conversion software

Posted: Thu Jul 10, 2014 7:36 am
by ORB11
hi Brad,

The problem is that when I select the Top to Bottom option with a 16 x 16 image, image conversion is different compared to the program (POV BIG GRAPHIC CONVERTER "one chip")

Follows the same image converted with 2 programs below.




POV CONVERTER BIG GRAPHIC "one chip" image = 16 x 16

correct Image


const RedData(32) as byte = (%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000001,%00000001,%

00000001,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000,%00000000,%11000000,%11000000,%11000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000)


const GreenData(32)as byte =(%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000,%00000000,%00011100,%00011100,%00011100,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000)


const BlueData(32) as byte =(%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00011100,%00011100,%

00011100,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000)




'////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Arduino and Swordfish Graphic Converter image = 16 x 16


incorrect Image

const RedData(32) as byte = (%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000011,%10000000,%00000011,%10000000,%00000011,%

10000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000)


const GreenData(32)as byte =(%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000,%00000000,%00000011,%10000000,%00000011,%10000000,%00000011,%10000000,%00000000,%00000000,%

00000000,%00000000)


const BlueData(32) as byte =(%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000011,%10000000,%

00000011,%10000000,%00000011,%10000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%

00000000,%00000000)

NOTE: The same image 16 x 16 presents different binary conversion. :shock:

I think there is a difference in the code between the 2 programs.

Brad thank you for your patience. :)

Re: Image conversion software

Posted: Thu Jul 10, 2014 12:58 pm
by brad
No problem, happy to help.

Could you also post you original image that you have been importing into the conversion programs?

Re: Image conversion software

Posted: Fri Jul 11, 2014 7:49 am
by ORB11
Hi Brad,

Following image used to test 16 x 16.

Thank you

Re: Image conversion software

Posted: Mon Jul 14, 2014 9:07 pm
by brad
Sorry for the late reply, I have been quite busy these last few days!

Thanks for posting your image. I guess what I can say is that the latest version of my program is designed to allow you to have images that are either very wide or very tall and so this is why it has the option of scanning top to bottom or left to right.

It can also be quite handy in that it can allow you to scan in an image and have it drawn on whatever LED display you are using in just about any scanning technique that you are using to draw your image on the LEDs.

So I guess in your case, you just need to make sure that you select the left to right option :)

Re: Image conversion software

Posted: Tue Jul 15, 2014 12:03 pm
by ORB11
Hi Brad,

With the option left to right is OK! Does not work with the option of top-down.

Please give me a hint of what can be changed in the code for the option from the top to down. :?

Thank you

Re: Image conversion software

Posted: Wed Jul 16, 2014 11:45 am
by brad
With the option left to right is OK! Does not work with the option of top-down.
Well it all depends on how you want your picture to be displayed, for your picture to display correctly with your circuitry, you need to use the left/right option BUT if your scanning technique for your circuit was different, you might need to use the top/bottom method instead.

So I guess what I am saying is that you will either select left/right OR top/bottom depending on which one of those suits your requirements :)

Re: Image conversion software

Posted: Wed Sep 03, 2014 8:41 am
by ORB11
hi Brad,

I'm working on a new project of a Christmas tree POV, and also with a new problem.
Know you've made ​​a POV with 32-bit image, it is so difficult to transform a data bus 8 bits sequentially for 32-bit.
Could you help me with example code in the PIC MCU and the basic hardware using 74HC373.

Thanks for any help Brad.

Re: Image conversion software

Posted: Thu Sep 04, 2014 9:59 pm
by brad
ORB11 wrote:hi Brad,

I'm working on a new project of a Christmas tree POV, and also with a new problem.
Know you've made ​​a POV with 32-bit image, it is so difficult to transform a data bus 8 bits sequentially for 32-bit.
Could you help me with example code in the PIC MCU and the basic hardware using 74HC373.

Thanks for any help Brad.

Now that is a very involved question! I can help you, but I wouldn't have the time to come up with a complete circuit and code for you :)

Let's start with this - I would recommend that you use some 74595 chips (rather than 74373 chips). It greatly simplifies your PCB design since you will be sending data in serial rather than parallel. As a starting point - check out my DigiPixel project schematic. This will give you a good idea as to how you can use the 74595's to send data through to multiple LED's

Re: Image conversion software

Posted: Fri Sep 05, 2014 8:01 am
by ORB11
Hi Brad,

Thank you for feedback.

  I'll try to implement with the 74595, even not having much experience with this type of serial chip. :?

Thank you ...
:D

Re: Image conversion software

Posted: Sun Sep 07, 2014 9:43 pm
by brad
Let me know how you go :)

Re: Image conversion software

Posted: Thu Oct 16, 2014 11:21 am
by ORB11
Hi Brad,

I'm already trying for some time to implement the SPI code for 74HC595, but only got to 8 bits.
I think I will not get finished in time for Christmas. :(
I have not found code example in digi-pixel.
Sorry if I'm asking too much, but could you pass me the code to send 32 bits to the 74HC595? I'm using the mikroBasic compiler mikroelectronica.
  Thanks for all the help

Re: Image conversion software

Posted: Thu Oct 16, 2014 9:18 pm
by brad
How do you have the 74595's connected? are they cascaded together?

Re: Image conversion software

Posted: Fri Oct 17, 2014 8:06 am
by ORB11
Hi Brad,

Thanks for the feedback

Yes I am using the SPI library of mikroBasic compiler with the PIC18F4550 cascaded 74HC595, but examples of the compiler only have 8-bit transmission.
You would have some connection to 32-bit transmission in any programming language for example only ??

thank you

Re: Image conversion software

Posted: Fri Oct 17, 2014 8:00 pm
by bitfogav
There is a MikroBasic Library for 74595 which supports upto four 74595's, you can find it here - MikroBasic shift register.
The Library Help File will explain how to use/install the Library into MikroBasic, read the Help File on the webpage,
it will also explain how to setup everything and send the data for all four shift registers, there is even circuit diagrams etc within the download.

Here is an example of connecting four 74595's
four74595s.jpg
four74595s.jpg (75.53 KiB) Viewed 21115 times

Re: Image conversion software

Posted: Sun Oct 19, 2014 9:21 pm
by brad
Excellent work bitfogav, that should certainly be a huge help for your project ORB, be sure to post back with your results!