BeeHive-org / BeeHive

BeeHive: a flexible open hardware platform for behavioural experiments
MIT License
10 stars 6 forks source link

High power LED driver #16

Closed isobianin closed 3 years ago

isobianin commented 4 years ago

From what I was able to find, Grove has two modules which can be used with powerful LEDs:

However, they are relatively powerful. There are other examples that, probably, more appropriate:

A long time ago, we determined that a high power LED driver should be present within BeeHive system. The question is, if we are to do it, what are the specifications for it?

amchagas commented 4 years ago

Hi! I am surprised that there are no more options on the Grove ecosystem to drive LEDs. Thanks for researching on this and for finding other options as well.

I think we have too much of a loose concept on what are "high power leds". From experience what researchers call high power, is not necessarily what engineers would call high power ;) For biological applications, I think up to 3W leds should be more than enough.

I do not have very precise answer to your questions, but here is some direction:

1- I would stick to designs that can be driven by the 12V 5A power supply. If we need more power later, I would stick with 12V, but then get a power supply that has more amps.

2 - I would imagine the JST connectors should be fine, since they can take up to 3A (https://docs.rs-online.com/f25e/0900766b81357f2f.pdf), and I think we should be below that in most cases?

3 - If we can manage with heatsinks/passive cooling only, that would be ideal.

4 - can't know for sure... Sorry. Maybe let's design something that takes one led per channel/digital signal control and rely on the shift registers in case we need many?

5 - the mechanical details on how these are going to be held can change a lot I think. I am thinking we can use them for the following: - fluorescence, optogenetics (both similar to flypi), but also to control "day/night cycles" in behavioural boxes and or incubators I think there can be so much variability in here that spending time to design a holder now is not the best time investiment

Let me know if this helps, or if it only adds confusion? Maybe a simple opamp current driving design with the option for the user to change the output current would be a good place to start?

isobianin commented 4 years ago

Thanks for the detailed answer. I got the gist. There are a lot of questions from my side because I want us to determine what characteristics should the module designed have. As far as I can tell, it is alright.

For the starting point, yeah, I will look up to opamp circuitry and some other variants. I will post updates as there will be an advance with the development.

isobianin commented 3 years ago

Hi @amchagas !

I was looking into this issue lately. I think about developing the design based of the foundation of the peltier module. I looked up OpAmp circuitry that you had proposed but I see that it has some overcomplicated aspects for what is easily achieved by the said MOSFET drivers. Yet, we already saw the results of the MOSFET drivers and they are plausible.

Regarding shift registers, I think to make a simple circuitry with four switches for a start. To be honest, I don't think that we will even need more than that. The shift registers will be the same as in our previous BJT arrays. The circuitry will have 2 drivers for 4 MOSFETs and all the complementary components. That is how is it for now

isobianin commented 3 years ago

Hi @amchagas , while I am on this topic there is one more thing. I think controlling these LEDs with PWM is quite effective. On the other hand, it is somewhat difficult task to achieve with shift registers as in this case we would need to constantly turn the snifter on and off with the given frequency. A good question on this topic. https://electronics.stackexchange.com/questions/110744/pwm-driven-led-array-over-a-shift-register There are libraries for 74hc595 registers for Arduino that do exactly this. Will it work or should we just connect IO pins directly to the drivers? There are also timer ICs like 555. I feel that we need to decide what approach we should take before commencing further development (I will just design only those parts of schematics that I am adamant about)

amchagas commented 3 years ago

hum, this is an interesting question. maybe as an straightforward approach should we just connect the driver directly to the IO pins? there should be enough for the number of LEDs that might be needed in biological applocations, and we can use the shift register for other devices?

isobianin commented 3 years ago

Hi @amchagas ,

precisely what I was thinking and referring to. Simple yet functionally complete and easy to program

amchagas commented 3 years ago

👍 Great!