Adding support for 16 channel PWM expansion to libraries

Related to the development libraries, released by Curt Binder
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu Sep 25, 2014 8:17 am
12 bit resolution is in the dev libraries and working great. You now get full 8 bit resolution on the built-in ports and 12 bit on the current dimming modules. Some older ones may still he 8 bit. PM Roberto (rimai) to purchase a 16channel module.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Fri Sep 26, 2014 10:26 am
Could someone post a guide on how to work the 12 bit dimming?

Thanks,

--Colin
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Fri Sep 26, 2014 10:44 am
If your using InternalMemory you don't have to do anything. If your setting them manually with the parabola or slope functuons you can just add HighRes to the function name.

For set and get functions, just add Raw at the end.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Fri Sep 26, 2014 2:15 pm
How does that work with the standard PWM ports? Still use PWMSlopeHighRes? How will it know the difference between, say, 50% and 50?

I guess the Portal and the RA Status app still use bytes to store the values for the PWM Expansion module? They're rolling over every 255.

Thanks,

--Colin
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Fri Sep 26, 2014 4:31 pm
Yes GetValue() and the portal will get the byte value. But if you want to write a high res number then you'd use SetDaylightRaw(). Then when it writes it will scale it down to 0-255. The HighRes functions all output 0-4095 (12 bit range)
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Sun Sep 28, 2014 5:14 am
Disregard the second half of my previous statement. I was doing it wrong. :oops:

Got it running, but I've noticed I can't dim below a raw value of 21 with my LDD drivers. At 20 they shut off. Hardware limitation or software issue?

--Colin
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Sun Sep 28, 2014 6:09 am
Thats pretty damn good. All drivers need some amount of voltage in order to get going. The LDDs are low for sure. 21 is like .005v

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sun Sep 28, 2014 8:33 am
Yeah, I think that is the minimum that your driver will take, which is pretty good in my opinion.
How does the LED look at 21?
Roberto.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Sun Sep 28, 2014 8:45 am
A little too bright for a moonlight, but I have 40 LED's on that channel. :D

--Colin

Posts: 263
Joined: Wed Jan 01, 2014 7:26 am
PostPosted: Mon Sep 29, 2014 7:06 am
Cool. I've never driven mine down that low on purpose, but I should try with some Raw commands. I know I used to do a slope from 0% to 3% over 3 hours using HiRes functions and it was really really dim at first. I don't know what the raw value was, though.

I owe Roberto a users guide to how the new dimming stuff works and how you'd access it if you wanted to get to it from the .ino file.
PreviousNext

Return to Development Libraries

Who is online

Users browsing this forum: No registered users and 1 guest

cron