I need to make a fan controller.

Collapse
X
 
  • Time
  • Show
Clear All
new posts

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

    SO I put together a part's list, I just want someone or everyone to double check and correct me on any items.

    I plan on building two of these, one for the application and one for fun. You know to mess around with. It could be used for a backup should I screw up..

    Controller:

    2x Atmega168 chips
    *not sure if it's the correct chip since there were multiple ones to select from.
    http://search.digikey.com/scripts/Dk...44424527095246

    6x kemet 0.1uf 50v Ceramic caps
    http://search.digikey.com/scripts/Dk...44424527095246

    2x 10k Ohm Resistors
    http://search.digikey.com/scripts/Dk...44470209430126

    2x 10UH Inductor choke
    http://search.digikey.com/scripts/Dk...44470209430126

    5x TIP120 Darlington Transistors
    http://search.digikey.com/scripts/Dk...44470209430126

    5x 1N5817 Schottky Diodes
    http://search.digikey.com/scripts/Dk...44470209430126

    5x 1k ohm resistors
    http://search.digikey.com/scripts/Dk...44470209430126

    1x 10k ohm linear rotary potentiometer
    *not sure if this is what I need.
    http://search.digikey.com/scripts/Dk...44501353013998

    2x 4pin 8981 Molex connector
    http://search.digikey.com/scripts/Dk...44474047585041

    2x 6pin header
    *making a inline ICSP interface for my DAPA cable.*
    http://search.digikey.com/scripts/Dk...44474047585041

    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/scripts/Dk...44474047585041

    5x 3pin headers with friction lock
    http://search.digikey.com/scripts/Dk...44474047585041


    NOTE:

    I already have the low frequency decoupling caps which is panny 47uF 50v FC series cap.
    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/scripts/Dk...44474047585041

    2x 470 ohm resistors
    http://search.digikey.com/scripts/Dk...44474047585041

    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
    Last edited by Mad_Professor; 02-10-2012, 05:57 AM. Reason: forgot part

    Leave a comment:


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

    Originally posted by shadow
    The datasheet did say it is optional, however adding it would achieve greater noise immunity to the ADC. So it is not needed but it is nice to have. I did check the schematic for the official Arduino and they did include it (not like that means that much ).
    The Uno and others might have it, but the Severino I built doesn't. (Basic plain serial, no USB, on a single-sided board)

    Leave a comment:


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

    Originally posted by Agent24
    I don't really know the function of AREF. I don't think it needs a capacitor, but I am not sure. The Arduino I built did not have one on it.
    The datasheet did say it is optional, however adding it would achieve greater noise immunity to the ADC. So it is not needed but it is nice to have. I did check the schematic for the official Arduino and they did include it (not like that means that much ).

    Leave a comment:


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

    Just get a low-current axial inductor\choke. They look like a 1/2 watt resistor but a little larger. Yes it will be fixed value.

    If you can specifiy on the website you want an axial one, and then input the value (100uH I think it was?) and then sort by price, you should find the cheapest one will probably be suitable.

    (Like this: http://jaycar.co.nz/productView.asp?...H&form=KEYWORD)

    I don't really know the function of AREF. I don't think it needs a capacitor, but I am not sure. The Arduino I built did not have one on it.

    Leave a comment:


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

    Originally posted by Mad_Professor
    Wow that's crazy.

    Anyways,
    I'm ordering my stuff from digikey.

    But I don't know what kind of inductor I want?

    I'm guessing the one I want is going to be "FIXED" but there are so many variables and types, Half the stuff in the columns doesn't make any sense to me.

    Also does AREF need a ceramic cap?
    I just checked the datasheet for the ATMega168 microcontroller. It is a bit confusing, however it says that analog reference voltage can be set to either AVCC, 1.1V or an external voltage connected to the AREF pin. For your case, I would suggest that AVCC is the most appropriate setting (and probably the default configuration). The datasheet does also say that you can connect AREF to ground using a small capacitor (the ceramic capacitor you are talking about) for greater noise immunity.

    Therefore I would say it is up to you whether you place a capacitor there or not. I do not think it will greatly affect the operation of the circuit for your purposes.

    Leave a comment:


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

    Wow that's crazy.

    Anyways,
    I'm ordering my stuff from digikey.

    But I don't know what kind of inductor I want?

    I'm guessing the one I want is going to be "FIXED" but there are so many variables and types, Half the stuff in the columns doesn't make any sense to me.

    Also does AREF need a ceramic cap?
    Last edited by Mad_Professor; 02-08-2012, 08:04 PM.

    Leave a comment:


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

    http://www.youtube.com/watch?v=hUGzeeTaJCs shows without decoupling capacitor the regulator starts oscillating with 1.2v peak-to-peak ripple at 12Mhz...

    Leave a comment:


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

    Originally posted by Agent24
    Not sure what datasheet you saw? Everything I've seen for any 78\79xx series tells you to use them.

    The first one from National (TI) you get in Google for 7805 shows a 0.22uF on input, 0.1uF on output and says "Bypass capacitors are recommended for optimum stability and transient response, and should be located as close as possible to the regulator"

    I would add them, I doubt they would make a problem even if unnecessary.
    Ah fair enough. I must have come across a dodgy datasheet then. They are definitely required thou. Without them, there is a serious risk of over-voltage on the output side.

    A friend of mine accidentally wired up a voltage regulator without the capacitors. Everything worked fine..until (what he believes) a voltage spike occurred and the regulator could not smooth out the output voltage without those capacitors. Needless to say, the circuit which was connected to the output of the voltage regulator fried.

    Leave a comment:


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

    Only the AVcc pin needs the inductor, which goes from +5v to AVcc.
    Hence, AVcc pin is fed the +5v supply through the inductor.

    Then, an 0.1uF ceramic capacitor goes between AVcc and ground, to decouple it, because it's a power supply pin.

    0.1 or 0.01uF is a good value for anything up to 50Mhz or so - according to this: http://www.hottconsultants.com/techtips/decoupling.html


    Not sure about the AREF pin though. On the Arduino I built (S3v3) the pin is broken-out but by default not connected to anything.

    Originally posted by shadow
    Well looking at their circuit, they used a voltage regulator. The two capacitors are normally a requirement when using voltage regulators. Typically one larger one (typically an electrolytic) and one ceramic (typically very small value). Without these capacitors, a voltage regulator runs the risk of failure. However I looked up the datasheet for the regulator they used in that website and there is no mention of adding capacitors to the circuit.
    Not sure what datasheet you saw? Everything I've seen for any 78\79xx series tells you to use them.

    The first one from National (TI) you get in Google for 7805 shows a 0.22uF on input, 0.1uF on output and says "Bypass capacitors are recommended for optimum stability and transient response, and should be located as close as possible to the regulator"

    I would add them, I doubt they would make a problem even if unnecessary.
    Last edited by Agent24; 02-08-2012, 06:19 AM.

    Leave a comment:


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

    Originally posted by Agent24
    Half of them, yes. Typically there are small value ceramics (0.1uF) next to each IC power pins and then larger capacitors (tens of uF) around the board. Voltage regulators of course have larger ones specifically.

    http://www.seattlerobotics.org/encod...97/basics.html
    http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

    The setup as they show would probably work but without the decoupling capacitors might have spontaneous issues. It's better to add them I think.



    Pin 20 (AVcc) should be connected as they say. If you are not using the onboard ADC (analog-to-digital-converter) function of the ATMega (which I assume you are not right now) then connect it straight to +5v rail anyway.

    If you do want to use the ADC, you need the filter.
    I read both those sites, now everything makes sense.

    They suggest a 47uf 50v lytic for the low freq. and then a 0.1uf 50v ceramic for high freq, would this work? or do I need to adjust?

    I still didn't understand ADC until shadow clue me in on it's purpose.

    Originally posted by shadow
    Well looking at their circuit, they used a voltage regulator. The two capacitors are normally a requirement when using voltage regulators. Typically one larger one (typically an electrolytic) and one ceramic (typically very small value). Without these capacitors, a voltage regulator runs the risk of failure. However I looked up the datasheet for the regulator they used in that website and there is no mention of adding capacitors to the circuit. Judging from how they are wired, it seems like one of them is filtering the input voltage and the second one is filtering the output voltage.



    General purpose capacitors would suffice in this application. So ESR and Ripple typically do not matter. I think adding decoupling capacitors is a nice to have thing.



    You do not necessarily require a hardware reset button (it is your choice). However the programmer (using the ICSP port) needs to be able to reset the microcontroller (it is one of the pins in the port). The reset line is active low. Therefore supplying GND voltage will reset the microcontroller and supplying Vcc voltage will NOT reset the microcontroller (opposite logic compared to normal). The 10k resistor is required as a pull-up resistor. During normal operation, Vcc will be supplied to the reset pin. However if the programmer provides a GND connection (through the ICSP port), then the reset pin will be pulled to GND and the microcontroller will reset.



    Unfortunately things are not so simple because you need to make use of the analog to digital converter (ADC) to use your potentiometer. Therefore according to the specifications, you require a low pass filter to be present on pin 20. According to the specifications, they recommend a 10uH inductor to be connected in series with the power supply and a 0.1uF capacitor to be connected between pin 20 and ground. I have read that many just add the capacitor (and don't bother with the inductor) with good success. Pin 21, Vref also needs to be tied to Vcc (However I have read that it is optional..which seems strange ).



    Pretty much.



    The potentiometer is an analog sensor. It is very very simple to connect. Check out: http://www.arduino.cc/en/Tutorial/Potentiometer

    Basically one side of the potentiometer is hooked up to 5V, the other side of the potentiometer is hooked up to 0V. The middle connection connects to one of the microcontrollers analog input pins. The potentiometer will provide that analog input pin with a voltage between 0V and 5V (depending on how much the potentiometer is turned). The ADC on the microcontroller converts this analog voltage to a discrete value (a number between 0 and 255 from memory on AVR microcontrollers). The program you write can read the value from the potentiometer as a number and act upon it.
    Good! that's one less thing I need to order and I can easily short ground if I need to reset the chip.

    Just when I thought I got everything and was about to start sourcing parts;
    You just had to throw an inductor in.

    It's a good thing I'm asking these questions.

    All right so I supposedly need to put one in series. Does it have to be for the whole chip VCC, AREF, AVCC? or can I wire the inductor in series with a ceramic cap to AVCC?
    Last edited by Mad_Professor; 02-08-2012, 05:39 AM.

    Leave a comment:


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

    Originally posted by Mad_Professor
    Looking at "Building an Arduino on a Breadboard" on the arduino website. They use two 10uf capacitors, I assume these are the decoupling caps?
    Well looking at their circuit, they used a voltage regulator. The two capacitors are normally a requirement when using voltage regulators. Typically one larger one (typically an electrolytic) and one ceramic (typically very small value). Without these capacitors, a voltage regulator runs the risk of failure. However I looked up the datasheet for the regulator they used in that website and there is no mention of adding capacitors to the circuit. Judging from how they are wired, it seems like one of them is filtering the input voltage and the second one is filtering the output voltage.

    Originally posted by Mad_Professor
    I'll need one 10uf 6.3V or 10v caps for the 5v on mine? does ripple matter?
    General purpose capacitors would suffice in this application. So ESR and Ripple typically do not matter. I think adding decoupling capacitors is a nice to have thing.

    Originally posted by Mad_Professor
    They also used 10k resistor for the reset, guess I'll need a reset button when programming the chip.
    You do not necessarily require a hardware reset button (it is your choice). However the programmer (using the ICSP port) needs to be able to reset the microcontroller (it is one of the pins in the port). The reset line is active low. Therefore supplying GND voltage will reset the microcontroller and supplying Vcc voltage will NOT reset the microcontroller (opposite logic compared to normal). The 10k resistor is required as a pull-up resistor. During normal operation, Vcc will be supplied to the reset pin. However if the programmer provides a GND connection (through the ICSP port), then the reset pin will be pulled to GND and the microcontroller will reset.

    Originally posted by Mad_Professor
    I don't understand this but they show pin 20 connected to power in the picture.
    Someone explain this to me and do I need to do the same.
    Unfortunately things are not so simple because you need to make use of the analog to digital converter (ADC) to use your potentiometer. Therefore according to the specifications, you require a low pass filter to be present on pin 20. According to the specifications, they recommend a 10uH inductor to be connected in series with the power supply and a 0.1uF capacitor to be connected between pin 20 and ground. I have read that many just add the capacitor (and don't bother with the inductor) with good success. Pin 21, Vref also needs to be tied to Vcc (However I have read that it is optional..which seems strange ).

    Originally posted by Mad_Professor
    Is that really it? Just a filtering cap on the 5v, a DAPA cable, avrdude to set fuses, arduino for the PWM function, 5x 1k ohm resistors 5x darling transistors 5x Schottky Diodes, add some power and viola!
    Pretty much.

    Originally posted by Mad_Professor
    The only thing left is the potentiometer, and I don't even know how to connect that to the atmega chip.
    The potentiometer is an analog sensor. It is very very simple to connect. Check out: http://www.arduino.cc/en/Tutorial/Potentiometer

    Basically one side of the potentiometer is hooked up to 5V, the other side of the potentiometer is hooked up to 0V. The middle connection connects to one of the microcontrollers analog input pins. The potentiometer will provide that analog input pin with a voltage between 0V and 5V (depending on how much the potentiometer is turned). The ADC on the microcontroller converts this analog voltage to a discrete value (a number between 0 and 255 from memory on AVR microcontrollers). The program you write can read the value from the potentiometer as a number and act upon it.

    Leave a comment:


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

    Originally posted by Mad_Professor
    Looking at "Building an Arduino on a Breadboard" on the arduino website. They use two 10uf capacitors, I assume these are the decoupling caps?
    Half of them, yes. Typically there are small value ceramics (0.1uF) next to each IC power pins and then larger capacitors (tens of uF) around the board. Voltage regulators of course have larger ones specifically.

    http://www.seattlerobotics.org/encod...97/basics.html
    http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

    The setup as they show would probably work but without the decoupling capacitors might have spontaneous issues. It's better to add them I think.

    Originally posted by Mad_Professor
    I don't understand this but they show pin 20 connected to power in the picture.
    Someone explain this to me and do I need to do the same.
    Pin 20 (AVcc) should be connected as they say. If you are not using the onboard ADC (analog-to-digital-converter) function of the ATMega (which I assume you are not right now) then connect it straight to +5v rail anyway.

    If you do want to use the ADC, you need the filter.

    Leave a comment:


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

    Ok so I don't need the crystal and loading caps and I can always add them in if it doesn't perform well. now I know I need caps for the incoming supply.

    Looking at "Building an Arduino on a Breadboard" on the arduino website. They use two 10uf capacitors, I assume these are the decoupling caps?

    I'll need one 10uf 6.3V or 10v caps for the 5v on mine? does ripple matter?

    They also used 10k resistor for the reset, guess I'll need a reset button when programming the chip.


    Originally posted by arduino
    Pin 20 - AVcc - Suppply voltage for the ADC converter. Needs to be connected to power if ADC isn't being used and to power via a low-pass filter if it is (a low pass filter is a circuit that reduces noise from the power source. This example isn't using one)
    I don't understand this but they show pin 20 connected to power in the picture.
    Someone explain this to me and do I need to do the same.

    Source: http://arduino.cc/en/Main/Standalone

    Is that really it? Just a filtering cap on the 5v, a DAPA cable, avrdude to set fuses, arduino for the PWM function, 5x 1k ohm resistors 5x darling transistors 5x Schottky Diodes, add some power and viola!

    The only thing left is the potentiometer, and I don't even know how to connect that to the atmega chip.
    Last edited by Mad_Professor; 02-07-2012, 07:34 PM.

    Leave a comment:


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

    Originally posted by shadow
    I'm not too sure what you mean by this. What chip are you talking about? If it is the microcontroller, there are power pins. One of them will require 5V and another is a ground connection which needs 0V. If you are talking about the external oscillator, it does not require an external source of power. However you do need to connect it to the microcontroller properly and I think the loading capacitors need to be connected to ground.
    The crystal connects between the two external oscillator pins of the uC, then each pin of the crystal has a loading capacitor between it and ground. Typical value is 22pF but crystals can be designed to use different values. The datasheet will tell you which to use.

    In the case of a ceramic resonator (with the capacitors inbuilt), two pins (typically outer ones) go to the oscillator pins on the uC and the third, usually middle pin, goes to ground.

    The oscillator should be as close to the uC as possible, and the loading capacitors should be close to the crystal. The ground connection to oscillator or capacitors should follow as short a path as possible back to the ground pin of the uC.


    Originally posted by shadow
    To tell you the truth, I am not too sure about this. I guess it depends how clean the power from the power supply is. Anyway the sort of capacitors which would be required are very cheap. General purpose capacitors would do which would cost a few cents each.
    +5v rail from the PC PSU is probably OK but if you have issues or doubts, get a 7805 regulator and power the circuit from +12v rail instead.

    Don't forget decoupling capacitor(s) between the uC supply pins and ground. Again, these should be as close to the uC as possible.

    Originally posted by shadow
    I highly recommend you design a stripboard on paper or in software where you can check it carefully for any mistakes. I have used Lochmaster in the past of stripboard designs, it is a fantastic piece of software. Too bad it is not free.
    Stripboard is fairly easy to plan on paper, easier in software, and easier in either if you have already got a working breadboard design.

    There are several free stripboard layout softwares, like VeroDes or the free version of VeeCAD.

    I don't use stripboard much any more and mostly design PCBs with KiCAD which is totally free and open source

    Leave a comment:


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

    Originally posted by Mad_Professor
    If the AVR comes with it's own oscillator then why does it need an external crystal and capacitors? Would it still work without these components or would I need to give the chip special instructions?
    I had to look up the answer to this in the microcontrollers datasheet. Basically the microcontroller will work without a crystal and its loading capacitors. However there are several implications:

    * The ATMega168 microcontroller can run at up to 20MHz, however the internal oscillator has a maximum frequency of 8MHz. Therefore you are limited to a maximum speed of 8MHz.
    * The internal oscillator is not particularly accurate and varies with temperature and voltage.
    * Using the internal oscillator (particularly with slower speeds) does save energy for very low power applications.

    In short, it is possible to use and run the microcontroller without these components, however you will be limiting the speed of the microcontroller to less than half its maximum speed. The ATMega168 in its default configuration is configured to use its internal oscillator at 1MHz. Using the in-circuit programmer (parallel programmer, USBtinyISP etc.), you are able to change the 'fuse' settings on the microcontroller. One can think of a fuse on these microcontrollers as a software programmable DIP switch. There are many of these fuses which determine what kind of oscillator you will use, its frequency etc. You can check out: http://electrons.psychogenic.com/mod...HOWTOGuide.php

    Originally posted by Mad_Professor
    How would you provide power to this chip if the power was coming from a computer power supply?
    I'm not too sure what you mean by this. What chip are you talking about? If it is the microcontroller, there are power pins. One of them will require 5V and another is a ground connection which needs 0V. If you are talking about the external oscillator, it does not require an external source of power. However you do need to connect it to the microcontroller properly and I think the loading capacitors need to be connected to ground.

    Originally posted by Mad_Professor
    as for the chip, do I need the crystal and it's loading capacitor?
    I discussed this above. What it comes down to is whether you are willing to live with a maximum speed of 8MHz or not. For this application, I think 8MHz is more than enough. However ultimately it is up to you.

    Originally posted by Mad_Professor
    Do I need to filter the power from Computer's PSU to the chip?
    To tell you the truth, I am not too sure about this. I guess it depends how clean the power from the power supply is. Anyway the sort of capacitors which would be required are very cheap. General purpose capacitors would do which would cost a few cents each.

    Originally posted by Mad_Professor
    What size strip board do I need?
    Well it depends upon the size of your circuit. I highly recommend you design a stripboard on paper or in software where you can check it carefully for any mistakes. I have used Lochmaster in the past of stripboard designs, it is a fantastic piece of software. Too bad it is not free.

    Originally posted by Mad_Professor
    What other components do I need?
    I think we covered the essential components. Of course there are optional components like having a hardware reset button (which may be useful), voltage filtering capacitors etc.

    Originally posted by Mad_Professor
    and shadow what are the 560 ohm resistors for?
    The 560 Ohm resistors were for the indicator LED's. LED's need to have their current limited by resistors. Since you are not interested in LED indicator lights, you do need require these resistors.

    Leave a comment:


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

    Originally posted by Agent24
    An Arduino is just an ATMega168 or similar, with extra support components and fancy stuff on a PCB.

    All you really need is the AVR itself, its crystal oscillator and loading capacitors (and if your code is non-critical, not even that, just use the internal oscillator), and a decent (filtered) power supply.

    And of course their bootloader so you can use their style of code.

    Everything else is optional depending on what you're doing.
    If the AVR comes with it's own oscillator then why does it need an external crystal and capacitors? Would it still work without these components or would I need to give the chip special instructions?

    How would you provide power to this chip if the power was coming from a computer power supply?

    Originally posted by shadow
    Pretty much every microcontroller now will store its program in flash memory. Flash memory is persistent (just like your memory cards, USB Sticks, SSD's etc.) From memory, FPGA's do not behave in this way, however they are not microcontrollers either.

    To clarify what you said, yes what you are saying will work. However you can not just program the microcontroller that does not the bootloader present with the USB FTDI TTL-232 device. For this to work, you will need to 'burn' the bootloader onto the chip using the ICSP port using the Parallel Cable Programmer, USBtinyISP or similar device. Since you want to save some money and save on the number of components. I would scrap this idea and don't bother with the bootloader and programming via. USB and program the whole microcontroller using the ICSP port.



    This sounds like a good plan. However what I would do is not bother with uploading the bootloader to the microcontroller and just use the Parallel Port Programmer or another (easier to use) programmer the whole time and use it to upload the program to the microcontroller. This way, you save on useless components to you and there is no need for you to purchase a USB to TTL Serial device. Check out this article: http://www.tuki-tam.net/blog/?p=140

    Another nice thing about this approach is you can still program the microcontroller while it's on your stripboard design (just make sure you solder up the ICSP connector on the stripboard design).



    This is absolutely correct. An Arduino is just an AVR microcontroller with nice supplementary circuitry and a standard hardware design that can facilitate 'shields'.

    Some of the nice supplementary circuitry include:
    * Voltage regulated supply - Can use any DC power source between 5V and 12V.
    * Bootloader (normally preprogrammed) - To facilitate programming without special cables or devices via the microcontrollers Serial Port.
    * USB to TTL Serial on board - Not many PC's now have Serial Ports, so a USB to Serial converter is included onboard. With the bootloader, the microcontroller can be programmed via. USB.
    * RC Circuit on the Reset Line - The bootloader is a special small program which is run in the first few seconds when the microcontroller is turned on. On older Arduino designs, the end user had to manually restart the microcontroller (using the reset button) before they were able to program it through the USB Port. More modern Arduino designs now have a RC Circuit present on the Reset Line of the microcontroller so the compiler on the PC can automatically restart the microcontroller before programming the microcontroller.

    There are probably a few more nice things.

    Just to clarify again, the bootloader is only there to facilitate programming the microcontroller via. Serial or USB Port. This is nice as a simple, off the shelf cable can be used to program the device. No need for special cables or devices. It does not do anything else at all. It is not required to make use of the Arduino style language.
    The more I was reading into it, the more it sounded like I didn't need the USB/serial interface. Saved me $20.


    I think I'm ready to build something.

    but since I'm not an EE and I'm just a basic guy with basic knowledge, I'll need some help in design and parts.


    This is what I'm thinking. excuse me if this is too simple.

    Molex:
    12v to fans via 3pin headers.
    gnd to transistor collector.
    5v and gnd to atmega chip.
    1k ohm resistors from transistor base to PWM out of atmega chip.
    diodes from collector to emitter then wire from emitter to ground of fans.

    as for the chip, do I need the crystal and it's loading capacitor?

    Do I need to filter the power from Computer's PSU to the chip?

    What size strip board do I need?

    What other components do I need?

    and shadow what are the 560 ohm resistors for?

    Leave a comment:


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

    Originally posted by shadow
    Just to clarify again, the bootloader is only there to facilitate programming the microcontroller via. Serial or USB Port. This is nice as a simple, off the shelf cable can be used to program the device. No need for special cables or devices. It does not do anything else at all. It is not required to make use of the Arduino style language.
    Whoops, for some reason I thought the boot-loader also did some kind of code translation. Now that I think about it, that would be insane.

    Leave a comment:


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

    Originally posted by Mad_Professor
    If I program the arduino ATmega 168 will it remain or will it clear out like a cmos when the battery is pulled?

    I was sitting here thinking and it came to me from reading this

    http://www.instructables.com/id/Build-Your-Own-Arduino/

    it sounds like I can just program the chip.

    if I program the arduino on the breadboard using USB FTDI TTL-232 cable and then just move the ATmega 168 chip onto a protoboard using a sip/IC socket use the 5V for the ATmega 168 and 12 for the circuit.

    Removing useless components like USB and DC jacks.

    would it work? or am I wrong?

    I wouldn't mine spending the $20 to build something like this. I'll probably use it again for something else.
    Pretty much every microcontroller now will store its program in flash memory. Flash memory is persistent (just like your memory cards, USB Sticks, SSD's etc.) From memory, FPGA's do not behave in this way, however they are not microcontrollers either.

    To clarify what you said, yes what you are saying will work. However you can not just program the microcontroller that does not the bootloader present with the USB FTDI TTL-232 device. For this to work, you will need to 'burn' the bootloader onto the chip using the ICSP port using the Parallel Cable Programmer, USBtinyISP or similar device. Since you want to save some money and save on the number of components. I would scrap this idea and don't bother with the bootloader and programming via. USB and program the whole microcontroller using the ICSP port.

    Originally posted by Mad_Professor
    I think I'll build the arduino.

    I'll build it on a breadboard, Use a parallel port programmer using an old db25 cable to upload the bootloader to the chip. Proceed to build the fan controller that will use the molex 5v/12 of the computer powersupply as power source, 5v for the atmega168 and 12v for pwm circuit.

    Then program via arduino.

    If successful then to stripboard.
    This sounds like a good plan. However what I would do is not bother with uploading the bootloader to the microcontroller and just use the Parallel Port Programmer or another (easier to use) programmer the whole time and use it to upload the program to the microcontroller. This way, you save on useless components to you and there is no need for you to purchase a USB to TTL Serial device. Check out this article: http://www.tuki-tam.net/blog/?p=140

    Another nice thing about this approach is you can still program the microcontroller while it's on your stripboard design (just make sure you solder up the ICSP connector on the stripboard design).

    Originally posted by Agent24
    An Arduino is just an ATMega168 or similar, with extra support components and fancy stuff on a PCB.

    All you really need is the AVR itself, its crystal oscillator and loading capacitors (and if your code is non-critical, not even that, just use the internal oscillator), and a decent (filtered) power supply.

    And of course their bootloader so you can use their style of code.

    Everything else is optional depending on what you're doing.
    This is absolutely correct. An Arduino is just an AVR microcontroller with nice supplementary circuitry and a standard hardware design that can facilitate 'shields'.

    Some of the nice supplementary circuitry include:
    * Voltage regulated supply - Can use any DC power source between 5V and 12V.
    * Bootloader (normally preprogrammed) - To facilitate programming without special cables or devices via the microcontrollers Serial Port.
    * USB to TTL Serial on board - Not many PC's now have Serial Ports, so a USB to Serial converter is included onboard. With the bootloader, the microcontroller can be programmed via. USB.
    * RC Circuit on the Reset Line - The bootloader is a special small program which is run in the first few seconds when the microcontroller is turned on. On older Arduino designs, the end user had to manually restart the microcontroller (using the reset button) before they were able to program it through the USB Port. More modern Arduino designs now have a RC Circuit present on the Reset Line of the microcontroller so the compiler on the PC can automatically restart the microcontroller before programming the microcontroller.

    There are probably a few more nice things.

    Just to clarify again, the bootloader is only there to facilitate programming the microcontroller via. Serial or USB Port. This is nice as a simple, off the shelf cable can be used to program the device. No need for special cables or devices. It does not do anything else at all. It is not required to make use of the Arduino style language.
    Last edited by shadow; 02-06-2012, 04:25 PM.

    Leave a comment:


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

    An Arduino is just an ATMega168 or similar, with extra support components and fancy stuff on a PCB.

    All you really need is the AVR itself, its crystal oscillator and loading capacitors (and if your code is non-critical, not even that, just use the internal oscillator), and a decent (filtered) power supply.

    And of course their bootloader so you can use their style of code.

    Everything else is optional depending on what you're doing.

    Leave a comment:


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

    I think I'll build the arduino.

    I'll build it on a breadboard, Use a parallel port programmer using an old db25 cable to upload the bootloader to the chip. Proceed to build the fan controller that will use the molex 5v/12 of the computer powersupply as power source, 5v for the atmega168 and 12v for pwm circuit.

    Then program via arduino.

    If successful then to stripboard.

    The only thing I haven't been able to solve is how to protect the thing from shorting on the case. I don't really have a place to mount it unless it hangs freely *dangerous* or I have it clamp or doublestick tape to the HDD rack or bottom of the case.

    One idea is to mount PCB to plexiglass via screw studs like the ones you find in computer cases then drill holes in the plexi and use strip ties to whatever. that will work if this thing is not too large that is.

    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...