I use Darrel Taylor's DT_INTS-14 (SPWM_INT - Multiple Software PWM) to achive this very well.
http://darreltaylor.com/DT_INTS-14/SPWM.html
Type: Posts; User: krohtech; Keyword(s):
I use Darrel Taylor's DT_INTS-14 (SPWM_INT - Multiple Software PWM) to achive this very well.
http://darreltaylor.com/DT_INTS-14/SPWM.html
Hello Darrel,
I would like to ask you to read the entire thread. I understand that the title makes it sound as if it's a ME Labs bashing thread but most of the feedback is positive.
For driving relays I use an NPN darlington array DIP. Drive 8 relays for $.72 and has the diode built in to protect the pic from inductive spikes. If you are going to do home automation you will...
Looks like a configuration fuse problem.
Melanie wrote a great post on this that helps me alot.
see: http://www.picbasic.co.uk/forum/showthread.php?t=543
The 2n2222 is an NPN BJT transistor.
See: http://en.wikipedia.org/wiki/2N2222
Yes, when voltage is applied to the base, current will flow from C to E. When the base is low, there is no flow.
It really depends on how much current you are switching and if it is AC or DC. I would think the simplest way is to use a relay for the load and a Darlington Transistor if the relay draws too much...
I don't know about a thousand dollars but I would pay more for upgrades or high end spinoffs. I think that if MELabs decides to break the platform into 3 products like Standard, Pro and Premium, I...
I feel that MELabs is doing a great job. I have called for support on the trial version and received it without hesitation. I also had my disk munched just after receiving it in the mail and they...
Hi Joe,
Yse in this example it does set all 16 channels to 50.
Hi Joe,
50 would be the duty cycle of the PWM. In this example the SPWM_INT duty cycle was setup to be 0 - 100 so 50 would be roughly 50% at 100 Hz. See Below
Can anyone recomend a good book on PBP or BASIC that may help with the finer points of arrays and loops etc. I am very willing to read and research to learn more.
Thanks Darrel,
I will have...
I was planning on storing the data in the program memory as it will probably not need to be changed once the sign is installed.
Thanks Skimask
I will have to play with this to absorb it. I will give it a try this weekend.
I would use Darrel’s Instant Interrupt system and the Elapsed Timer
http://darreltaylor.com/DT_INTS-14/elapsed.html
If I am reading the data sheet correctly, the "input change Interrupts" will fire when anything on the port changes. I do not believe the individual pins can be monitored this way. If you need...
What pic are you using?
Hi Skymask,
Maybe I can clarify what I am trying to do. I didn’t post my entire code because it is very long. I will attach as a text file. I am designing a sign controller AKA sign animator AKA...
Hi Derrel,
Thanks for the code, Unfortunately I was hoping for something that would allow me to set different values to the duty cycle of each channel. The way I have it configured I use CH# as...
Hay Darrel,
In the DT_INTS-14 (SPWM_INT - Multiple Software PWM) It says:
DutyVars VAR BYTE[3] ; DutyCycle Variables
DutyVar1 VAR DutyVars[0] ; group them in an...
I actually just checked and you can use the AD_INT -- A/D Converter Interrupt in his 14 bit version as well... So you don't have to use an 18F
Thanks Darrel
...
You might have a look at Darrel's DT_INTS-18 if you ues a 18F pic you can use the AD_INT -- A/D Converter interrupt.
EDITED see below EDITED
This method will not work with PBP see
http://www.picbasic.co.uk/forum/showthread.php?t=7661&highlight=fuses
Post 20
Darrel,
Feel free to use my testimonial in any way you see fit.
Thanks again Darrel,
I just fully tested the SPWM_INT running 16 channels @ 100Hz 0-100 resolution. I tested each channel with a 7 amp led cluster (Agilight Brightstrip see below) of typical sign...
Thanks Darrel,
That worked, I think I need to learn that register, TIME TO HIT THE DATA SHEET...