Go Down

Topic: Sure Electronics new 32x16 bi-color display: 3216 RG -Cont. from read only forum (Read 66671 times) previous topic - next topic

eslin


I have to mention this, because I've been banging my head against this for days: The latest version(s) of this library will not work on the Arduino Leonardo! I have a Duemilanove and it works fine on that. Until the lightbulb popped up over my head and I decided to try it on the Duemilanove I was ready to pull out what little hair I have left!

Thanks very much for all the hard work put in by everyone here.


Same goes for the arduino micro, I have been trying to get it to work now, but then remembered this post about the leonardo.
Im guessing but could it be that the Leonardo and Micro has shared pins with Analog pins?

--
eslin

eslin



I have to mention this, because I've been banging my head against this for days: The latest version(s) of this library will not work on the Arduino Leonardo! I have a Duemilanove and it works fine on that. Until the lightbulb popped up over my head and I decided to try it on the Duemilanove I was ready to pull out what little hair I have left!

Thanks very much for all the hard work put in by everyone here.


Same goes for the arduino micro, I have been trying to get it to work now, but then remembered this post about the leonardo.
Im guessing but could it be that the Leonardo and Micro has shared pins with Analog pins?

--
eslin

So its about this portmanipulation.
http://www.arduino.cc/en/Reference/PortManipulation

Im trying to figure this out, but lacking super skills in c/c++ my hope is kinda low.

It's been almost a year since I've touched this library, and while I was using 3216 displays before, I am doing a new project using 2x 3208 displays.    On the 3208 displays, there is a switch to indicate which CS the display is (1,2,3,4).  I was wondering how you would configure the library, along with the boards, to support >1 display.

It is my understanding  that you initialize the display as follows:
ht1632c ledMatrix = ht1632c(&PORTD, 7, 6, 4, 5, GEOM_32x16, 2);

this is constructed as follows: port, data pin, wr pin, clk pin, cs pin, geom, and number (number of displays)

While the 3216 displays have hex inverters to distribute the CS signal around, and there is only one CS line, am I correct in assuming that I need to hook up 2 CS lines to the Arduino, for CS1 and CS2, and if so, then how do you specify the line above for 2 displays? 

Would you specify the constructor as such:
Quote
ht1632c ledMatrix = ht1632c(&PORTD, 7, 6, 4, 5, GEOM_32x8, 2)


or would it be some other method?  The CS1, CS2,  CS3, CS4 on the connector confuse me, and unfortunately the sample project here: http://scuola.arduino.cc/en/content/interfacing-arduino-uno-sure-electronics-led-dot-matrix-based-ht1632c-controller only shows one display, even though the sample image shows 2 3208 displays...  I don't know if i still only use 1 CS line, or if I need to run 2 CS traces to the connector, and don't want to waste $ and time trying to build a controller for these just to have it done wrong :(

Thanks!
My first major project (looking for people who would like to help contribute) Bluetooth Sure 32x16 LED Displays!: https://github.com/evanric

canosso

@eslin and other Arduino Leonardo/Micro user


Same goes for the arduino micro, I have been trying to get it to work now, but then remembered this post about the leonardo.
Im guessing but could it be that the Leonardo and Micro has shared pins with Analog pins?
eslin


The Leonardo and Micro have an other chip then the old Atmega368, where the port pin number aren't the same as the normal pin number, similar to Mega2560:
For configuration,
Code: [Select]
ht1632c dotmatrix = ht1632c(&PORTD,7,6,3,4,GEOM_32x16,2), the PD4 is missing, you should use:
Digital Pin 6 (PWM) as  PD7   
Digital pin 12 as  PD6
Digital pin 1 (TX)   as PD3
Digital pin 4 as PD4

But I think it would be easier if working to use
Code: [Select]
ht1632c dotmatrix = ht1632c(&PORTF,7,6,5,4,GEOM_32x16,2)
Analog In 0 as  PF7   
Analog In 1 as  PF6   
Analog In 2 as PF5   
Analog In 3 as PF4

I hope this works.

canosso

http://www.youtube.com/watch?v=eUwgF2n9ooM&feature=player_detailpage#t=7s
http://www.youtube.com/watch?v=NAxbdg8kByU&feature=player_detailpage

Hello,
as there is always a need to use normal images for the matrix, I made a C# program (Visual C# 2010 Express) which imports images and where you can map the colors for using the bitmap with the matrix. Also all kind of installed fonts could be used. The program writes an Arduino sketch which could be uploaded with the Arduino IDE. Additional all functions could be first tested and the whole sketch scripted like a movie.
The sketches are based on Lonewolf's ht1632c library, http://code.google.com/p/ht1632c/

Feel free to download the source code from https://github.com/canosso/MatrixSkripter/

rasco22862

Hi,

I am new in the forum. I have been messing with the display and this library: http://github.com/gauravmm/HT1632-for-Arduino

I managed to scroll some text but the scrolling doesn't look smooth like others. After a while it gives you a headache. I tried to turn off the display before showing the next scrolling line. I think it has to do with the refresh rate but I dont know how to figure it out.

Thanks.

djdanielb

Hi people,
I'm tryng to use this display with arduino 2650 but there is a big problem

Probably is a bug

If I write with a colour ( i.e GREEN ) One string and than I change this string but not the colour the next string doesn't appear complete: some dot are off.

If I change the colour of the second StRING all is OK

So I don't know where is the problem probably inside the code or library

I think that a full clear is need or in some ram of display or variable I don't know.

So someone knows if there is a solution ?
Could someone post or link the LATEST library and the latest sketch working ?
I've just read the old forum and the new but now I've my folder full of file but I'm not sure which is the latest or the best.

Thank you so much

Daniele

pinMode

Is it possible to use this library to combined 4 16x32's to use a dimension of 32x64 for more height rather than width?

https://code.google.com/p/ht1632c/wiki/Documentation

canosso


Is it possible to use this library to combined 4 16x32's to use a dimension of 32x64 for more height rather than width?

https://code.google.com/p/ht1632c/wiki/Documentation

Hello,
that's is quite easy. Change at ht1632c.cpp, line 257-258:
Code: [Select]
x_max = (32 * number) - 1;
  y_max = 15;

to
Code: [Select]
x_max = (32 * number/2) - 1;
  y_max = 31;

steel_sp

Hello everyone!

What better library for 32x16 matrix RG (Sure)? I tested some libs, but which one would be better?

Thanks!

Go Up