Open brunofresco opened 3 years ago
Hi !
This is a duplicate of https://github.com/SHWotever/SimHub/issues/315
I'm sorry I don't plan to add it, I want to stay away from complex wirings like transistors, and like you have pointed without it the maximum current would be exceeded in a matter of minutes. For me smart leds (ws2812b, pl9823) offers much more possibilities and are scalable without complex wiring and are safer for users.
If you really need to say with classic leds, you can add it through the custom arduino support : https://github.com/SHWotever/SimHub/wiki/Custom-Arduino-hardware-support.
Nicolas
Okay thanks anyway I dont want to bother you but can you help me understand how I do that im new to code and I really dont know how that works with the ncalc and so on.
And sry for being a pain in the butt i would also donate for your work again i really like sim hub but i would just really like support for single light. the resistor based fuel and gas gauge i made it work with a potentiometer and a pwm servo motor it works great but my tacho isnt the old ones that you can take the lamps behind of it. it already has leds if it were lamps i would take those out and put smart rgb leds behind.
And i mean i know mosfets and transistors are complex but still easier than coding at the end of the day they are low power relays and to wire them up is easy anyway i did it for the tacho and speedo it requires pwm to ground so instead of it coming directly from the arduino the arduino controls the transistor and it makes a direct path to ground so i have a ground pwm.
And i saw some people wanted the support too and it would make simhub even more useful also what if i want to add an engine start button that lights up when the car is on and those buttons always have a single led inside at least the cheap ones from ebay.
But I really cannot write code, I only understand it halfway and I dont know anyone who could help me, I searched on google for some example code for single leds that I could adapt myself but found nothing.
I really like all the other options i have in simhub im adding some of those to my setup too and im glad there is such a software it makes playing very fun.
I don't wanna be rude or something but I'm using more than 10 3v LED diodes with Mega boards on my cockpit via Mobiflight, each of them has 150k resistor and I have absolutely 0 problems for 3 years. Software is different but in principle, it's Arduino, and it's not externally supplied by 12v or something (one of them is even Arduino Mega Mini)
I don't think regular LED diodes would stall the Arduino board, they are not power diodes at all. I think SimHub needs to have this functionality to have outputs for turn indicators, beams, and such.
I have a Renault dashboard and I really want to support it to the max, so I know about the arduino current limitations because of the leds. Possibly such as indicator lights and I want to run everything with low current transistors anyway as the dashboard does not actually draw power directly from the arduino but I want to be sure.
And please if you add this feature add a warning about the current limit on the arduino on the arduino pin settings in red and bold and italic maybe
I really wanted this feature and I don't think it would be too hard for you guys to implement.
Thanks in advance!