Jugurtha
Member
Hello,
We have been asked to present a project involving PIC microcontrollers and sensors.
I have for my part chosen to build an Etching Tank for PCBs with temperature control and fluid circulation. I would have loved to do a spray etching tank with some sort of peristaltic pump, but due the time constraints, I don't think I will. Maybe once I deliver this one, I'll look into the other.
My motivation for this project is to hit two birds with the same rock: It is an assignement and, more importantly, it is something which will hopefully be used by the Lab technicians in the Faculty to develop students' PCBs.
This is a sort of a logbook I'll update as I get this done. I'll write down what I have in mind. Also, I didn't post this in the "Homework" section, since I think this is beyond "just" homework, and I'm willing to construct another copy for myself.
As I say, in order to ask a question, one must know something. I have done my research and have a couple of questions. If you'd like to chime in, that would be nice.
Also I have found similar projects, but none very detailed as to their construction, except maybe for these two:
https://www.instructables.com/id/Printed-Circuit-Board-PCB-Sprayer-Machine/
and
https://www.recontech.co.uk/index.php/the-scieng/diy-pcb-etch-tank/40-diy-pcb-etch-tank-introduction
-Fluid Circulation:
This will be achieved using an aquarium pump. If the fluid is not circulated, the reaction etchant/copper would cause local (partial) saturation which will impede the reaction's speed.
Hence, whether it's manually agitating a vessel, spray etching or using bubbles to circulate the fluid, this would improve the speed and cut the reaction time.
-Temperature Control:
I'll go Bang-Bang (hysteresis) control for the temperature. Etchants have an optimal temperature at which the reaction's speed is maximal.
Here's a link of a graph that shows different speed reactions for different etchants:
**broken link removed**
(The page **broken link removed**)
From the readings I have done, 40°C to 42°C would be a good temperature. The page from which the image has been taken mentions that they didn't monitor above this temperature, as there were fumes. So I'll take that into account.
For the Bang-Bang control, I'll set two thresholds: One slightly below the "optimal temperature" and the other slightly above it. There will obviously be a heating element (Aquarium Heater) used and a Temperature Sensor.
If the temperature is below the lower threshold, the heater is turned ON.
Temperature rises, once it reaches the higher threshold, the heater is turned OFF.
Temperature falls, once it reaches the lower threshold, the heater is turned ON... etc.
I will make some room between the thresholds. By this I mean that it takes the fluid some time to reach a certain temperature, and this changes with respect to the ethant used.
I'm thinking of adding flexibility and add controls to set the temperature, maybe they'll just want to heat water in that tank to a specific temperature.
I'm also thinking of adding some sort of display (maybe LCD to display set point and actual temperature).
-Heating Element (mentioned above): An aquarium heater would do. From my readings, I have found that several "aquarium heaters" come with a physical limitation as to the temperature they could go up to. I've read that you could remove this limitation to make them go above that temperature.
-Sensing Element: Sensor. I'll be using an LM135 since I saw it on a nearby store's website and I liked its characteristics.
I would like the sensor to be immersed and I am looking for a way to do that without harming the sensor, since the environment is aggressive. I found an Instructable to make it waterproof, but it uses a cap made of ... copper, and it's an etching tank for PCBs, so you see how funny is this
Since the output is analog, I'll go with a PIC which has internal ADC (Analog to Digital Converter).
Also, since I wouldn't like the heater to be ON when there's no (or not enough) fluid in the tank; I'm thinking of adding a level sensor and some sort of alarm that would bypass the heater and force it to OFF. Just a security measure. It's low on the priorities list, but if I'm ahead of schedule, I'll think about it.
-Air Pump: Small one, with a small flexible tube with holes in it to make fine bubbles. Fine bubbles are better in my opinion.
-The Tank: It will be Plexiglass, I think. I asked for the price, and someone told me about 45 US Dollars for 1m². It will have some valves to drain the etchant to a container, and a lid to protect from splashes.
So my questions are:
1-How do you (cheaply) make a sensor resist a fairly aggressive/harsh chemical environment?
2-Is there a better, widely available sensor than the LM135, and cheap enough for this particular application and in the same range of accuracy?
3-For the level sensing, what would you advise for such an application (not expensive)
4-Which PIC microcontroller would you go with for this ? Have in mind that I'll need internal ADC, maybe two (if I include sensing level).
EDIT: The PIC16F88 seems appealing to me (Small: 18 pin, it has got ADC. It seems a good replacement for the 84
)
The main point is not to go too expensive for something that isn't really worth expensive stuff ... Feel free to make comments about any question I didn't ask.
I include some research about Etchants here:
************************Etchants:*********************
-Ferric chloride: dark brown, toxic, "disposal problems".(40%). ("Never use steel spoons to take some"). "Dispose of it using Sodium carbonate (or Bicarbonate), the result is a sludge of copper carbonate powder and a solution of sodium chloride (salt). You can pour the solution in the drain and throw the sludge to the garbage.", ETO (Pommie, recommended Ammonium Persulfate. Not so great according to Hans - 2008).
-Sodium persulfate (Recommended).
-Acid cupric chloride, acid copper(II) chloride, cupric chloride: Can be regenerated without throwing away the solution. Widely used in industry. (Recommended)
-Ammonium persulfate.
-Ammonia.
-25-50% Nitric acid.
-Hydrochloric acid and hydrogen peroxide.
-Tom Gootee: 1 part Muriatic acid (hydrochloric acid 28%) to 2 parts Hydrogen peroxide (3%).
*************Influence of temperature**********************
**broken link removed**
Temperature above 42°C would cause too much fumes.
-PCB face down: Copper that reacted will "fall down" and not cause "local saturation".
Parameters:
-Tank capacity.
-Heater wattage.
-Etchant used.
-Ambient temperature.
These four determine how long it takes to reach the optimal temperature. And different temperatures for different etchants, maybe?
An approximation: With Ammonium persulfate in a 1L tank with a 50watts heater, it reaches 130°F
(About 54°C) in 5 to 7 minutes, depending the ambient temperature.
https://www.electro-tech-online.com/attachments/tank-1-jpg.10316/
I may seem to go overhead, but bear in mind that simplicity follows complexity and seldom precedes it
(Who said that?)
As always, gentlemen, thank you for your time.
We have been asked to present a project involving PIC microcontrollers and sensors.
I have for my part chosen to build an Etching Tank for PCBs with temperature control and fluid circulation. I would have loved to do a spray etching tank with some sort of peristaltic pump, but due the time constraints, I don't think I will. Maybe once I deliver this one, I'll look into the other.
My motivation for this project is to hit two birds with the same rock: It is an assignement and, more importantly, it is something which will hopefully be used by the Lab technicians in the Faculty to develop students' PCBs.
This is a sort of a logbook I'll update as I get this done. I'll write down what I have in mind. Also, I didn't post this in the "Homework" section, since I think this is beyond "just" homework, and I'm willing to construct another copy for myself.
As I say, in order to ask a question, one must know something. I have done my research and have a couple of questions. If you'd like to chime in, that would be nice.
Also I have found similar projects, but none very detailed as to their construction, except maybe for these two:
https://www.instructables.com/id/Printed-Circuit-Board-PCB-Sprayer-Machine/
and
https://www.recontech.co.uk/index.php/the-scieng/diy-pcb-etch-tank/40-diy-pcb-etch-tank-introduction
-Fluid Circulation:
This will be achieved using an aquarium pump. If the fluid is not circulated, the reaction etchant/copper would cause local (partial) saturation which will impede the reaction's speed.
Hence, whether it's manually agitating a vessel, spray etching or using bubbles to circulate the fluid, this would improve the speed and cut the reaction time.
-Temperature Control:
I'll go Bang-Bang (hysteresis) control for the temperature. Etchants have an optimal temperature at which the reaction's speed is maximal.
Here's a link of a graph that shows different speed reactions for different etchants:
**broken link removed**
(The page **broken link removed**)
From the readings I have done, 40°C to 42°C would be a good temperature. The page from which the image has been taken mentions that they didn't monitor above this temperature, as there were fumes. So I'll take that into account.
For the Bang-Bang control, I'll set two thresholds: One slightly below the "optimal temperature" and the other slightly above it. There will obviously be a heating element (Aquarium Heater) used and a Temperature Sensor.
If the temperature is below the lower threshold, the heater is turned ON.
Temperature rises, once it reaches the higher threshold, the heater is turned OFF.
Temperature falls, once it reaches the lower threshold, the heater is turned ON... etc.
I will make some room between the thresholds. By this I mean that it takes the fluid some time to reach a certain temperature, and this changes with respect to the ethant used.
I'm thinking of adding flexibility and add controls to set the temperature, maybe they'll just want to heat water in that tank to a specific temperature.
I'm also thinking of adding some sort of display (maybe LCD to display set point and actual temperature).
-Heating Element (mentioned above): An aquarium heater would do. From my readings, I have found that several "aquarium heaters" come with a physical limitation as to the temperature they could go up to. I've read that you could remove this limitation to make them go above that temperature.
-Sensing Element: Sensor. I'll be using an LM135 since I saw it on a nearby store's website and I liked its characteristics.
I would like the sensor to be immersed and I am looking for a way to do that without harming the sensor, since the environment is aggressive. I found an Instructable to make it waterproof, but it uses a cap made of ... copper, and it's an etching tank for PCBs, so you see how funny is this
Since the output is analog, I'll go with a PIC which has internal ADC (Analog to Digital Converter).
Also, since I wouldn't like the heater to be ON when there's no (or not enough) fluid in the tank; I'm thinking of adding a level sensor and some sort of alarm that would bypass the heater and force it to OFF. Just a security measure. It's low on the priorities list, but if I'm ahead of schedule, I'll think about it.
-Air Pump: Small one, with a small flexible tube with holes in it to make fine bubbles. Fine bubbles are better in my opinion.
-The Tank: It will be Plexiglass, I think. I asked for the price, and someone told me about 45 US Dollars for 1m². It will have some valves to drain the etchant to a container, and a lid to protect from splashes.
So my questions are:
1-How do you (cheaply) make a sensor resist a fairly aggressive/harsh chemical environment?
2-Is there a better, widely available sensor than the LM135, and cheap enough for this particular application and in the same range of accuracy?
3-For the level sensing, what would you advise for such an application (not expensive)
4-Which PIC microcontroller would you go with for this ? Have in mind that I'll need internal ADC, maybe two (if I include sensing level).
EDIT: The PIC16F88 seems appealing to me (Small: 18 pin, it has got ADC. It seems a good replacement for the 84
The main point is not to go too expensive for something that isn't really worth expensive stuff ... Feel free to make comments about any question I didn't ask.
I include some research about Etchants here:
************************Etchants:*********************
-Ferric chloride: dark brown, toxic, "disposal problems".(40%). ("Never use steel spoons to take some"). "Dispose of it using Sodium carbonate (or Bicarbonate), the result is a sludge of copper carbonate powder and a solution of sodium chloride (salt). You can pour the solution in the drain and throw the sludge to the garbage.", ETO (Pommie, recommended Ammonium Persulfate. Not so great according to Hans - 2008).
-Sodium persulfate (Recommended).
-Acid cupric chloride, acid copper(II) chloride, cupric chloride: Can be regenerated without throwing away the solution. Widely used in industry. (Recommended)
-Ammonium persulfate.
-Ammonia.
-25-50% Nitric acid.
-Hydrochloric acid and hydrogen peroxide.
-Tom Gootee: 1 part Muriatic acid (hydrochloric acid 28%) to 2 parts Hydrogen peroxide (3%).
*************Influence of temperature**********************
**broken link removed**
Temperature above 42°C would cause too much fumes.
-PCB face down: Copper that reacted will "fall down" and not cause "local saturation".
Parameters:
-Tank capacity.
-Heater wattage.
-Etchant used.
-Ambient temperature.
These four determine how long it takes to reach the optimal temperature. And different temperatures for different etchants, maybe?
An approximation: With Ammonium persulfate in a 1L tank with a 50watts heater, it reaches 130°F
(About 54°C) in 5 to 7 minutes, depending the ambient temperature.
https://www.electro-tech-online.com/attachments/tank-1-jpg.10316/
I may seem to go overhead, but bear in mind that simplicity follows complexity and seldom precedes it
As always, gentlemen, thank you for your time.
Last edited: