Image conversion software

Post here to discuss the One Chip POV Display

Moderators: Chuckt, Garth, bitfogav

ORB11
semi-newbie
semi-newbie
Posts: 12
Joined: Wed Jul 02, 2014 7:30 am

Re: Image conversion software

Post by ORB11 » Thu Jul 10, 2014 7:36 am

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. :)

User avatar
brad
Site Admin
Site Admin
Posts: 2576
Joined: Fri Mar 26, 2010 10:30 pm

Re: Image conversion software

Post by brad » Thu Jul 10, 2014 12:58 pm

No problem, happy to help.

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

ORB11
semi-newbie
semi-newbie
Posts: 12
Joined: Wed Jul 02, 2014 7:30 am

Re: Image conversion software

Post by ORB11 » Fri Jul 11, 2014 7:49 am

Hi Brad,

Following image used to test 16 x 16.

Thank you
Attachments
Image_teste 16x16.png
Image_teste 16x16.png (133 Bytes) Viewed 5474 times

User avatar
brad
Site Admin
Site Admin
Posts: 2576
Joined: Fri Mar 26, 2010 10:30 pm

Re: Image conversion software

Post by brad » Mon Jul 14, 2014 9:07 pm

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 :)

ORB11
semi-newbie
semi-newbie
Posts: 12
Joined: Wed Jul 02, 2014 7:30 am

Re: Image conversion software

Post by ORB11 » Tue Jul 15, 2014 12:03 pm

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

User avatar
brad
Site Admin
Site Admin
Posts: 2576
Joined: Fri Mar 26, 2010 10:30 pm

Re: Image conversion software

Post by brad » Wed Jul 16, 2014 11:45 am

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 :)

ORB11
semi-newbie
semi-newbie
Posts: 12
Joined: Wed Jul 02, 2014 7:30 am

Re: Image conversion software

Post by ORB11 » Wed Sep 03, 2014 8:41 am

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.

User avatar
brad
Site Admin
Site Admin
Posts: 2576
Joined: Fri Mar 26, 2010 10:30 pm

Re: Image conversion software

Post by brad » Thu Sep 04, 2014 9:59 pm

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

ORB11
semi-newbie
semi-newbie
Posts: 12
Joined: Wed Jul 02, 2014 7:30 am

Re: Image conversion software

Post by ORB11 » Fri Sep 05, 2014 8:01 am

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

User avatar
brad
Site Admin
Site Admin
Posts: 2576
Joined: Fri Mar 26, 2010 10:30 pm

Re: Image conversion software

Post by brad » Sun Sep 07, 2014 9:43 pm

Let me know how you go :)

ORB11
semi-newbie
semi-newbie
Posts: 12
Joined: Wed Jul 02, 2014 7:30 am

Re: Image conversion software

Post by ORB11 » Thu Oct 16, 2014 11:21 am

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

User avatar
brad
Site Admin
Site Admin
Posts: 2576
Joined: Fri Mar 26, 2010 10:30 pm

Re: Image conversion software

Post by brad » Thu Oct 16, 2014 9:18 pm

How do you have the 74595's connected? are they cascaded together?

ORB11
semi-newbie
semi-newbie
Posts: 12
Joined: Wed Jul 02, 2014 7:30 am

Re: Image conversion software

Post by ORB11 » Fri Oct 17, 2014 8:06 am

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

User avatar
bitfogav
Moderator
Moderator
Posts: 908
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: Image conversion software

Post by bitfogav » Fri Oct 17, 2014 8:00 pm

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 5205 times
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

User avatar
brad
Site Admin
Site Admin
Posts: 2576
Joined: Fri Mar 26, 2010 10:30 pm

Re: Image conversion software

Post by brad » Sun Oct 19, 2014 9:21 pm

Excellent work bitfogav, that should certainly be a huge help for your project ORB, be sure to post back with your results!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest