I need to make a fan controller.

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Agent24
    replied
    Re: I need to make a fan controller.

    There should be a piece of metal sticking out from the side of the contact that clicks into place in a hole in the plastic header.

    Just push this down with a pin or stiff wire and then push towards the opening. Or you can probably grab the other end with needle-nose pliers, or stick another piece of wire in through the bottom to push the contact out.

    Leave a comment:


  • Mad_Professor
    replied
    Re: I need to make a fan controller.

    Originally posted by Agent24
    For a basic one like that I think Arduino NG
    It looks like I can set the fuses through Arduino.

    I just copied and paste the section from NG w/Atmega168, and changed whatever I need.

    This is a snippet from boards.txt

    Code:
    atmega168.name=MYBOARD w/ ATmega168
    
    atmega168.upload.protocol=Parallel Programmer
    atmega168.upload.maximum_size=14336
    atmega168.upload.speed=19200
    
    atmega168.bootloader.low_fuses=0xe2
    atmega168.bootloader.high_fuses=0xdf
    atmega168.bootloader.extended_fuses=0xf9
    atmega168.bootloader.path=atmega
    atmega168.bootloader.file=ATmegaBOOT_168_ng.hex
    atmega168.bootloader.unlock_bits=0x3F
    atmega168.bootloader.lock_bits=0x0F
    
    atmega168.build.mcu=atmega168
    atmega168.build.f_cpu=16000000L
    atmega168.build.core=arduino
    atmega168.build.variant=standard
    EDIT:
    Remind me to NEVER BUY this again.

    http://search.digikey.com/us/en/prod...0982-ND/698225

    I can't get the fucking metal contacts out so I can hook up my wires to them.

    Worthless piece of shit.
    Last edited by Mad_Professor; 02-18-2012, 03:34 PM.

    Leave a comment:


  • Agent24
    replied
    Re: I need to make a fan controller.

    For a basic one like that I think Arduino NG

    Leave a comment:


  • Mad_Professor
    replied
    Re: I need to make a fan controller.

    Got the parts today. Its on a breadboard. When I was putting it together I realized I made some errors in my schematics.

    My inductor was on the wrong pin, needed to be on AVCC. My 10k resistor for reset was connected to ground.

    Wrote some code but I don't know what board to compile for.
    Not to be vague but under tools > boards > ??
    Code:
    int fan1= 5;
    
    
    int fan1val = 0;
    int pot1 = 0;
    
    void setup() {}
    
    
    
    void loop() {
    fan1val = analogRead(pot1);
    fan1val = fan1val / 4;
    
    analogWrite(fan1, fan1val);
    }
    Tomorrow I'm going to get my old p3b-f board and load XP or linux, whatever I feel like using and hack up a parallel cable and make an attempt to load this sketch on to the chip.

    Also can someone double check and verify my breadboard setup, I don't want to fry something but I think it's correct.
    Attached Files

    Leave a comment:


  • shadow
    replied
    Re: I need to make a fan controller.

    Originally posted by Mad_Professor
    Ok so I'm working in tinycad since veecad needs a netlist to place components.

    Anyways I just realized something, do I need to have digital outputs for each set *1k>tip120>fan* that say PWM on the arduino pin out or can I use one PWM output to control the 5 transistors?
    If I can't then can I use any pin that says digital I/O?

    http://arduino.cc/it/Hacking/PinMapping168

    This left side of the chip and place the chip to the right on the board.
    I was going to use,
    digital I/O PWM pin 3/actual: pin 5 on chip
    digital I/O PWM pin 4/actual: pin 6 on chip
    digital I/O PWM pin 5/actual: pin 11 on chip
    digital I/O PWM pin 6/actual: pin 12 on chip

    I want to use
    Digital I/O pin 7/actual: pin 13 on chip
    But it doesn't say PWM. I don't know if I can use it as PWM connection.

    I was going to put the pot on the right side of the board too and connect it to where it says analog PC0.

    Then below the chip put my DAPA header and run the lines to the right side of the chip.
    Then the left side can be used for tip120, diodes and resistors and headers.
    It has been a while since I checked out this thread. I say the easiest and most flexible way of achieving what you want is to connect each transistor to a PWM output. In theory, one could power all five transistors from one PWM output. However I doubt that the current output from the microcontroller will be able to power five transistors. Therefore you will probably need another transistor to provide the extra power required to energise all five transistors at once from a single microcontroller output.

    I would suggest to use the same PWM outputs as the Arduino. That way it is much easier to program using 'their' language. Not all Digital I/O pins can be configured for PWM use. Only one or two ports on the microcontroller will support PWM output. From memory, there are more PWM pins than what the Arduino's provide on their boards (this would have to be confirmed by checking the datasheet for the ATMega168), however if you use these pins, it will be difficult to make use of the Arduino C like language and their hardware libraries. On top of that, perhaps those extra PWM outputs are required for other purposes such as ICSP programming.

    For the software side of things, I tried a fair few free products and found them all to be quite difficult to use (to design stripboard layouts). I found Lochmaster very good and intuitive for stripboard design. Unfortunately you can not design a schematic in it. Therefore you have to verify your layout against your schematic manually. For your circuit, it should be pretty simple. However it would be a problem for complex circuits, however stripboard is not that effective for complex circuits so it's unlikely to be used for such complex designs.

    Leave a comment:


  • Mad_Professor
    replied
    Re: I need to make a fan controller.

    Because I don't see a veecad on export or a tinycad on import option.

    Leave a comment:


  • Agent24
    replied
    Re: I need to make a fan controller.

    Originally posted by Mad_Professor
    Veecad is just fucking useless. I made my schematic. I export it using protel format and when I import it into Veecad it comes out as U shape components.
    This might be a stupid question, but why are you exporting to Protel format?

    Leave a comment:


  • Mad_Professor
    replied
    Re: I need to make a fan controller.

    Originally posted by Agent24
    I would advise getting into the habit of drawing up a schematic and getting a netlist, it might take extra time but it's worth it, because then you can't make mistakes on your board layout.

    The software will only let you connect in the board layout what is already connected in the schematic and netlist.

    (Of course, this works the other way too, if you make a mistake in your schematic, that flows through into the netlist and board layout)


    I'll let someone else answer your other question about the PWM pins, I'd probably get it wrong!
    Veecad is just fucking useless. I made my schematic. I export it using protel format and when I import it into Veecad it comes out as U shape components. Then when I try to add TinyCad libraries to Veecad and try to import again, it says ERROR: File version information not found. If I remove all the tinycad Libraries from veecad then it works but all U shape components are back.

    I'm too tired and I can't get Veecad to work, so fuck it.

    I went ahead and change my resistors from 5% to 1%.

    What changed:
    78M05 replaced with this
    MC7805CT-BPMS-ND

    Replaced 220 ohm resistor with this
    PPC220YCT-ND

    Replaced 470 ohm resistor with this
    RNF14FTD470RCT-ND

    Replaced 1k ohm resistor with this
    RNF14FTD1K00CT-ND

    Replaced 10k ohm resistor with this
    RNF14FTD10K0CT-ND

    ADDED
    A31647-ND *Locking Ramp MTA-156 connector*


    This is what my layout looks like in tinycad. Now I got to figure out what size stripboard, actually I might buy it locally.
    Attached Files

    Leave a comment:


  • Agent24
    replied
    Re: I need to make a fan controller.

    Originally posted by Mad_Professor
    Ok so I'm working in tinycad since veecad needs a netlist to place components.
    I would advise getting into the habit of drawing up a schematic and getting a netlist, it might take extra time but it's worth it, because then you can't make mistakes on your board layout.

    The software will only let you connect in the board layout what is already connected in the schematic and netlist.

    (Of course, this works the other way too, if you make a mistake in your schematic, that flows through into the netlist and board layout)


    I'll let someone else answer your other question about the PWM pins, I'd probably get it wrong!

    Leave a comment:


  • Mad_Professor
    replied
    Re: I need to make a fan controller.

    Ok so I'm working in tinycad since veecad needs a netlist to place components.

    Anyways I just realized something, do I need to have digital outputs for each set *1k>tip120>fan* that say PWM on the arduino pin out or can I use one PWM output to control the 5 transistors?
    If I can't then can I use any pin that says digital I/O?

    http://arduino.cc/it/Hacking/PinMapping168

    This left side of the chip and place the chip to the right on the board.
    I was going to use,
    digital I/O PWM pin 3/actual: pin 5 on chip
    digital I/O PWM pin 4/actual: pin 6 on chip
    digital I/O PWM pin 5/actual: pin 11 on chip
    digital I/O PWM pin 6/actual: pin 12 on chip

    I want to use
    Digital I/O pin 7/actual: pin 13 on chip
    But it doesn't say PWM. I don't know if I can use it as PWM connection.

    I was going to put the pot on the right side of the board too and connect it to where it says analog PC0.

    Then below the chip put my DAPA header and run the lines to the right side of the chip.
    Then the left side can be used for tip120, diodes and resistors and headers.

    Leave a comment:


  • Agent24
    replied
    Re: I need to make a fan controller.

    But that smaller transistor may have been 3x faster hence 3x the price.

    In any case, in my opinion, over-engineering something is never a bad thing!
    Last edited by Agent24; 02-11-2012, 10:32 PM.

    Leave a comment:


  • shadow
    replied
    Re: I need to make a fan controller.

    Originally posted by Scenic
    A ST-made 7805CV can supply up to 1.5A .. in case he buys a bunch of those for other projects, that might come in handy. Kinda funny how that one can deliver 3 times the current yet it costs 1 cent less..
    http://search.digikey.com/us/en/prod...43-5-ND/585964
    I encountered this sort of thing a lot while designing my own circuits. Buying components which fit the purpose more (closer to the actual maximum ratings and usually smaller form factors) in fact cost more than the 'more commonly' used components. So I ended up severely over-specifying some of my circuits to keep costs down.

    This is particularly true with the switching transistors I used to design my fan controller. I designed it using a Darlington transistor that can output up to 5A, however I could use a Darlington transistor in a smaller package that would be more appropriately rated for the job at hand if I pay 2-3x more.

    Leave a comment:


  • shadow
    replied
    Re: I need to make a fan controller.

    Originally posted by lti
    A 78L05 might work fine. Does that microcontroller draw more than 100mA? I have an ATMEGA48 microcontroller that worked fine from a 78L05.
    I checked the datasheet for the ATMega48/88/168 microcontroller and it does say the ABSOLUTE maximum current that it will draw is 200mA. The current draw is a function of the operating frequency, the operating voltage, the amount of devices connected to the microcontroller etc.

    However in nearly all configurations I believe the current draw would be within 100mA.

    In fact the datasheet really advertises how little power it consumes, in particular if you reduce the operating frequency and use the built in oscillator. For example, the ATMega48/88/168 draws 250uA at 1MHz and a supply voltage of 1.8V. Another example is that it draws 15uA at 32kHz and a supply voltage of 1.8V while making use of the internal oscillator. Pretty amazing stuff in my opinion.

    Leave a comment:


  • lti
    replied
    Re: I need to make a fan controller.

    A 78L05 might work fine. Does that microcontroller draw more than 100mA? I have an ATMEGA48 microcontroller that worked fine from a 78L05.

    Leave a comment:


  • Agent24
    replied
    Re: I need to make a fan controller.

    But don't forget that if you do want to get that much current out of it you need a big heatsink...

    Leave a comment:


  • Scenic
    replied
    Re: I need to make a fan controller.

    Originally posted by Agent24
    Not sure why you're using a 78M05. It can only supply 500mA while a normal 7805 can supply 1 Amp. Though for this usage I doubt it will make any difference though. Again, you might want to buy several for future use, in which case, the higher current ones might be better.
    A ST-made 7805CV can supply up to 1.5A .. in case he buys a bunch of those for other projects, that might come in handy. Kinda funny how that one can deliver 3 times the current yet it costs 1 cent less..
    http://search.digikey.com/us/en/prod...43-5-ND/585964

    Leave a comment:


  • Agent24
    replied
    Re: I need to make a fan controller.

    The inductor looks fine to me.

    Originally posted by mariushm
    I don't know if 10k for potentiometer is enough, not sure how you're using it. If it's gonna be for the controller to detect a voltage between 0 and 5v on a pin and convert that to digital with the ADC, maybe a larger resistance value would give you a wider variation...
    Well, the 555-based fan controller that I posted earlier uses a 10k pot and it works great, so I guess it would be OK here too. Then again, it goes between 12v with a 9k resistor on each side, so, yeah.....


    With the 0.1uF Capacitors and the 10K Resistors, you might as well buy several more. I usually purchase about 30+ of each when I order something like this, so I have more for next time I want to do something.

    Those values especially are very commonly used too, so it makes sense to have a few spare, and they are cheap.


    Not sure why you're using a 78M05. It can only supply 500mA while a normal 7805 can supply 1 Amp. Though for this usage I doubt it will make any difference though. Again, you might want to buy several for future use, in which case, the higher current ones might be better.


    Everything else looks fine, but I don't see a crystal, if you are using one.

    Speaking of crystals, a good thing to note is the dielectric type of the ceramic capacitors, which affects stability due to temperature variations etc.

    There are several different types. The ones you picked are X7R which are good for non-critical purposes but for crystal loading capacitors and other things where you want better stability it's better to use C0G/NP0 types.

    http://en.wikipedia.org/wiki/EIA_Class_1_dielectric
    http://en.wikipedia.org/wiki/EIA_Class_2_dielectric
    Last edited by Agent24; 02-10-2012, 10:49 PM.

    Leave a comment:


  • mariushm
    replied
    Re: I need to make a fan controller.

    Not sure about those inductors, Agent or someone more knowledgeable should give you feedback on that.

    For the resistors, it depends on what you're going to use them for... for some uses the 5% tolerance may be too much ... that makes the 10k resistor anything between 9500 and 10500 ohm.. 1% resistors shouldn't be that hard to find and they're not that more expensive.

    If it's just to light a led, 5% resistors will be fine, but if you want to use them for PWM or determine a ratio using the potentiometer and a resistor, I would probably go for 1% tolerance.

    I don't know if 10k for potentiometer is enough, not sure how you're using it. If it's gonna be for the controller to detect a voltage between 0 and 5v on a pin and convert that to digital with the ADC, maybe a larger resistance value would give you a wider variation...

    2x 6pin header *making a inline ICSP interface for my DAPA cable.* ...check the pitch and make sure it will match with your existing connector.... this one you selected has pitch 0.156" (3.96mm)

    If you plan to make the cable from scratch just go at the bottom of the page for that one and select from "mating products" a "mother" connector (the connector you plug those pins into), for example one of these (digikey is a pain, lists 500 mating items, most are non stock or minimum 2000 to order):

    http://search.digikey.com/us/en/prod...1647-ND/769791
    http://search.digikey.com/us/en/prod...1244-ND/696766

    You just pull out the metal connectors inside with the help of a needle and then press the wire and plug back the connector in the plastic case.

    As for the power supply... it's a good one, but won't provide you with 5v sharp, it will most likely give you a bit more than that on the cables, 5.3 or something like that.. the atmega will probably tolerate more than the max of 5.5v but why risk it when the prevention is less than a dollar?
    Last edited by mariushm; 02-10-2012, 07:55 PM.

    Leave a comment:


  • Mad_Professor
    replied
    Re: I need to make a fan controller.

    Originally posted by mariushm
    The links aren't working...

    These seem to be the ones you're looking for:

    http://search.digikey.com/us/en/prod...-PU-ND/2271215
    http://search.digikey.com/us/en/prod...10PU-ND/735447
    http://search.digikey.com/us/en/prod...20PU-ND/735446

    There may be slightly cheaper ones running at 10Mhz or lower, but I don't really think it's worth the trouble... these run at 20 Mhz and they should be perfect for your needs.

    Other than the last being more power sensitive (2.7v-5.5v vs 1.8v-5.5v for the first two) I don't see any differences. They all go in 28-DIP (0.300", 7.62mm) so you need to get a 28-DIP with 0.300" spacing:

    So I guess these should work:

    http://search.digikey.com/us/en/prod...0210-ND/990628
    http://search.digikey.com/us/en/prod...480-ND/1133633

    Basically search for "DIP socket", then filter by one category at a time, 0.300" 7.62mm , then through hole/wire wrap , and so on...

    Make sure your computer actually has a parallel port, some USB to parallel adapters don't work for flashing these devices.

    ps. Since you're gonna power this from 5v most likely, you may have spikes of power on 5v that are over 5.5v comin from the power supply... most power supplies also do by default about 5.1-5.3v ... the chips will probably resist some spikes of power but it wouldn't hurt getting something like this:

    http://search.digikey.com/us/en/prod...CTFS-ND/458700

    This takes 7-35v and delivers 5v @ 500mA (minimum), which should be enough to drive the controller.
    Thanks for telling me the links were dead.

    I have the last avr you listed in my basket already. do you think I should go to the one of the others?

    Also my desktop computer does not have a parallel port but I do have some old computers and old main boards I can easily load up with XP or Linux.

    As for the voltage regulator..
    I have a corsair TX 750 PSU in the server, do you really think it might spike?
    You know what, I don't want to play with fire so I'll add them in with two panny 47uF 50v FC caps.

    So Let me try this again...

    Controller:

    2x Atmega168 chips
    *not sure if it's the correct chip since there were multiple ones to select from.
    http://search.digikey.com/us/en/prod...20PU-ND/735446

    6x kemet 0.1uf 50v Ceramic caps
    http://search.digikey.com/us/en/prod...4264-ND/818040

    2x 10k Ohm Resistors
    http://search.digikey.com/us/en/prod...0CT-ND/1830374

    2x 10UH Inductor choke
    http://search.digikey.com/us/en/prod...135-ND/1305993

    5x TIP120 Darlington Transistors
    http://search.digikey.com/us/en/prod...120-ND/1052441

    5x 1N5817 Schottky Diodes
    http://search.digikey.com/us/en/prod...SCT-ND/1532776

    5x 1k ohm resistors
    http://search.digikey.com/us/en/prod...0CT-ND/1830487

    1x 10k ohm linear rotary potentiometer
    *not sure if this is what I need.
    http://search.digikey.com/us/en/prod...308-ND/2408885

    2x 4pin 8981 Molex connector
    http://search.digikey.com/us/en/prod...6988-ND/951582

    2x 6pin header
    *making a inline ICSP interface for my DAPA cable.*
    http://search.digikey.com/us/en/prod...1963-ND/109069

    1x 28 pin IC dip socket
    *hope this is the correct one. I don't want to destroy the chip with my iron or should the chip become fubar, easy replacement.
    http://search.digikey.com/us/en/prod...286-ND/1628669

    5x 3pin headers with friction lock
    http://search.digikey.com/us/en/prod...112-ND/1130578

    ADDED:
    3x panny FC 47uF 50v
    http://search.digikey.com/us/en/prod...0321-ND/266330
    *I have an extra one at home to make 4.

    2x 78M05 voltage regulators
    http://search.digikey.com/us/en/prod...CTFS-ND/458700

    NOTE:
    Also I don't have a prototyping board, I'll decide on that when I get a chance to play with Veecad and veroDes this weekend.


    DAPA cable *parallel programmer:

    1x 220 ohm resistor
    http://search.digikey.com/us/en/prod...RCT-ND/1830334

    2x 470 ohm resistors
    http://search.digikey.com/us/en/prod...RCT-ND/1830342

    I already have the Parallel cable, actually, I have a box full of them to hack up.

    I'll put the order in sunday, if everything looks good

    Leave a comment:


  • mariushm
    replied
    Re: I need to make a fan controller.

    The links aren't working...

    These seem to be the ones you're looking for:

    http://search.digikey.com/us/en/prod...-PU-ND/2271215
    http://search.digikey.com/us/en/prod...10PU-ND/735447
    http://search.digikey.com/us/en/prod...20PU-ND/735446

    There may be slightly cheaper ones running at 10Mhz or lower, but I don't really think it's worth the trouble... these run at 20 Mhz and they should be perfect for your needs.

    Other than the last being more power sensitive (2.7v-5.5v vs 1.8v-5.5v for the first two) I don't see any differences. They all go in 28-DIP (0.300", 7.62mm) so you need to get a 28-DIP with 0.300" spacing:

    So I guess these should work:

    http://search.digikey.com/us/en/prod...0210-ND/990628
    http://search.digikey.com/us/en/prod...480-ND/1133633

    Basically search for "DIP socket", then filter by one category at a time, 0.300" 7.62mm , then through hole/wire wrap , and so on...

    Make sure your computer actually has a parallel port, some USB to parallel adapters don't work for flashing these devices.

    ps. Since you're gonna power this from 5v most likely, you may have spikes of power on 5v that are over 5.5v comin from the power supply... most power supplies also do by default about 5.1-5.3v ... the chips will probably resist some spikes of power but it wouldn't hurt getting something like this:

    http://search.digikey.com/us/en/prod...CTFS-ND/458700

    This takes 7-35v and delivers 5v @ 500mA (minimum), which should be enough to drive the controller.
    Last edited by mariushm; 02-10-2012, 06:34 AM.

    Leave a comment:

Related Topics

Collapse

  • emil_t
    RTX3090 working fine but fans not spinning
    by emil_t
    Hello guys. I have a problem with a PNY XLR8 GAMING RTX3090 graphics card. The problem is that it displays and works fine, but the fans don't spin at all. The problem occurred when someone else removed the fans in order to clean it and broke one of the fan connectors. He replaced it himself and after that, it wasn't working anymore. I guess he damaged something else in the process. What i have done so far: I found 2 capacitors next to the connector that were in a bad shape, he must have touched them with his tools - they weren't shorted, but i replaced them with similar ones from a similar card....
    04-12-2024, 06:54 AM
  • master3112
    ASUS ROG Strix- G513IH-HN008, G513-6050A3249301- MB-A04 (A4) damaged Embedded Controller
    by master3112
    I have an ASUS ROG Strix- G513IH-HN008, motherboard G513-6050A3249301- MB-A04 (A4)

    When I received the device, the device has no function. After an investigation, I found that the PWM CONTROLLER RT6575B (U6100) is getting warm and there is a short circuit at the 3V3 output. This normally supplies 3V3 for the embedded controller IT5571E-128 (U301). When measuring and analyzing with a thermal imaging camera, I found that some components are damaged: SLG4E42553VTR (U8500), IT5571E-128 (U301), LAN RTL8111H (U450), LOGIC 74LVC1G08GW (U1900), RT6575B (U6100) All these components are on...
    10-29-2024, 09:32 PM
  • nmbb
    Can not find Model/Value of Thermistor.
    by nmbb
    Machine: Autoclave.
    Brand/Model: SANYO MLS-3780
    Manual: (Sorry search option not working on this PDF)



    Hello guys, this autoclave running with 2 thermistors already connected TH1 and TH3(on CN1,CN2 sockets). One for the water temperture and second one for chamber temperature. But there is another emtpy socket for optional third thermistor CN2 wich is for TH2 for object temperature. I wanna add the third thermistor TH2 to CN2 socket. But i can't figure what model/brand/value i need to use. In manual document, there is no info about TH1 and TH3 model number...
    06-02-2022, 05:55 PM
  • sam_sam_sam
    TL494 PWM Controller Module Booard to control a SMPS switching power supply are they available for this purpose
    by sam_sam_sam
    I have seen some board on eBay and Aliexpress but I have not seen any for SMPS switching power board modules I would like to build one if I can not find one that is already made

    Dose anymore known if there is such a module and where would I find some

    While searching this topic on google I found this

    https://www.badcaps.net/forum/troubl...anything/page3

    I have read through this I have some switching...
    09-16-2024, 05:39 AM
  • sikocan
    Lenovo X1 Carbon 9th Gen Black Screen
    by sikocan
    I believe Chip 2 is BIN is the main one as it contained the Windows product key, marked with XXXXX for now.

    SN: PF3G1REP
    MODEL: 20KW-00J1AU

    PROBLEM: Turns on blank screen, charging circuitry motherboard looks good. I have tried another firmware here - but resulted in 5V will not go to 20v due to different PD firmware I believe - using the current firmware it does go to 20V.

    Requesting a firmware clean/BIOS region cleaned. Here is output from ME Analyzer:
    ╔═══════════════════════════════════════════╗...
    06-24-2025, 09:01 PM
  • Loading...
  • No more items.
Working...