Sciencemadness Discussion Board
Not logged in [Login ]
Go To Bottom

Printable Version  
 Pages:  1    3
Author: Subject: Electroplating of Nickel, waterless / organic solvent / possibly ionic liquids.
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 23-6-2024 at 16:17


Yes, indeed. I have both urea and sulfourea, and happen to be running an experiment since Wednesday on both of them. xUrea+Formic acid (1 drop), in an ester.

I haven't gotten metal plating from a solution containing either of them; but they are quite conductive.

Urea also works well for increasing solubility of various salts both in molten form, and not.

My experince so far: Urea has a low electrochemical resistance window, and tends to be a little too easily broken down into hydrogen, CO2, and ammonia. Sulfourea is less reactive. I think it may be more reducing.
But that causes precipitation of sludge in a lot of experiments.

I tried urea + CholineChloride a few months ago at ?Draconic Acids? request; It ended up turning black over-night due to electrolysis and plated sludge, only. I'm not sure how to tame it ... ;)


View user's profile View All Posts By User
DraconicAcid
International Hazard
*****




Posts: 4298
Registered: 1-2-2013
Location: The tiniest college campus ever....
Member Is Offline

Mood: Semi-victorious.

[*] posted on 23-6-2024 at 17:32


Well, it was an idea.



Please remember: "Filtrate" is not a verb.
Write up your lab reports the way your instructor wants them, not the way your ex-instructor wants them.
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 26-6-2024 at 10:06


Idea are welcome. I am an experimentalist. I like to test out ideas. :)
View user's profile View All Posts By User
bnull
Hazard to Others
***




Posts: 271
Registered: 15-1-2024
Location: Between the Atlantic and the Pacific Ocean
Member Is Offline

Mood: Sleepy (again)

[*] posted on 28-6-2024 at 06:35


I came across a 2009 patent about mixtures of nitrates for use in heat transfer. You may be interested to try one of them, if you haven't yet. I have no clue about the solubility of nickel salts in these eutectic mixtures.


Attachment: US7588694 - Low-melting nitrates for heat transfer.pdf (957kB)
This file has been downloaded 24 times





Quod scripsi, scripsi.

B. N. Ull

P.S.: Did you know that we have a Library?
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 30-6-2024 at 14:38


I have potassium nitrate and ammonium nitrate on hand. I've tried molten mixtures of these; I also have sodium nitrite.
I don't have lithium nitrate or calcium nitrate on hand.

I do have calcium hydroxide, and calcium carbonate, sodium carbonate, and lithium carbonate; so I might be able to use ammonium nitrate + alkali carbonate, to generate the missing salts. But as always, my ability to predict outcomes of chemical reactions is pretty weak. So, I'm not sure how to check if the proper products have been created.

Looking at the paper, the first thing that comes to my attention is these are hydrated salts (quad-hydrate.)
And removal of water is quite difficult where nitrates are concerned. Nitrates are very prone to giving up oxygen at the anode, as gas, and decomposing.

I've found that nitrite salts, and sulfite salts; are a little more stable in electrolytic cells.
Sodium Nitrite, Sodium sulfite, ( but not sodium metabisulfite), can be made to conduct for quite a while without rapid decomposition.

Is there any particular reason you found this paper interesting; or is it just the fact that it's molten at very low temperatures?

Alum (K-Al sulfate, hydrates), are extremely fusable at low temperatures as well; but again, the presence of water is a problem. They tend to decompose. I have aluminum sulfate, anhydrous, and potassium hydroxide, and have been exploring alum production during electrochemical reactions. This is one of the ideas I may pursue this week, with urea. (Note: All other urea experiments this week failed. Not worth reporting. )


In your copper plating solution with Urea, what source did you use to obtain the copper oxide? I have copper sulfate on hand, which is easy to convert to copper carbonate; but I'm not sure if I hit the sulfate with a torch, if it would decompose to an oxide easily. If it had enough conductivity to plate, it's an experiment I'd like to try replicating even though it's not nickel based. I am able to plate copper in water, very successfully, but I've not tried it in ionic liquids yet.
If you were able to get clean copper to plate out of the solution, I'd be amazed.

View user's profile View All Posts By User
bnull
Hazard to Others
***




Posts: 271
Registered: 15-1-2024
Location: Between the Atlantic and the Pacific Ocean
Member Is Offline

Mood: Sleepy (again)

[*] posted on 1-7-2024 at 03:36


Quote: Originally posted by semiconductive  
Looking at the paper, the first thing that comes to my attention is these are hydrated salts (quad-hydrate.)

Not exactly. The only hydrated salt is calcium nitrate. The other are hygroscopic but not hydrated.

Quote: Originally posted by semiconductive  
Is there any particular reason you found this paper interesting; or is it just the fact that it's molten at very low temperatures?

During college, while I was browsing the Physics Library, I found a method to generate small quantities of sodium from a mixture of sodium nitrate and nitrite using a small lamp as electrode/vial. It came from a 1960s book series on experimental physics, of which I copied the section to a sheet that is buried somewhere in my papers. Since I can't find it now (it's about eight years of loose sheets in no specific order, stored everywhere) or visit the library, I searched and found the original paper: a thesis by Robert C. Burt, "Sodium by Electrolysis through Glass" (attached). That's what prompted me to suggest the molten mixed nitrates. Supposing nickel is soluble in the mixture and is plated out of the solution at lower voltages than the alkaline metals, it seemed feasible to me. The lower temperatures made it even more interesting.

Quote: Originally posted by semiconductive  
In your copper plating solution with Urea, what source did you use to obtain the copper oxide? I have copper sulfate on hand, which is easy to convert to copper carbonate; but I'm not sure if I hit the sulfate with a torch, if it would decompose to an oxide easily.

Copper sulfate plus sodium carbonate. The usual way: decant, filtrate, wash several times with water, dry, heat while stirring until it becomes black. There's no secret. I guess you don't even need to convert it to oxide but, well, I had the oxide and no carbonate.

Quote: Originally posted by semiconductive  
If it had enough conductivity to plate, it's an experiment I'd like to try replicating even though it's not nickel based. I am able to plate copper in water, very successfully, but I've not tried it in ionic liquids yet.
If you were able to get clean copper to plate out of the solution, I'd be amazed.

I only tested the conductivity. It plated but the copper was easily removable because the conditions were unfavorable (me turning the dial from side to side to see where the solution began conducting, and checking what happened to the copper surface on each electrode: one shiny, the other covered in new copper).

Attachment: R. C. Burt - Sodium by Electrolysis through Glass.pdf (2MB)
This file has been downloaded 18 times

Edit: Typos again.

[Edited on 1-7-2024 by bnull]




Quod scripsi, scripsi.

B. N. Ull

P.S.: Did you know that we have a Library?
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 1-7-2024 at 13:45


OK. I read the paper(s). Yes, I see now that only the Ca salt was a hydrate; the way the first sentence was written was unclear to me.
They also are able to successfully dehydrate (or mostly) by heating to 150C. This could easily be done with my electric mantle.

In the second paper, R.C. Burt, he notes that the molten salt releases NO3 gas during electrolysis, and that's perfectly consistent with my observation of alkalai-NO3's willing-ness to decompose during electrolysis.

The issues I suspect, then, will be whether or not the NO3 will prefer to gassify rather than to dissolve nickel anodes; and secondly, what the presence of nickel does to the Eutectic mixture's melting point.

These salts are mildly strong oxidizers, so I'll have to see what they do with kerosene and silicone oil. I will probably dessicate them first, exposed to air; at about 150C; but I can probably get away with them under kerosene or silicone oil if melting carefully at <95C.

One other question comes to my mind, and that's how much carbonate presence will cause precipitation/hardening/melt temperature change.
I only have Lithium in chloride and carbonate forms right now.


I'll start by replicating your urea and copper oxide formation idea; I'm going to mix sodium hydrogen carbonate, with copper sulfate, and I'll attempt to to avoid making the resulting precipitate too alkalai; because that might re-dissolve the copper carbonate. At least, that's what I recall being a source of failure the last time I tried it. Then I'll torch it, to see how easy it is to oxidize.

260mg CuSO4 pentahydrate, 87mg NaHCO3, should have enough carbonate to totally make CuCO3; but it will likely be basic Cu2OH2Co3, or something like that. I'll add in steps, and stop if the water goes clear early.

But: I only have half the sodium, to make sodium sulfate (Na2SO4); therefore it's possible that the reaction won't go to completion or will be slow; Na-H-Co3 + Cu SO4 -?-> Na-H-SO4 + CuCo3

I dissolved 260mg CuSO4 in 50mL reverse osmosis water; observed some bubbles sticking to glass, which is typical since RO water has some CO2 pre-dissolved.
I Dissolved 87 [mg] of baking soda, in 5 ml of RO water. Same bubble formation issue observed.

I waited untill CuSO4 completely dissolved, and then added 2.5CC of the NaHCO3 solution to it.

Coloidal suspension immediately forms in the beaker. No CO2 gas evolution observed. Cover with cap to keep bugs out, and let it sit. Will check it later.


Edit: After 2 hours, precipitate has settled. Water is still very slightly blue, so I went ahead and added the remaining sodium bicarbonate. It's clear enough, though, that I think the majority of the copper has already been removed. I may not get a complete reaction yield, this way; but I think it good enough. I'll just remove water by pippette, and rinse it three times over the next day or so.

Rinsing complete; 3x 100 mL -- I have a nice even precipitate layer.

It has the azurite/malachite blue green color spectrum, which I expected.



[Edited on 2-7-2024 by semiconductive]
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 4-7-2024 at 13:13


The precipitation gave 72 [ mg ] of basic carbonate from 260 [mg] of pentahydrate.

I have 1.04₂ [ m · mol ] of copper

Cu=63.546 [ g / mol ] CO₃=60.01 [ g / mol ] OH- = 17.008 [ g / mol ]
Cu₂ · (OH)₂ · CO₃ = 221.₁ [ g / mol ]

Assuming perfect conversion to basic carbonate, I ought to have: 115 [mg] of product.
72/115 ≈ 60% conversion.

Hmm ... I'll have to try this again, later, with double the sodium carbonate and see if the conversion efficiency goes up. I got more than half converted, so it seems at least some Sodium Hydrogen sulfate was formed.

Test tube oxidizes nicely to copper oxide. Yes!

About how much urea, do you think, would be appropriate for a first attempt?
View user's profile View All Posts By User
bnull
Hazard to Others
***




Posts: 271
Registered: 15-1-2024
Location: Between the Atlantic and the Pacific Ocean
Member Is Offline

Mood: Sleepy (again)

[*] posted on 4-7-2024 at 14:47


Quote: Originally posted by semiconductive  
Hmm ... I'll have to try this again, later, with double the sodium carbonate and see if the conversion efficiency goes up. I got more than half converted, so it seems at least some Sodium Hydrogen sulfate was formed.

I always used an excess of sodium carbonate. Copper carbonate (I should call it basic copper carbonate but old habits die hard; sorry for that) is not much soluble in sodium carbonate as it is in sodium hydroxide. At least that's what I had observed long ago.

Quote: Originally posted by semiconductive  
About how much urea, do you think, would be appropriate for a first attempt?

Hmm... From 500 mg to 1 g of urea. I don't know the solubility of copper oxide in urea; I suppose that it dissolves as an amino complex, given the blue color and the smell of ammonia after dissolution. The color when molten is close to this deep blue. Melt urea, add a bit of copper oxide, shake the tube, insert electrodes, and add more copper oxide as the color weakens.

[Edited on 4-7-2024 by bnull]




Quod scripsi, scripsi.

B. N. Ull

P.S.: Did you know that we have a Library?
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 6-7-2024 at 11:19


Hmm.
The copper reduced to a fine oxide powder in the test tube; kind of greenish-grey/black. ( Slightly less than 400C cooking temperature, roughly 35 watt ).

It's a bit of a pain to work with this small amount of copper oxide (I'm mildly disabled. )

So, I'm going to just put about 1/2cc worth of urea prills on top of it, cover with kerosene (which just acts as an air barrier), and melt the urea into the powder. This ought to make bubbling from 'fizzing' as you called it, visible.

I can make more copper oxide, later, if this shows any promise at all.
Picture of test tube just before capping with kerosene.


vlcsnap-2024-07-06-12h06m13s415.png - 655kB

View user's profile View All Posts By User
bnull
Hazard to Others
***




Posts: 271
Registered: 15-1-2024
Location: Between the Atlantic and the Pacific Ocean
Member Is Offline

Mood: Sleepy (again)

[*] posted on 6-7-2024 at 15:48


Quote: Originally posted by semiconductive  
So, I'm going to just put about 1/2cc worth of urea prills on top of it, cover with kerosene (which just acts as an air barrier), and melt the urea into the powder. This ought to make bubbling from 'fizzing' as you called it, visible.

It will be very visible: it will foam a lot. I did today as you said, putting urea on top of copper oxide but without kerosene. I don't know if it would stop the foam from rising up the test tube (probably, yes). When solidified, it looks like the picture below.
20240706_201554.jpg - 1.6MB

A couple of pictures of the copper complex (tetraammine, or so it seems) dissolved in molten urea from yesterday.
20240704_193337.jpg - 222kB20240704_193319.jpg - 159kB

Edit: Typo.

[Edited on 7-7-2024 by bnull]




Quod scripsi, scripsi.

B. N. Ull

P.S.: Did you know that we have a Library?
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 6-7-2024 at 17:07


I have a lot of things to report. I took a bunch of pictures, and can post images for whatever is of interest; but I'd rather not post 100 shots of nothing... ;)

I put kerosene on top; and heated the kerosene rather than the urea. This caused a slow melting process of the urea and gave me good control. There was significant gas coming off the urea as it turned blue. It did not foam, at all, in my experiment.
It just released gas, some of which I think was steam.

vlcsnap-2024-07-06-12h32m04s699.png - 410kB

Conductivity rose before the urea had melted. I used a copper anode and a graphite cathode. It rapidly rose in conductivity as it started to melt, in fact it was too conductive. I had to put a resistor limiter in to reduce the electric heating. I've already got a 30W soldering iron touching the test tube from behind (the philips screw on it is just visible in the picture. ) This is enough heat.

Overcurrent, like I had, creates side products. I'm not sure how much it might have affected the rest of the experiment.

It's pretty obvious that the copper is extremely reactive with urea. And from the odor, I think copper oxide encourages transformation of urea into ammonia when water is present. The slight ammonia odor went away as the reaction progressed.

For my next attempt, I won't bother to oxidize the copper; because I'd like to test if urea is reactive enough to decompose carbonate; and if the ammonia smell will be avoided.

A couple of times, I got it too hot; but quickly reduced temperature. If significant gas came off the anode, I would cool it.

As the urea finally melted, I could see a thin layer of copper form on the graphite electrode. It re-dissoved shortly thereafter. The color reminds me of ammonia-copper etching color, sort of off-color salmon pink/brown. Once the urea was finally melted, I removed the graphite electrode; cleaned it, and replaced it in the liquid to make sure there was nothing on the electrode interfering with plating.

No furthur plating after returning it to service for two hours. The current level was easily adjustable from 3mA to 45mA, and gas in proportion to the current was forming at the electrode.

The color was so dark blue that it was difficult to see the electrodes. So I added about another 1/2 CC of urea prills on top. I watched the blue liquid wick up onto them as they melted. It's quite obvious that the melting point of the blue liquid was *much* lower than that of the urea prills. And it's also obvious that adding extra urea was raising the melting point of the whole mixture (not desirable.)

The liquid slowly darkened again, and I thought I had added too much heat. Since the tube was messy, I decided to change the kerosine and the test tube. After letting it solidify, I decanted; broke up the solid urea and transferred it to a clean test tube. I could see the solid chunks were slightly greenish in color, except for where the air could reach it, where it became pure blue again.

This makes me suspect that the blue color is actually a hydrated ammonia ion / ligand. But: Under kerosene, (hypothesis), the mass turns green slowly as it drys; and it's melting termperature rises, cauing solidification.

After quite a while, it would no longer melt. I raised the heat, and am not sure if I caused decomposition or not. But, it still conducts electricity even when semi-solid. It is not until the temperature becomes almost room temperature that conductivity stops.

At this point, I decided to add an ester that is liquid. I was hoping it would lower the melting point of the mixture. It did; although most of the mass remained solid. However, after about an hour and a half I could see the ester starting to brown; which means the heat was well above the melting point of normal urea.

On the other hand, in the presence of ester; copper began plating on the electrode.
It's dingy, not bright; but it still was plating out; This is at 2 [mA] current.

Shall we try again?
Suggestions / questions ?

vlcsnap-2024-07-06-15h01m01s539.png - 322kB

vlcsnap-2024-07-06-17h37m42s073.png - 288kB


[Edited on 7-7-2024 by semiconductive]
View user's profile View All Posts By User
bnull
Hazard to Others
***




Posts: 271
Registered: 15-1-2024
Location: Between the Atlantic and the Pacific Ocean
Member Is Offline

Mood: Sleepy (again)

[*] posted on 7-7-2024 at 10:17


Thank you for your observations. I didn't expect that much from urea. Amazing.

Quote: Originally posted by semiconductive  
I put kerosene on top; and heated the kerosene rather than the urea. This caused a slow melting process of the urea and gave me good control. There was significant gas coming off the urea as it turned blue. It did not foam, at all, in my experiment. It just released gas, some of which I think was steam.
And possibly a lot of ammonia.

Quote: Originally posted by semiconductive  
It's pretty obvious that the copper is extremely reactive with urea. And from the odor, I think copper oxide encourages transformation of urea into ammonia when water is present. The slight ammonia odor went away as the reaction progressed.
Yes, apparently. CuO hydrates to copper hydroxide and then decomposes urea to ammonia and carbon dioxide, which could explain both the effervescence and the blue color. Edit: Most probably there's no hydration and copper oxide in the presence of water catalyses the decomposition of urea, liberating ammonia and carbon dioxide (if so, then [CuO+H2O] behaves as a strong base; how odd). Like this:$$H_2O(l)+(NH_2)_2CO(l)\xrightarrow{CuO/\Delta}2NH_3(g)+CO_2(g).$$
Quote: Originally posted by semiconductive  
As the urea finally melted, I could see a thin layer of copper form on the graphite electrode. It re-dissoved shortly thereafter. The color reminds me of ammonia-copper etching color, sort of off-color salmon pink/brown.
Strange. It reminds me of an oscillating reaction with iron electrodes in acid; it involved passivation and depassivation. Schönbein had discussed it with Faraday for a while. In the present case, it could be a critically damped oscillation.

Quote: Originally posted by semiconductive  
I could see the solid chunks were slightly greenish in color, except for where the air could reach it, where it became pure blue again.

This makes me suspect that the blue color is actually a hydrated ammonia cation. Under kerosene, the mass turns green slowly; and it solidifies.
The green color may be due to the formation of a copper(ii)-urea complex (see, for example, Omar B. Ibrahim, Complexes of urea with Mn(II), Fe(III), Co(II), and Cu(II) metal ions).

Quote: Originally posted by semiconductive  
After quite a while, it would no longer melt. I raised the heat, and am not sure if I caused decomposition or not. But, it still conducts electricity even when semi-solid. It is not until the temperature becomes almost room temperature that conductivity stops.

At this point, I decided to add an ester that is liquid. I was hoping it would lower the melting point of the mixture. It did; although most of the mass remained solid. However, after about an hour and a half I could see the ester starting to brown; which means the heat was well above the melting point of normal urea.

On the other hand, in the presence of ester; copper began plating on the electrode.
It's dingy, not bright; but it still was plating out; This is at 2 [mA] current.
Do you think it possible that the ester you added generated a copper salt that is soluble in urea and from which copper plates out more easily, while the organic anion reacts with the copper complexes in solution, repeating the process?

Quote: Originally posted by semiconductive  
Shall we try again?
If you don't mind, by all means do so. It has been more interesting than I had initially suspected.

Quote: Originally posted by semiconductive  
Suggestions / questions ?
I've been thinking of trying copper(ii) acetate. I happen to be waiting for it to crystallise from a solution. The idea was to make large crystals but I can do that another day. If copper acetate dissolves in urea without decomposing it, it would be a better choice. Easier to make and purify, no need to roast it like coffee. The process would be essentially a Kolbe electrolysis with urea as solvent. There are some questions which I can't answer for now: (1) Kolbe electrolysis of acetate works by way of free methyl radicals. Will urea be methylated? (2) If urea is methylated, what will happen to the solution, and will copper be plated onto the electrode? Edit: I forgot that Kolbe electrolysis is usually done with alkaline cations. I don't think it proceeds with copper as cation, hence no methylation of urea and both questions are answered. Oh, well.

Only one suggestion. Try paraffin wax in place of kerosene. Apart from being non volatile and less inflammable than kerosene, you can pre-mix copper oxide with it and the reaction rate with urea in the molten state slows down considerably. It will need some stirring/shaking, that's the downside.

Attachment: complexes-of-urea-with-mnii-feiii-coii-and-cuii-metal-ions.pdf (541kB)
This file has been downloaded 17 times

P.S.: Sorry for the long post.

[Edited on 8-7-2024 by bnull]




Quod scripsi, scripsi.

B. N. Ull

P.S.: Did you know that we have a Library?
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 8-7-2024 at 12:29


Quote:
P.S.: Sorry for the long post.


Don't apologize! I write books unintentionally for posts, darn it!
:D

Quote:

Do you think it possible that the ester you added generated a copper salt that is soluble in urea and from which copper plates out more easily, while the organic anion reacts with the copper complexes in solution, repeating the process?


In the presence of water, I have observed esters breaking down into their constituents whenever acid or strong base is present. But, I didn't add any ester until after the solution had become nearly solid and green under kerosene.

On the other hand, I think there are too many steps and possible side reaction variables for me to really guess whether it could or could not. I'll need to do additional tests to figure that out.

The ester I used this time was citrate based, because citric acid is resistant to oxidation. I don't have enough experience to know for sure whether it would react since this is my first attempt at copper; BUT: It generally *doesn't* react with nickel ions present.

I don't know how the ethanol I esterified it with could get displaced when the urea has already been cooking long enough to drive out any free water and is solidifying even at high tempertature ?

I didn't see bubbling when adding the ester; so I don't think significant ethanol was released as it was hot enough to boil. eg: Adding an ester did not make a visible reaction before electrodes were re-inserted. The picutres are bubble free.

If it did react with electrodes, the obvious product would be copper citrate dissolved in molten urea. I could make copper citrate either in water, or perhaps (to avoid water) in methanol, DMSO, etc. ( Or suggest something simple! ) I have the citric acid; would that answer the question?

The article you linked was interesting. I have a working visible Jaz spectrometer, which could characterize the green or blue color spectrum; but nothing that can take and compare against the FTIR spectra listed in the document. I have very little way of figuring out what kind of ligand I have in solution, and my chemistry experience from is from college is 35+ years ago, and was my worst subject. I'm a honors BSEE, but not even an undergrad chemist, here. ;)

I'm pretty sure, though, that Molten urea won't be fully spectrum tested by me; the square optical vials I have are disposable plastic and would melt. I could take surface reflectance spectra of molten urea with a surface reflectometer in a glass test-tube, but it would have to be manually done since the drivers for Jaz spectrometers are written in java and crash on linux systems. :(. I'd love to be able to monitor ligand concentration by color, but I'm limited to manual spectroscopy at the moment unless I can find an open source Linux driver that *works* with ocean insight spectrometers. Their support is not very good.

Wax; yes, I have that and occasionally use it. But it's a pain to clean out of test tubes. I have silicone oil, as well, which is less flammable; but I've never had a flame problem without chlorates or oxide-nitrates involved; so I'm not too concerned yet. The quantity of kerosene I'm using is so small, (Those pictures are through a microscope lens) even if it goes up it just is like a match striking.

But: I generally see smoke gathering in the tube slowly before ignition; and then there's usually not enough oxygen because of the smoke filling the test tube.

Squirrel knocked over the CuCarbonate I set outside today; will have to re-precipitate a new batch.
Look for post below ... eventually.





View user's profile View All Posts By User
bnull
Hazard to Others
***




Posts: 271
Registered: 15-1-2024
Location: Between the Atlantic and the Pacific Ocean
Member Is Offline

Mood: Sleepy (again)

[*] posted on 8-7-2024 at 15:18


Quote:
If it did react with electrodes, the obvious product would be copper citrate dissolved in molten urea. I could make copper citrate either in water, or perhaps (to avoid water) in methanol, DMSO, etc. ( Or suggest something simple! ) I have the citric acid; would that answer the question?

Maybe. I forgot that esters are soluble in urea; according to Clark, "[h]ydroxy compounds, ketones, esters, anilides, aminoacids, substituted hydrazines, etc., are readily soluble and decomposition is rare." Ester would partition between kerosene and the still liquid urea. Decomposition is rare when there is only urea and the ester in solution. He says nothing about what happens when there is more than one solute.

Still assuming that [CuO+H2O] (or Cu(OH)2, for that matter) is a strong base, and I'm skating on thin ice here, the ester would decompose and form copper citrate, which is soluble in urea etc. If decomposition is slow, ethanol would diffuse from urea to kerosene and then evaporate quietly.

About the linux driver, no luck here. It seems they don't give a damn about linux.

Quote:
Squirrel knocked over the CuCarbonate I set outside today; will have to re-precipitate a new batch.

I know how it is, I have cats.

By the way, copper acetate is soluble in urea. There is decomposition without bubbles. It smells of ammonia and acetic acid. Again, blue color of tetraammine complex. Copper was plating out, "dingy, not bright; but it still was plating out".




Quod scripsi, scripsi.

B. N. Ull

P.S.: Did you know that we have a Library?
View user's profile View All Posts By User
EF2000
Hazard to Others
***




Posts: 141
Registered: 10-5-2023
Location: The Steppes
Member Is Offline

Mood: wrooom

[*] posted on 8-7-2024 at 22:29


Quote: Originally posted by semiconductive  
I'd love to be able to monitor ligand concentration by color, but I'm limited to manual spectroscopy at the moment unless I can find an open source Linux driver that *works* with ocean insight spectrometers. Their support is not very good.

I don't know will it work or not, but there's SeaBreeze, described as
Quote:

device driver library that provides an interface to select Ocean Optics spectrometers. It is written in C/C++ and builds and runs on Windows (XP/7/8), MacOSX, and Linux (x86/x64/ARM)

Found on sourceforge: https://sourceforge.net/projects/seabreeze/, but not found anymore on Ocean Insight website.
There's also python modules based on SeaBreeze (python-seabreeze, spectrabuster), but they are more for automating the process. Almost anyone would prefer a GUI (I apologize to any robots reading this).




Wroom wroom
"Head is a terrible thing to lose" - Tolle Koenig
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 9-7-2024 at 10:12


Thanks.
Quote:
I don't know will it work or not, but there's SeaBreeze, described as...


Downloaded, transferred to my Raspberry PI™ (ARM platform) in the lab.
From the documents, this is restricted to the USB cable and not TCP/IP.
Still, that's fine. IF it works at *all* that's better than what I've got now.

Code:
cd seabreeze-3.0.11/SeaBreeze make


and .. no plug and play joy.
Quote:
../../../include/common/features/Feature.h:62:13: error: dynamic exception specifications are deprecated in C++11 [-Werror=deprecated]
62 | throw (FeatureException) = 0;


This is a warning elevated to an error; which means seabreeze is basically not being maintained and has grown old;

Edit: The MIT license for SeaBreeze is 2014; so this code was using depreciated coding on the day it was written.

Quote:
Almost anyone would prefer a GUI


:D

I prefer something that actually works on a Raspberry PI™ which is the educational platform, open source, (de-facto) used throughout the world; and using it without charging me industrial prices for a hobby.

I don't mind writing a python script to control soldering iron temperature in response to SeaBreeze feedback.
I'll attempt to use a USB RS232 dongle, to turn on and off a 110VAC outlet so I can temperature regulate the test tube via soldering iron and monitor the color change vs. time.


[Edited on 9-7-2024 by semiconductive]

This bug has been known since 2017, fix is to set compiler to --std=c++03
https://sourceforge.net/p/seabreeze/tickets/34/

But still no joy, new error:

Quote:
PixelBinningFeatureAdapter.cpp:58:14: error: catching polymorphic type ‘class seabreeze::FeatureException’ by value [-Werror=catch-value=]
58 | } catch (FeatureException) {


I will try:
Editing file, src/api/seabreezeapi/PixelBinningFeatureAdapter.cpp
I Searched for every catch statement, and put an ampersand after the constant being caught:

line 58, for example:
Code:
} catch (FeatureException&)


Still no joy, new error in a different file.
Quote:
NativeUSBLinux.c:35:10: fatal error: usb.h: No such file or directory


What?! usb exists on a raspberry PI!
... thinking ...

Code:
# find / -iname usb.h # ... /os-support/windows/WinDDK_Includes/usb.h # ... /include/native/usb/USB.h


Hmm .. but I don't have a system header in lowercase, called usb.h , on the raspberry PI -3 ™.
Annoying. I'm going to have to upgrade all the software on the Raspberry PI ™ just to see what the header file name is for the USB system the PI already has.

Code:
$sudo apt-get --fix-missing upgrade $sudo apt-get update # Rebooted here, didn't start correctly, but had white screen with waste basket. # I logged in using ssh, and reconfigured apt-get: $sudo apt-get --configure -a # Now, to re-install the usb package; I need to know what version of library is used: $ldconfig -p | grep libusb libusb-1.0.so.0 # The header file is always in the development version, so install dev version: $sudo apt-get install libusb-1.0.0-dev $sudo apt autoremove # Clean up any unused packages.


re-running make now complains about a missing USB.h, that is *upper* case; from the same line! :mad:

I know that file exists in SeaBreeze as /include/native/USB.h
What educated i***t made gcc report an upper case file as lower case, before...
Oh well, I've shown how to update Rasperry pi ™ as a bonus.

Editing, src/native/usb/linux/NativeUSBLinux.c
commenting out line 35, since <USB.h> is a c++ header, and this is a *C* file.

And now I have a bunch of undefined linux functions. Replacing line 35 with: #include <llibusb-1.0/libusb.h> // fixes nothing.

Checking kernel headers, and Linux USB native does not have the missing functions .

Checking the SeaBreeze readme.txt, I see it! They want libusb version 0.1 for Linux.
I'm not doing that. I'd end up breaking my raspberry pi which uses version 1.0 already.

so, time to manually upgrade seabreeze to usblib-1.0.
Small headache! I've got to read a bunch of api names, and changes.


More to come *if* I'm able to debug SeaBreeze device driver....


[Edited on 10-7-2024 by semiconductive]
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 10-7-2024 at 22:09


I successfully ported SeaBreeze's native linux USB to use a modern libusb-1.0
SeaBreeze's USB interface will now will compile on any Raspberry PI.

I see the jazUSB being built, which is my spectrometer.
Therfore, I'm getting excited :cool: This might actually work, and not be a waste of time.

The package is almost completely built, but ... :(

In file src/common/Log.cpp, false indentation had to be deleted in two places.

And after that, I got this weird error which took a while to figure out:
Quote:

BlazeUSBTransferHelper.cpp:81:49: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object
std::vector<unsigned char>’ with no trivial copy-assignment; use copy-assignment or copy-initialization
=class-memaccess]
81 | memcpy(&outBuffer[0], &buffer[0], length);

It'm not sure it's really a bug; and I can forced the file to compile by explicitly typecasting the buffers to (void*).
Example:
Code:
memcpy( (void*)&outBuffer[0], (void*)&buffer[0], length )


On to different bugs ... or rather, repeats of earlier bugs in new places:

Polymorphic catch errors show up in the file:
src/vendors/OceanOptics/features/data_buffer/DataBufferFeatureBase.cpp

It's an easy fix: search for every catch statement, look for word fpnfe in it, and prepend an ampersand:

eg:
Code:
catch (FeatureProtocolNotFoundException &fpnfe)


Same kind of bug in file: src/vendors/OceanOptics/features/light_source/LightSourceFeatureBase.cpp

There is a "catch( FeatureProtocolNotFoundException ex )", that needs an & before the "ex".

And 4+ more of them in file: /src/vendors/OceanOptics/features/spectrum_processing/SpectrumProcessingFeature.cpp

And 4+ more of them in file: src/vendors/OceanOptics/features/thermoelectric/ThermoElectricFeatureBase.cpp

And 6 more of them in file: src/vendors/OceanOptics/features/pixel_binning/STSPixelBinningFeature.cpp

At this point, a handful of "notes" scrolled by which I'm going to ignore for now.
And the make exited all directories and tried the final link of 'test', at which point it bombs because the library it needs to link is not -lusb

I edit "common.mk", and find the linux part and the flag "-lusb" is, and just change it to "-lusb-1.0"

The SeaBreeze driver now compiles against libusb-1.0. YAY !!!!!!

There is an annoyance in: sample-code/c/demo-pthreads.c
The 'snprintf' commands, need to be replaced by 'sncat' commands.

on line 164
Code:
strncat( line, msg, sizeof(line)-strlen(line)-1 );

and line 324
Code:
strncat( line, devices[i].serial, sizeof(line)-strlen(line)-1 );


And, finally, that's the last of the bugs.
Make finishes building SeaBreeze with no errors.
Therefore: I have all of SeaBreeze and test programs installed on my Raspberry PI ™. :cool:

Now to actually find a USB cable, plug in my spectrometer ... and see if it works.

EDIT: Yes !!!!!!!!!! it DOES! This is AWESOME.

There is a single bug that I noted during testing; Linux does not call USB close when when signals are caught. If your seabreeze application is killed by a unix signal; the USB interface will be left *claimed* as if open. This results in the spectrometer not being openable again, until a USB reset or power-cycling happens.

I have a Jaz, so I reset my spectrometerer with vendorID (Ocean Optics), 0x2457, and product Jaz 0x2000.

Code:
sudo usbreset 2457:2000


I have also just found an ocean optics Raman Spectroscope within my price range which SeaBreeze has a driver for.

Hopefully, I can find or make a power supply for it; otherwise I'll have to watch for another one in the coming months.

Here's a patch file to fix SeaBreeze, in case anyone else wants to use my upgrades.


Attachment: seabreeze-3.0.11a.diff (41kB)
This file has been downloaded 10 times

[Edited on 12-7-2024 by semiconductive]
View user's profile View All Posts By User
semiconductive
Hazard to Others
***




Posts: 300
Registered: 12-2-2017
Location: Scappoose Oregon, USA.
Member Is Offline

Mood: Explorative

[*] posted on 11-7-2024 at 10:39


Copper sulfate, pentahydrate 255 [mg] in 45 ml R.O. water.
+ 170 [mg] NaHCO3 in 5 ml water.

Extra metallic support on 5 sides, makes a partial Faraday cage.
My experiment ought to be safe even if lightning strikes.

Scheduled to change water 3x rinsing precipitate thoroughly, through Saturday 7/13.



IMG_20240711_112608.jpg - 454kB
View user's profile View All Posts By User
 Pages:  1    3

  Go To Top