Jump to content

Recommended Posts

Posted (edited)

Hi 

I have a question regarding the NG App. 

I have a bunch of Buttons that have a wrong layout of the LEDs. They are Parallel with different direction.

post-10711-0-54288900-1401481865_thumb.p

Now i asked the friends of microkontroller.net for advice and they say that it is possible to make a Array with a 74HCT595 and let them work in a H-Bridge way together and Pulse the two LEDs from each direction. 

 

Is that possible to do with the NG App?

 

Thanks

Novski

 

edit: this is the link. Its German sorry for those who don't understand... http://www.mikrocontroller.net/topic/335089?goto=3674282#3674282

Edited by novski
Posted

Regarding the German discussion i linked above i now know:

Charlyplexing is not possible with HC595 because the Tristate OE! is one signal for all outputs. I didn't find a Chip with multiple OE until now. Exept makting a uC working as a HC595 there is no solution for this...

 

post-10711-0-76856600-1402128232_thumb.p

 

best regards

novski

Posted

Regarding this Button that i can't use i made my decision to use the Sparkfun Button Pads again.

 

I now have some questions to RGB LEDs wiring. I want to use 3 Color LEDs. I can't find much information about that quite new feature. 

A found a drawing from Protodeck http://www.midibox.org/dokuwiki/lib/exe/detail.php?id=protodeck&media=protodeck:ledsdout.png

But i think it should be easier somehow without those NPN Transistors driving the Selection Lines. Did i mis a schematic somewhere or is there no documentation available yet?

 

Thanks for a hint..

novski

Posted

The usage of source drivers (the transistors) is for pro users who want to get perfect results.

I'm unsure if this really makes a big difference.

It's more important that you try to keep the number of selection lines per matrix as low as possible (8 is acceptable, 4 is perfect)

 

Best Regards, Thorsten.

Posted

Thanks TK.

I looked trou the parameters of NG .NGC and was surprised how much was added since i read that last time! Thats really a great work. Thank you so much.

 

i will have 3 selection lines and 8 rows with each color to get 24 RGB Backlit Buttons.

 

I didn't find a parameter to set the number of selection lines in the .NGC..?

necessary?

 

best regards

novski

Posted (edited)

ok. I tried a bit around today but can't figure out how that all works.

I added a DOUT4 to my core and took one resistor Array out of it by making short connections where the Array resistor was before. Then i added this code to my NGC file:

# test D-OUT Matrix

DOUT_MATRIX n=2 rows=8 mirrored_row=0 inverted_sel=0 sr_dout_sel1=1 sr_dout_sel2=0 sr_dout_r1=2 sr_dout_r2=0

i connected a LED to D0 of SR3 (Cathode) and D0 SR4 (Anode). I loaded that code to my Core and the LED went ON.

I was surprised.

Then i tried to find out the command to lit a LED one by one and found that the normal LED comand: "EVENT_LED id=999 hw_id=16 value=127" makes i go dark. Value=0 makes it go on.

Can somebody explane me why its hw_id=16 and not 8 ?

Im confused

thanks

novksi

Edited by novski
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...