It is currently 20 Oct 2017 04:57

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 07 Aug 2017 11:37 
Offline

Joined: 14 Mar 2016 10:24
Posts: 94
Hi,

got this pcb working:
Attachment:
sku_399381_2.jpg
sku_399381_2.jpg [ 58.61 KiB | Viewed 2296 times ]


I'using AVR ( Arduino2560 ) and mikroPascal.

My code is based on this C-coded project in libStock:

https://libstock.mikroe.com/projects/vi ... ed-amp-key

in combination with the TM1638 datasheet for more explenation.

I don't know C, but with 'reading' the C-code with some common-sence, the help of the datasheet
and modiyfing I managed to get things work!

Handling the STB-bit correctly, is a big key!


Attachment:
20170807_114801.jpg
20170807_114801.jpg [ 935.3 KiB | Viewed 2296 times ]



Posted video of pcb working...

https://www.youtube.com/watch?v=1q_H-IFK3f4


All regards!

_________________
To DIY or not to DIY


Top
 Profile  
 
PostPosted: 08 Aug 2017 15:50 
Offline

Joined: 14 Mar 2016 10:24
Posts: 94
Yeah! Reading-Keys functioning too!

The DIO-pin on the TM1638 is bi-directional.

On Arduino I'm using also 1 pin, it behaviour is depending on the code.

When things finished/running-smoot, I will post code here.

All regards. Marcel

_________________
To DIY or not to DIY


Top
 Profile  
 
PostPosted: 08 Aug 2017 16:01 
Offline

Joined: 14 Mar 2016 10:24
Posts: 94
There's som isue with the rising-time of the signal coming from TM1638 data-out.

So, after clockpulse 1-to-0, a delay_us(2) is needed.

More to come...

_________________
To DIY or not to DIY


Top
 Profile  
 
PostPosted: 23 Aug 2017 21:10 
Offline

Joined: 14 Mar 2016 10:24
Posts: 94
Got the key-reading-methode working.

Will post it at the moment the code has been completed.
( I'm not a profesional )

Please be patient...

_________________
To DIY or not to DIY


Top
 Profile  
 
PostPosted: 23 Aug 2017 21:17 
Offline

Joined: 14 Mar 2016 10:24
Posts: 94
Ordered this one.

More buttons!

Actuately: the code I allready wrote for the 8-button-pcb, just needs some more code due of parameters/constants.


Attachments:
index.jpg
index.jpg [ 10.51 KiB | Viewed 604 times ]

_________________
To DIY or not to DIY
Top
 Profile  
 
PostPosted: 30 Aug 2017 12:06 
Offline

Joined: 14 Mar 2016 10:24
Posts: 94
The 16-button pcbs ha've arived. ( no LED's on it ).

The wirering is a bit different.

Controlling the 7-segments, is not going ok at the moment.
It should display: 0123 4567...
Attachment:
tm1638 16 01b.jpg
tm1638 16 01b.jpg [ 54.8 KiB | Viewed 581 times ]




Reading the 16-buttons and display it in the 32-bit pulse-train on my LCD goes ok:
( see the '1' at position [2] of the pulse train. this is the most left/upper button )

Attachment:
tm1638 16 02b.jpg
tm1638 16 02b.jpg [ 53.28 KiB | Viewed 581 times ]



This means that the wiring ( DIO, STB and CLK ) is ok.

Reading takes Write-command followed by changing the Arduino-pin DIO direction
( temporary from write to read ) etc etc...

Proberly the "adressing"of the 7-segments differs from the 8-button-pcb.

To be continued...

_________________
To DIY or not to DIY


Top
 Profile  
 
PostPosted: 30 Aug 2017 12:16 
Offline

Joined: 14 Mar 2016 10:24
Posts: 94
Here you see the positions of the scanned buttons in the scan-train [00..31]




Attachment:
tm1638 16 03.jpg
tm1638 16 03.jpg [ 12.84 KiB | Viewed 581 times ]

_________________
To DIY or not to DIY


Top
 Profile  
 
PostPosted: 25 Sep 2017 15:42 
Offline

Joined: 14 Mar 2016 10:24
Posts: 94
For the time being: I'm not gonna put more time in these 16-button board, to get hte 7-segments working properly.

For my project, the 8-button version will do!
( got this one fully funcional )

Kind regards! Marcel

_________________
To DIY or not to DIY


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: