Andrew Que Sites list Photos
Projects Contact
Main
New Belt Needed

New Belt Needed

   As the weather becomes warmer, I am wearing less layers.  I am now down to a single shirt, and I've noticed my pants just are not staying up with the tightest setting on my belt.  So, I drilled 3 new holes in it.  Seems the new tightest setting is nice and snug, and should keep my pants from wanting to fall off.
   Pictured is my belt pulled such that it isn't too tight.  It clearly demonstrates the need to for more holes.  I have warn size 32x32 pants for at least 10 years, likely longer.  My guess is my waistline is now somewhere between 30 and 28 inches.  I think I recall buying 28" pants right after high school.  My weight has been pretty steady the past month, and it is likely this is the skinniest I have been in 19 years.

Until I can switch out the battery charger on my solar setup, I have to deal with the strange grounding problems it produces for measuring current. Since I was able to measure all three currents with a computer isolated from the charger, it is clear isolation is the key. There is a way I can do this with my existing setup. It requires an isolated power supply, and optical isolators for digital signals. The power supply doesn't need to be big—just needs to drive three A/D converters. And I only need two digital signals for the I2C bus. These signals can run at over 400 kHz, so my optoisolator needs to be fast. Luckily, they make such devices—and make them in through-hole packages. I found a cheap isolated power supply, and some 2 channel, 10 MHz optoisolators. In a couple weeks, I should be able to test them out.

May 21, 2015

Experiments with Digital Potentiometers

I tried an experiment with some digital potentiometers that unfortunately ended in failure. I have a buck converter with two potentiometers: one for setting output voltage, and the other for setting a current limit. I removed one of the potentiometers and wired in a digital potentiometer. In theory I should be able to control the voltage from an Arduino. The digital pot takes a simple command from an SPI bus to select resistance, and each device consists of two potentiometers.

Initially things seemed to be going well. The digital pot was easy to wire in, and easy to control with the SPI bus. But I was never able to set the buck converter to anything higher than 6.5 VDC no matter how much/little resistance I set. I could go from 0 to 6.5, but everything stopped after this point.

I tried several things, none of which had an effect. The following day at work I asked an electrical engineer what might be the problem. They pointed out something I had overlooked. Digital potentiometers have some kind of analog switch internally in order to switch resistance. Those switches have a maximum voltage—VCC plus a little extra. Over this voltage, they would not work correctly and the resistance skewed. A quick look at the data sheet and this was clearly my issue. At 5 volts, this device could not handle the input voltages. My converter could have voltages up to 20 volts. They do make a digital pot that can use voltages in this range. Should I continue this route, I may have to pick one up.

May 20, 2015

Digital Potentiometers

Today I played with what I thought to be a buck-boost converter. Turns out when I bought it I didn't read the description very carefully. It is actually just a buck converter and can only lower voltage. This will not work for my application, but does give me a piece of hardware I won't feel bad if I destroy. What am I going to do with/to it?

In addition to ordering the converter, I also picked up some MCP42100 digital resisters. They allow the resistance to be set over an SPI bus interface. The buck converter I picked up has two potentiometers: one for voltage and one for current. My plan is to replace the potentiometers with the digital equivalent. This should allow me to control voltage and current from the Arduino. A very cheap Arduino controlled variable power supply.

The purpose? The first step is just to see I can make it work. If it does work, I want to do this with a buck-boost converter and turn this setup into a smart battery charger. Used in combination with maximum power point tracking (MPPT) and an optimum charge algorithm for lead-acid batteries, I should be able to make a superior to the one I am using—and hopefully eliminate some of the strange problems with measuring current I have encountered.

Pictured is me at Governor Dodge State Park. Picture by Lisa B.

With replacement hardware in hand, I went about fixing everything I blew up in my last experiment. I'm getting better with my hot air rework station and quickly had an ADS1115 replaced. In addition to destroying all three ADS1115 chips, I also managed to short something that destroyed the Atmel CPU on the I/O shield—for the second time. It too was changed out quickly.

It was time to implement a little current protection to protect my replacement A/D converters. I used precision 100k resisters to both protect the circuit, as well as a 22 μF cap for a producing low-pass filter. I quickly had the setup working on my test Arduino, and everything looked good. Then I moved the setup to the I/O shield. This time when I powered the I/O shield up there was no smoke. But after a lot of frustration, I found I was not reading anything across the shunt resister. This only happened on the I/O shield.

I tried hooking up my bench top power supply to the analog input, and it was reading that just fine. But it refused to read anything on the current resister. Using my multimeter I could see that when I plugged in the current sense into the A/D, the voltage dropped to almost zero. I had a thought and tried disconnecting the Sun Dragon's power from the battery. Sure enough, I began to receive correct current sense readings.

I suspect there is something about how the battery charger is wired into this circuit that is causing the problem. The charger connects all the positives together but switches the negatives for doing it's charge functions. This method of uncommon negatives might be causing me problems. I will have to consult some electrical engineers at work to see if they can shed any light on the problem.

The good news is, nothing exploded this time. The protection offered by the resisters kept whatever strange current loop I have going on from hurting the hardware. So despite not working, progress is being made.

   Went on a hike today at Governor Dodge State Park with a friend.  We started on a trail on the north east side of the park, working our way south.  From a rocky outlook I could see an other area of rock I wanted to see.  I asked if we could get there and she did not know.  So we decided to go for it.  Once close to where I thought the rocks should be, we went off the trail in search of the location.  We tromped through brush and up the side of a hill and eventually found what we had been looking for.  After spending some time admiring the view form this location we started back.  Although we tried, there was no trail to find and we had to fight our way through brush and bushes to get back.  It worked out well, although I did get scratched up from some of the less than friendly shrubs.  I ended up a little sunburned on my arms on face, but it wasn't bad at all.  Should tan up and I should be set for the summer.
Graber Pond

Graber Pond

   Did a 10 mile ride today and decided to seek out some place I had not been before.  Looking at the map I found Graber Pond on the north west side of Middleton.  It would take me through an area I had never been and end up putting me in Pheasant Branch Creek Conservancy for the return trip.  The weather has been quite warm the last several days and aside from some pretty steady winds has been good for riding.
   Traveling in the quite new part of the Middleton Hills neighborhood I found a almost park like setup top one of the highest points.  It has a very clear view to the north and north-north-east.  I am always on the lookout for good high locations for photography, especially if a thunderstorm is moving through.  This isn't the best for that because most of our weather arrives from the west, but should I want to photograph the tail end of the storm this location will work.
   After the ride in the evening I hadn't had enough and went on a hike with Steve up Frederick's Hill at Pheasant Branch Conservancy.  Took a couple of low-light shots from the hill and as we were walking around.
   Started receiving SPAM to an address assigned answers.com.  And not that kind just trying to get you back to their site, the classic pill sales kind.  That says to me this site got hacked and their database stolen.  That's a large site for this kind of accident.