Image conversion software
Moderators: Chuckt, Garth, bitfogav
-
- semi-newbie
- Posts: 12
- Joined: Wed Jul 02, 2014 7:30 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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.
I think there is a difference in the code between the 2 programs.
Brad thank you for your patience.
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.
I think there is a difference in the code between the 2 programs.
Brad thank you for your patience.
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
No problem, happy to help.
Could you also post you original image that you have been importing into the conversion programs?
Could you also post you original image that you have been importing into the conversion programs?
-
- semi-newbie
- Posts: 12
- Joined: Wed Jul 02, 2014 7:30 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
Hi Brad,
Following image used to test 16 x 16.
Thank you
Following image used to test 16 x 16.
Thank you
- Attachments
-
- Image_teste 16x16.png (133 Bytes) Viewed 21417 times
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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
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
-
- semi-newbie
- Posts: 12
- Joined: Wed Jul 02, 2014 7:30 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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
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
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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.With the option left to right is OK! Does not work with the option of top-down.
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
-
- semi-newbie
- Posts: 12
- Joined: Wed Jul 02, 2014 7:30 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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.
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.
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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
-
- semi-newbie
- Posts: 12
- Joined: Wed Jul 02, 2014 7:30 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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 ...
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 ...
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
Let me know how you go
-
- semi-newbie
- Posts: 12
- Joined: Wed Jul 02, 2014 7:30 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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
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
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
How do you have the 74595's connected? are they cascaded together?
-
- semi-newbie
- Posts: 12
- Joined: Wed Jul 02, 2014 7:30 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
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
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
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
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
If you don't know what Voltage your country is using, you shouldn't be doing electronics
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Image conversion software
Excellent work bitfogav, that should certainly be a huge help for your project ORB, be sure to post back with your results!
Who is online
Users browsing this forum: No registered users and 1 guest