完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
这听起来有点…有趣的是,我想用DSPIC24E(老式VU表)驱动32个LED;PIC额定电流为200毫安,每个引脚最大15mA;我的LED将使用3-5毫安,所以我应该符合规格。
以上来自于百度翻译 以下为原文 This sounds kind of... funny, but: I want to drive 32 leds using a dsPIC24E (old style VU-meter); the PIC is rated for 200mA current all-together and some 15mA per pin maximum; my leds will use say 3-5mA so I should fit within specs. |
|
相关推荐
12个回答
|
|
|
|
|
|
但是…我想驱动两个(即总共64个):它们是普通的红色和绿色的,电压降是红色的1.6,绿色的大约2,这些电流,如果我给PIC @ 3.3V和LED的阳极@ 5V供电…在非5V容忍引脚也安全吗?理论上,这些引脚将永远不会看到超过1,1.5V:我将使用它们作为开放收集器(使它们),但即使我驾驶他们高,没有电流应该流过3.5或4V的LED…替代方案是使用4 ULN2003或类似的,我会避免他们,即使这是一个一次性项目:)谢谢S!
以上来自于百度翻译 以下为原文 But... I wanted to drive two (i.e. 64 in total) in series: they're normal red and green ones, voltage drops is 1.6 for red and circa 2 for green @ these current; If I power the PIC @3.3V and the leds' anodes @5V... will it be safe also at non-5V-tolerant pins? In theory those pins will never see more than 1, 1.5V: I will use them as open-collector (TRISing them) but even if I was driving them high, no current should flow through the 3.5 or 4V led... Alternative is using 4 ULN2003 or alike and I would avoid them, even if this is an one-time project :) thanks! |
|
|
|
这样做了。工作良好。我经常使用模拟引脚,以便LED测试可以自动化。启动时的低电流馈电LED和测量电压。报告超出预期范围的任何数据。
以上来自于百度翻译 以下为原文 Done that. Works fine. I often use analog capable pins so that LED testing can be automated. Feed LEDs with low current on startup and measure voltages. Report any that are out of expected range. |
|
|
|
谢谢你的RPG!是的,我现在不需要这个特性,但是好主意。现在我正在为这个项目工作我的超杀戮
以上来自于百度翻译 以下为原文 Thank you Rpg! And yeah, I don't need that feature now, but good idea. Now I am working on my overkill 44100Hz FFT for this project |
|
|
|
试想一下,如果你使用TIS来关闭LED,在0的LAT下,那么当LED断开时,引脚将处于,如你所说,1-1.5伏。这对于模拟可编程引脚来说是很好的(你可以把它们放在模拟模式下),但是对于非ST数字的引脚来说可能是个问题。到3.3V以确保当LED断开时,输入处于限定的高状态。
以上来自于百度翻译 以下为原文 Just thinking around this, if you are using TRIS to switch off the LED, with LAT at 0, then when the LED is off the pin will be at, as you say, 1-1.5V. This is fine for analogue capable pins (you can leave them in analogue mode), but may be a problem for non ST digital only pins. Maybe a weak pullup to 3.3V to ensure that when the LED is off, the input is at a definate high state? |
|
|
|
在我写作的时候,使用TRIS的部分实际上已经进入我的脑海:所以我绝对可以使用适当的LAT设置…(在这种情况下,我不需要检查当前的消费)我明白你的意思,会考虑的,谢谢!
以上来自于百度翻译 以下为原文 The part about using TRIS actually just came into my mind while I was writing: so I can definitely use proper LAT settings... (I don't need to check current consumption in this case) I get your point and will think about it, thank you! |
|
|
|
不能看到任何原因,为什么不能只保持输出活跃,并驱动引脚到3V3的LED关闭。
以上来自于百度翻译 以下为原文 Can't see any reason why one can't just keep the output active and drive the pin to 3v3 for LED off. |
|
|
|
是的,我也想到了,应该把它放在以前的帖子里,但是被打断了,很快又把它忘了。应该为2个LED串联工作。
以上来自于百度翻译 以下为原文 Yeah, I thought of that as well, should have included it in previous post, but was interrupted and promptly forgot about it again ;-). Should work ok for the 2 LED's in series. |
|
|
|
|
|
|
|
我很高兴我有技术人员来焊接……你有可能用5V回到PIC上的3V3管脚上吗?如果可能发生的话,也许用肖特基二极管保护引脚到VCC?
以上来自于百度翻译 以下为原文 sad: I'm so glad I have technicians to so the soldering..... Is it possible you ended up with 5v back onto 3v3 pins on the pic? If that could have happened maybe protect the pins with a schotky diode to vcc? |
|
|
|
它只是一个原型…哦,好的,让我们看看。5V没有办法进入PIC:小型220V开关适配器,2个LED串联在5PV上,意味着在PIC的PIN上最大值为2V(红色)或1V(绿色)。当超过一半的LED点亮时,PIC似乎发疯了。在不到一分钟的时间里,它被炸了。现在我们看到了一个。DSPIC运行在5V,DSPIC33 EV128GM00 2,所以将尝试它(与一个插座)。
以上来自于百度翻译 以下为原文 It was just a prototype... oh well, let's see. There's no way 5V could get to the PIC: small 220V switching adapter, 2 leds in series with 5V meaning a maximum of 2V (red) or 1V (green) at the PIC's pin. As more than one half of leds lit up, the PIC seemed to go mad: and after less than one minute it was fried. Now we've seen a dsPIC that runs at 5V, dsPIC33EV128GM002, so will try it (with a socket). |
|
|
|
我想我们发现输出可能是好的,但是…输入没有正确缩放:60W的功率放大器可能产生超过3.3V的方式,并且使用1UF电容器串联不足以保护PIC的PIN……好了,一切都好,结果好!一个很好的VU表由FFT制成,44100个采样/秒,16个LED,对数刻度,峰值存储…5ms更新时间(!)
以上来自于百度翻译 以下为原文 I guess we found something Output was probably okay but... input was not scaled correctly: a 60W power amplifier can possibly generate way more than 3.3V and using a 1uF capacitor in series is not enough to protect a PIC's pin... Well, all's well what ends well! A nice VU-meter made out of an FFT, 44100 samples/sec, 16 leds, logarithmic scale, peak storage... 5mS update time (!) |
|
|
|
只有小组成员才能发言,加入小组>>
5178 浏览 9 评论
2003 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3177 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
636浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 18:10 , Processed in 1.973474 second(s), Total 104, Slave 84 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号