Monthly Archives: July 2013

You are browsing the site archives by month.

My Silly Pondcam – Post 10

It is the next day. I was so tired yesterday. I did so much family stuff and then worked on the pondcam and blogged until 2:30AM (Again…). I have to wrap this up so I can get back to boring suburban dad life and get to bed at a regular hour.

We did a ton of stuff and today I want to test it all. But there is one problem it is dark outside. One thing we can do is check our camera.

I did another coat of the rubberized spray last night before I fell asleep. After work today, I went down and peeled back the blue painters tape and here is what it looks like.

1-final-camera

I probably wouldn’t call that “pretty”, and it is still a little bit ugly, but much better than the frankencam hack job that was so obvious through the plexiglass.

Let’s pretty up our antenna and mount our camera. I use the much more flexible thin cable to connect the antenna and hold it down with zip ties. I bolt our camera to the bottom and we are done. Here is what it looks like in the garage.

2-mounted-camera-on-antenna mount

Oh.. I have to test this, but it is dark outside. I don’t care. I bring it out by the beach and set it up. Here is a picture.

3-camera-outside-in-dark

All I want to do now is test it. The access point fell overnight because the blue painters tape came free that I was holding up the antenna. I fix this and am too exited so I place it in the window any way that it will stay.

4-wap-with-directional-in-window

I then connect up the camera. I watch carefully as it starts up because when I drilled one of those holes it did pound the camera board a little and I wonder if it will do anything. I see the light flickering like it always has then after it totally boots up the light turns off. Here is what it looks like with the battery attached.

6-camera-with-battery-connected-in-dark

Looks good to me, lets go to the workshop and power up the netbook.

7-netbook-shows-camera-in-dark

I am really happy now, I can totally see the wires and the grass that the camera is pointing to, but don’t want to stop testing. I want to bring the camera to the other side of the pond. We have all of these high gain antennas I just have this feeling I can get this thing going really far away. There is a pretty high berm on the other side which is the furthest away from the wireless access point I can take it on my property in the direction of the pond. It is a little hike.

I grab the camera/antenna and the battery. Now one thing you can’t tell from pictures is how scary my property is at night. There are 13 or so huge red oak trees that are like 200 years old and they are 60 feet high (maybe more), like the pondcam the oak trees are ugly and menacing looking at night. My house is a log house and right now it is pretty well lit up, but we don’t have a lot of outside lights. There is tons of wildlife our here, the biggest thing on my mind is coyotes. I know what you are thinking, “No one gets killed by coyotes. The only case was out east, we don’t have those kind here, out there they are half-wolf, here they are more like little dogs, you are a grown man you could just kick them and run.” Yes… You make perfect sense, but it is really scary and really really dark. We live a half mile from the fire station and anytime a fire truck comes out at night you hear all of the coyotes. You almost never see them, but when they hear a siren, you hear like 20 of them. And they are all over the place. Sure I can fight off one coyote… Maybe two of them, but 20? I don’t think so. And, a few feet away from where I want to place the camera my neighbor told me a couple of years ago that he saw a mom coyote with pups that would growl at him every time he would mow lawn. Let me put it this way, I don’t want to be that first dolt that gets killed by a pack of coyotes in the Midwest. Anyway… That was my fear creeping in. Pondcam is way more important than me getting eaten by coyotes so, I march on and get it all set up. I connect everything and power it up. Here is a really crappy picture of it from the beach.

8-picture-of-pondcam-far-away

See that light blue dot, that is the camera with our light turned on. Now let’s get inside and see if we can connect to it!

Nope nothing. I can’t see it. I can’t ping it. I can see that every once in a while it does come up, but it just isn’t reliable. I mess with the directional antenna and try to point it at the antenna way out there on the other side of the pond. Still nothing.

I think about it for a little while and have nothing. I am ready to just call it a night, but as usual I think a little more and get roped in to doing more.  So, I decide to keep messing with things. I definitely would rather mess with something in the light than go out there with all of the coyotes. I try to think of a way to get more gain on our wireless access point in the house. I do see this in my wireless bin.

10-super-cantenna

This is pretty cool. That is a “super cantenna” it is a really powerful directional antenna. I have it because when I do security assessments for my customers it may be necessary for me to try to break into a customers network from outside their office or branch office. With this connected to a notebook, I can point it at different areas of their building and try to pick up wireless signals that I can break into. You just aim it at the area you want to pick up signal and the rest is just messing with software. Right next to it is the adapter I need to connect it to our wireless access point.

I grab the access point off the windowsill and stick our “cantenna” on it. I grab a lawn chair and just point it right at our camera antenna that is all the way out on the other side of the pond, that is also running on that battery in the dark. It looks really goofy. I just plugged it right into the top with an adapter and no wire to move it around. Here is a picture.

11-cantenna-and-wap

I really don’t know if this will work. All of the hacked connections I made to connect things introduce some loss, but I have no idea how much. Also, on my way out the coyote side of the pond I bumped that antenna on the ground. I think to myself, “It did fall off the roof years and years ago, it is probably OK”. But who knows? I run inside and look at the netbook.

12-netbook-can-see-pondcam

That is tough to make out, especially if you are not an IT guy, but it is exactly what I was hoping. The netbook can see the camera. The packets being sent by that ping command are now coming back just fine. And it is really low latency too. It should give me a picture. Let’s pull up the software.

13-picture-in-the-dark-from-netbook

That is tough to make out too, but that is grass in the front where the light is hitting. Beyond that grass is much taller grass and then the pond.

Here is a better picture I grabbed as a screen shot from my desktop before I started writing.

pondcam-working-far-away

I am really happy with this and want to let the pondcam run like this overnight. So I did three things: I made a firewall rule on my home firewall so I can connect to the camera from the Internet tomorrow, if it is still up in the morning. I also wrote a script that runs from my workstation to send me an email if it goes down in the middle of the night. I really want to do this test because I need to know how long that battery will run the camera for without solar power charging it. But I will share what time it went down at night if it does go down. I brought the camera out there at about 9:15PM. It is now 11:32PM. It has been on this whole time. I wonder if it will go all night.

I was so excited about this I brought the netbook upstairs and dragged my wife into looking out the kitchen window past the pond and having her watch me turn on and off the light from the netbook (My wife is not technical at all and probably only read the first paragraph of post 1 and then stopped). I was sure to tell her, it doesn’t matter where I am in the world I can look through the camera and turn on and off that light. She looked solidly unimpressed, but did say, “I think our kids will end up smart because you are interested in this stuff.” My gosh if that is not the green light to continue my project what is?

—-

So it is the next day. 7:30PM. I didn’t see any emails so I assume the camera is still up and working. I try to connect to it and can’t. I check my test script that I wrote and it looks like it didn’t work correctly (I thought I tested that last night, but apparently there was something wrong with it).  I worked all day at a customer site, so didn’t even get a chance to look at it from a remote connection. I did know that it was working this morning. So a full charge will most likely run the camera all night. I doubt that the solar panels can fully charge those batteries and run the camera in one day, but who knows unless we test. I moved the camera back by the beach and connected the solar panels to the battery, then the battery to the camera. Looks like I have nothing to do until tomorrow. I will be excited to check if it is on when the sun comes up.

14-camera-attached-to-battery-solar

Oh… Crap… I just checked the weather. It is going to rain tomorrow. I don’t even know if the camera will actually turn on at this point. The solar panels have to do two things:

1) Charge the batteries.
2) Have enough juice left over to turn on the camera.

It didn’t turn on in the “low light” of dusk. Dang… I can’t wait to check it tomorrow to see if it turns on. I really don’t think it will though. It just seems like it will be too much for those solar panels in rain and probably clouds.

 

My Silly Pondcam – Post 9

Has it really been 9 posts about the pondcam? Oh… that is bad. And they are long too (At least that is what I am hearing. My response is always, “They are mostly pictures!”).

Post 8 was all yesterday and it is still fresh in my mind. It felt like a total bust but I did so much work to get around things I didn’t feel that let down. Here are some very important takeaways from Post 8:

1) Waterproofing did work. I don’t know why it worked, but it seems to be fine. I sunk that sucker a whole bunch of times during testing and no water got in the case. We may actually be in really good shape on the part I thought was going to be the hardest.

2) This is really important. I am 99% sure we learned what our whiteout issues were in post 2. It was a setting on the camera and has nothing to do with power. That tells me all sorts of things. One of the most important is our solar panels and batteries are pretty good for this application. I don’t remember if I wrote about it, but when I didn’t see a picture when we were testing the camera outside, I was convinced that the blank video we were seeing was because we weren’t getting enough power, so I became obsessed with turning off the light. I learned something wrong more than a week ago and it followed me every step of the way until Paul was here. In medicine this is called “Diagnosis Momentum“. Diagnosis Momentum is when a doctor makes a diagnosis and states in on a patients chart (In our case the patient is the camera, and the chart is blog post 2) then forever, further treatments even from other doctors are pigeonholed into treating the wrong illness. In medicine people die and it is a big problem. In my world, it just means a camera shows white instead of a picture. I am not sure what doctors say when they are in this situation, but a very common thing to do in IT is pull a colleague over and say, “I need a second pair of eyes”. Paul broke the code on this really quickly. He didn’t fall for my previous diagnoses of the “no picture” issue, I was happy he didn’t.

3) Aside from the “whiteout” issue I just described we had all sorts of connectivity issues. Paul didn’t like the little access point we were using. He took one look at it and was like “what?!? is that what you are using?”. I really thought I did enough testing in post 1 to prove that this was working correctly. I did find that broken connector from the camera, but we still need more gain. Sadly I have to do more wireless testing before sinking it again.

4) Because of what I just learned about our connectivity. I really beefed things up; I put an extension on our camera to lift up the antenna. I gave our access point a better antenna too. Hopefully those things should help a lot.

Now that we covered the lessons learned from our last effort and how we overcame them lets move on to something more interesting. I don’t like the way the light or the camera sits in our case. How do I fix that? Here is a picture to give you an idea.

1-ugly

See how the camera is crooked. That makes the lens angle up. I don’t want that. Another thing, you can’t see is the light broke free of its glue and is sitting back a bit from the inside front of the case.  To fix this I am going to drill three holes into this case. I know what you are thinking, “What did you just say?!!??! You can’t drill into that case it is water proof, just leave it and move on!!!! You stupid jerk, just don’t do it”. Why do I know you are thinking that? Because I thought the exact same thing after I drilled the last hole. I thought, “Oh crap. I really screwed this case up now. There are three holes in it and the idea wont work, it is just stupid. You should have left it alone”. Well too bad so sad, I didn’t leave it alone so I was forced to move forward with my plan. Here it the plan.

Note: When I drilled the last hole I put too much pressure down and the drill bit in the front went down a little hard against the camera board. I don’t know if it is broke. It looks fine, but you never know  for sure until you test. If you see me really excited about the next time we turn the camera on it may just be because it is simply still working.

2-holes

I am going to drill the following three holes. Each hole we be as close as possible to the exact thickness of the wooden stick we bought at the hardware store yesterday. I am going to cut a piece of that stick and push it through to make the camera and light move in the direction I want. Then I am going to epoxy over the hole, let it cure, then put a coat of Goop around the epoxy for good measure.

1) In the back of the camera I am going to drill a hole and push the light forward so it is against the case.

2) I will then drill another hole right beneath it to push the camera board forward so the lens is against the glass.

3) I will drill another hole in the bottom front of the camera to push the bottom of the camera board back so it sits straight.

Here is a picture after all three holes were drilled and our pegs put into place to make the camera and light be were we want them.

4-wooden-support

If you look carefully you can see them. The camera and light are in place. The black tape is for putting over the epoxy to hold it a little and make sure it doesn’t leak while it cures.

Here is a better shot as the one above isn’t as clear.

5-wooden-support-another-angle

While I am waiting for it to cure, I decide to put some extra Goop on our top. Only because it is easy and one less place for water to get in.

6-back-view

That was were I left it all last night and it dried and looked really solid. When I woke up this morning my 6 year old handed me this and said, “Dad, do you know what this is a picture of?”.

7-picture-resistor-bugs

That was great. Another interesting thing happened too. I was at my brother-in-law’s house and he said you need to figure out how to stick an LED on one of those bugs and make it light up. Needless to say I have been trying to think of a good way to do that. That is a really good idea. I will post the results if I can figure out a good way to do it.

Here is a picture of our camera the way it looked when I got back from all of the fun family stuff today.

8-camera-ready-for-makeup

Everything is straight and flush in the case. I can’t think of anything else to do. So let’s put some lipstick on this pig.

I first mask off the two things we need to actually “see” out of that case. The camera lens and the light.

9-mask

Then I take it out to the garage and spray it down with the black rubberized coating. Here is what it looks like drying in the shop.

10-camera-painted

I am too tired to do anything more today, so I will stop.

One last thing… On an only slightly related note. If you remember from several posts ago I lost my black jumper and blamed it on my kids. Nope… It wasn’t them. I found it in my wireless bin. Hooray!

black-jumper

I love cleaning up loose ends. Don’t you?

My Silly Pondcam – Post 8

OK. We got our Pondcam all in the case. It is pretty permanent. I technical can pull of that top and still get at the camera with a lot of effort and cleaning afterword (Goop does come off plexiglass and plastic pretty well, but it takes some work). Let’s hope we don’t have to take that top off.

My brother Paul is coming over and I need to help him with a computer issue he is having so I need to kill some time without making any real progress because I want to rope him into helping me with the camera (He is an IT guy too and very technical). So I think I will start with this mess.

1timet-to-clean-up-desk

You know the drill by now. Everything gets put away except the stuff we need for our place in the project. I can put the charger in the garage we are done with that for now. The drill can go away. I can put the soldering iron away, we don’t need so much of this stuff because we have come really far.

2-clean-desk

That is much better. I brought in the mount for the camera because we are going to need it. Paul still isn’t here so I decide to go to the hardware store. I have three things on my list:

1) I want to see if they have some sort of waterproof sealant. I plan to do some underwater testing today, but after we are done I would like to spray it with something to give it a final coat of protection.
2) I need more solder. We have like less than an inch left. We shouldn’t need it anymore, but I hate being out of solder.
3) I want to get a new socket 9/16ths. I didn’t write about it, but it is the most popular one to use. It is good for bikes, a lot of nuts and bolts on my tractor. And because it is the most popular that is the one that is always gone. I know it is around, but I couldn’t’ find it so I want to get a spare (I can blame this on my wife because my six year old just started riding without training wheels, so she put it somewhere and I have no idea where to look).

Now when I go shopping I ask my kids if either of them want to come with. To my surprise my two year old wants to go and my six year old wants to stay home and wait for Paul and his kids to come over. It is usually the other way around. So I am happy, me and Cordie get in the car and head over to Ace.

Cordie and I don’t get to spend a lot of time together so I decide to spend as much time as possible at the store. I go through every single isle that may have some long shot of what we will need. And it paid off. Here is what I got.

3-slealant

This looks pretty good to give our camera a final coat. They had three different colors; black, white and clear. I definitely don’t want clear because I want to cover up all the ugly. I wanted the sealant to be dual purpose: First – waterproof, Second – makeup. I am totally on the fence about white or black. Would black scare away the fish? Would white be better? I have no idea and will decide later.

While wandering through the store I also saw this.

4-marine-epoxy

This type of epoxy is different as you roll it together like a putty. If this plexiglass case works well I may want some of this to make another one. The epoxy I am using now got all over the place.

And I totally need some of this.

5-solder

More solder and something else we need.

6-9-16ths

We really need a way to fasten the camera to the base of the mount easily, I hated doing that with vice grips and I am not sure what to do about securing our camera to the base so I got some of these.

8-bungees

They look like they will work. I have a need to make that camera and the light more level, but the case is closed so I bought one of these. I will explain what I plan on doing with when I get to that part.

9-cylinder

Now it is hard to see but those two sticks are actually perfectly round. I am not sure the size. It used be be one piece. I let Cordie play with it in the store, she didn’t break it. It ended up getting broken in the trunk, I am not sure why, but it doesn’t matter. I plan to cut it up anyway.

As Cordie and I were wrapping things up at the store I found these.

7-brackets

They really do look like the right size so I bought them. I have no idea if these will work as I didn’t measure them. If they fit, I will mount these to our center pole to attach our camera. I am thinking, “Yes I totally need this because what if a big fish gets mad at the camera some day and wants to eat it? These will hold it solidly in place”…. If they work.

Time to start getting stuff put together so we can continue (Paul still isn’t here, but I don’t care… Pondcam can’t wait). I want to mess with those brackets and bungees we bought to mount the camera securely to the pole.

Interesting note. After I got back from the store, I saw this by a workbench in the garage.

10-9-16ths

That is my missing 9/16ths. I grab that one and use that. I put the new one in my socket box. Now on to the camera. I set it up and tighten all bolts to make it secure. I fasten the camera with both the bungees and our brackest to see if any of them work. Here is what it looks like all put together.

11-camera-brackets

To my surprise they both worked very well. The brackets especially. I won’t need the bungees. Here is a close-up.

12-brackets-on-camera-closeup

Oh… I almost forgot there is something still in my car from the hardware store. I bought one of these.

13-weed-wacker

I know you are thinking, “What is that and what do you need it for?”. I can’t remember what it is called, but today I will call it a “manual weed whacker”. If you ever used one you will know how handy they are, you swing it like a golf club in thick weeds and it trims it all down to the ground. Why I need one is this.

14-weeds

In the picture above I an to put the camera right in the upper left. The problem is that I will have to mess around through this, unless I can cut it back.

15-weeds

Eventually I hope to make short work of the above picture with my terrible golf swing using a “manual weed whacker”. I do have a real weed whacker, but from what I remember from my pre-teen years a manual one is what we want for this.

Paul still isn’t here and I really want to sink the camera today. I have to think of something more to do before he gets here. I have an idea of how to test it in water before he gets here. To test it in water I need some room underneath the base of the camera in the mount. You will see why in a minute. For now I just raise it so that it is no longer touching the ground.

16-little-lift-on-camrea

Hooray… After I do this Paul shows up. I get him to help. We pull some tables out and fill up my fish tank with water.

17-fish-tank

My plan is to just take the camera and its mount and place it over this and look for bubbles. Here is what the camera looks like next to the tank.

18-cool-camera-next-to-tank

We anxiously lift it into the tank and look for bubbles.

19-looking-for-bubbles

No bubbles. Let’s turn it on!

20-uh-oh

This is a problem I wasn’t expecting. The light is on and stays on. The problem I can see right away is that it is too bright outside. It is cloudy today, but there is still way more light out here than in the basement. I never tested for that. Looks like it will be “BLACK” for our waterproofing / beautifying session with the rubberized spray I bought at the hardware store. So I am not going to worry about that now, I am going to bring out the netbook and take a look.

21-netbook-picture

It is tough to make out, but it is the whole “no picture” issue. I am stunned that it is doing this. Paul and I are both trying to figure it out and try so many different things. I can’t possibly post all of the troubleshooting that went into this because it will be up to 4AM and still not be done. Since I have to go to Mass tomorrow I will sum up and say that there was a setting in the software called “anti-flicker” that seemed to be the trouble. When we were outside it was so sensitive to light that it just washed everything out in white. I don’t know why antiflicker would do that, but it is probably in the manual that I didn’t read except for getting voltage and current. All of the panic and troubleshooting in Post 2 was probably not necessary.

After we got that ironed out we did put the camera in the pond for fun to see if it would work at all. Here is a totally embarrassing shot of what it looked like.

22-camera-in-pond

When it was there I went up to my desk to see if we could see anything and it was the same old thing. Just a whole lot of nuthin’. I did notice today the pond was so cloudy I couldn’t imagine seeing anything in that water. I am clearly have to have two places for this camera, one that is in the pond and another that is over the pond.

We did more tests and realized that we just didn’t have good wireless connectivity. It is the middle of the summer and my pond gets low. It pretty much follows the water table. This spring the pond actually was all the way up to the beach and almost touching the driveway. Paul said we really need to get the antenna of pondcam higher. I agree. Here is a picture of our last connectivity test that was no good. The antenna is far in the distance behind those green chairs on the beach.

23-access-point-out-in-the-yard

Our access point has been brought out as close  as our Ethernet would allow us. Still nothing! I don’t understand this, as we should have really good connectivity.

OK.. We have to settle this connectivity thing. Let’s see what we have. I don’t know if you noticed in a lot of those pictures of our wireless access point. But there is an interesting thing about it. Let’s look at it more closely.

24-no-antenna

Yep.. That is right, no external antenna. I want to put one on it. But I need to see if I have one. Let’s look in my wireless bin.

25-6dbi-antenna

Oh… That is right… An 8dbi wireless antenna. Let’s connect this to our access point. I know what you are thinking, “You can’t connect that to the wireless access point, there are no external connections”. I don’t care. I have a feeling I can put it on one way or another.

I try to bust open the case, Paul gives me some song and dance about FCC and how you are not allowed to attach high gain antenna’s to 802.11 devices and how hard it is, blah… blah…blah.. I don’t care. After some work I get the case open and what do I see.

26-three-places

Those are the same little connectors we had to deal with in the camera. After some soldering, cutting a hole in the top and  really having a hard time with that connector we end up with this.

27-8db-on-access-point

Now that antenna is a directional antenna, so it focuses all of its power on the face of it toward where you are pointing it. I mount our new antenna back at the garage window and point it at the pond.

What about our pondcam antenna? It is too low because the pond is so low this time of year. Well lets do something about that too. I have this.

28-cable

Oh and we need to get that antenna to our camera as high as possible, I have this too.

29-extension

That is an extension for the roof mount for our antenna. Let’s put this together in the same way I attached it to my old house to give my neighbors free wireless.

Note: When I was first married I was mounting this on the roof of our old house. I didn’t want to bolt it to the roof because I wasn’t sure if I would cause a leak so I used cables to the edges of the roof. Something happened and one cable slipped loose and everything came tumbling down off of the roof, inside the house the sound it made was really loud. We were newlyweds at the time and she thought I had fallen. The expression on her face was a learning moment for me. What I leaned was, I had someone that cared about me a ton and needed me, be careful and don’t kill yourself doing something stupid. Lesson learned. I don’t even need a ladder with my pondcam project. Oh… And bonus… The solar panels and batteries won’t kill me unless I eat them (I do think I could eat the solar panels and not die, the batteries on the other hand would definitely kill me).

30-antenna-high

That will be about 10 feet or so which should allow a way better connection. When I go to move the bracket and antenna to the top I see this.

31-bad-connection

See that little crink in the red coating around the white wire? That end is about to break off. I make a note that I have to fix that (It actually did break off when I brought the camera to the desk later on). That actually may be all of our issues with connectivity. That connection isn’t meant to be roughhoused like we have been doing. I need to solve all of these connection issues, I find all of the new connections we need and replace this one with one that would be better for this application (I have adapters that let me connect things in a low signal loss way). I get the antenna moved to the top of our pole and clean everything up.

Note: I did take a lot of pictures of me putting ends on a couple of new cables. It was a lot of work, but documenting little things like that today is really hard. Here is a summary without pictures: I made one cable for our antenna, but I replaced the broken camera antenna adapter with a different one that we can mess with more. I have an adapter that will fit it to two cables that can reach our antenna. One is really thick and hard to work with, but will have less signal loss, the other is perfect for our purposes, but may not work as well. If you see different cable going up to the antenna in future pictures I will be messing with both.

I will show you one more picture though of our cables. I have one very thick cable with little loss that is hard to work with, then I have this one.

32-nice-cable

Nice and flexible. I think I may like this one better.

That is all for now… It is 1AM. I totally learned a lot today thanks to Paul being here. I would never have messed with that video part of the software without his help. At one point he said, “Before you open the water proof camera lets troubleshoot it a bit… I have a webcam at home that has some video settings”. That saved the day.  I totally was thinking lack of power was causing our trouble with the “no picture” but it was a setting in the video. It still doesn’t make sense to me that changing the “anti-flicker” setting would have fixed that washout issue we were seeing.

I did more this evening, but that will be for another post. Sorry… I so wanted to show a picture of the pond. This post reminds me a lot of post 2. I hated that post. It seems like every time I try to bring the camera out to the pond it doesn’t work. Grrr!

To continue reading see post 9.

My Silly Pondcam Post 7 – Almost There

OK… Last thing we did was test our relay light and finally made sure the camera would run reliably on that 12 volt battery. I glued that photoresistor right to the front of our camera and that is dry now. We really need to test that. First I need some more wire. I really hate all the wire I am using. They are all very stiff. The problem is I don’t have any other wire, so I am stuck.. But I do have a lot of old power supplies from computers. Lets bust one of the broken ones open and steal some red and black wire.

pc-power-supply

I solder everything up permanently. Connect the relay to the 12 volt power from our camera power supply, then I connect the light through the relay and pick 5 volts off the 5 volt power jack in the back. I position the light at the top the camera as it would appear in our water proof case. This is what it looks like.

camera-with-light-attached

I now have to attach our top with our cable  assembly for power, transmission and network. I solder all the connections permanently.

attaching-cable-assembly

I slide it all into our case. It fits really nicely. A little snug, but that is good. I have trouble getting it in there because the wires are stiff and tend to spring back away from where I want them. Here is how it looks.

camera-in-case-test

I can’t glue anything in place permanently now. I may have to take it all apart again as we have not tested our photoresistor that is glued face down on those LEDs in the front. As I tape the top on the light gets pushed off the plexiglass and now sits crooked. I make a mental note that I will have to spot glue that in place before putting the top on permanently. Here is the full camera without the antenna that we will be testing.

camera-top-taped

We are so close. At this point I really just expect everything to work. That photoresistor is right there up next to the LED, so we really should be good. I attach the camera to the power supply and watch it. Right away I see something that isn’t right…

power-up-camera-with-light

The little LEDs are on, but our light is not on. Then something happens. I can’t take a picture of it, so I will have to explain it. The network activity LED (The red one that flashes, is tripping the relay. Every time that thing turns on and off the light blinks. It is blinking and blinking and I can hear the relay going off like a telegraph machine from the movies and with the light it is like a disco. It is kind of cool looking, but useless as we cant have it be that way.

I can see right away there are two things wrong. First I connected the light to the wrong leg of the relay. One of the legs is a closed switch when the relay is not active, the other is closed when the relay is active. I move that first and test. It is still almost the exact same behavior where the flickering LED is controlling the light instead of the steady LED right next to it.

I need to fix this. We are way too close. There has got to be a solution. In my mind I am thinking it may be a long time before we get this back into the case as this just doesn’t seem right at all. I may have to go back to transistors.

I don’t know if you have every had this feeling, I have it all of the time. When I run into problems, almost no matter how complicated, I always have this feeling like the solution is right their for me to know and I just have to find it from somewhere in my brain, it is like the solution is right there and I can get it. I have to think about this. The solution should be simple. I know we need more current and I want to pick that extra current up by the light. I remember our batteries weren’t very good at the beginning of this project and grab a voltmeter to measure the voltage from our 12 volt battery. Nope… 12.7 volts. That is not the problem.

I can see a little blue light coming from through the glue so I decide to put another photoresistor and glue it face down right on the blue that I see coming through the bottom of that one photoresistor that is already glued down. I temporarily wrap the ends around so it is in parallel to the original. As it detects a little light, it should just dump that little extra current to the relay to make it behave. It will be a little ugly, but our camera is already very ugly. Here is what it looks like as I glue it in place.

dual-photoresistors

Here is a better shot of what it looks like from a different angle after it is dried.

two-photo-resistors-in-parrellel

I test it and it is still exactly the same. That didn’t help at  all. I need to add more current. I think, “who says we have to use a photoresistor for getting that extra current?” I will just add a resistor right across. It may cost us a little more power even when we are not using the light, but it should be a small amount. The added bonus of this is I get to do math to get me close (I don’t know anything about those photoresistors as there was no documentation with them so it was just trial and error all the way).

We took a lot of measurements with our ampmeter to understand how much power was required for different parts of this circuit. If I recall correctly we wanted to get 250 ohms from 5 volts to drive that relay shut. We are now using 12 volts, so that would bring us around 580 ohms or so to make it turn on the light. I just take a simple guess that if I put a 1000 ohm resistor in there, it just may do the trick. It may just tune the circuit to the output brightness of the blue power LED on the face of the camera. I look around through our resistors and really am in no mood to mess with the color coding because we already covered it and I am bored with it. Then I see this.

1k-resistors

There were two left in that package, I used the other one for our circuit. I test it and now the light stops oscillating and just stays on, even when the little activity light is flashing. This looks really good. Here is a picture of what those three components look like all soldered together in series and glued to the face of the camera (I tell ya this camera won’t be winning any beauty contests, I think I will call it “frankencam” instead of “pondcam”). Notice the light is on and stays on.

resistor-and-pr-in-parallel

If you look closely, we have two photoresistors and a 1K resister right between them. Now I have to test this to see if it all works correctly. I need to turn that light off with the software of the camera.

I grab the netbook and connect it up to the camera. Yes… It still works.

Note: When I first booted the camera up I could see it on the network and login to it but it didn’t show me an interface view that you have seen many screen shots of so far. I was so scared I accidentally shorted something out. I didn’t take a picture of it because I thought it was all over for the camera. Fortunately I noticed that as we were moving it in and out of that case, the two boards that comprise the camera were getting separated (they are connected together by nicely placed board connections that hold them together). I pushed them back together and it worked (I was totally relieved).

camera-works-with-light-on

You can see from the above picture three important things: 1) The camera is working and correctly showing what it is pointing at; my workshop ceiling on the computer. 2) The camera light is on. 3) The little LEDs are on too. Now all we have to do is turn them off in the software and see if that drops the current to our relay and turns off the light.

This is a picture of me turning off the LED in the software (The picture is really crappy and you can hardly see it so I put an arrow in there).

led-control-light-off

So… I turned off the light with the software (notice the light is, in fact, OFF!). I am so excited, we are ready to put this thing together again. One more test though, I want to see how much power that light/relay assembly costs us from the 12 volt battery. I connect my ampmeter with the light off.

full-camera-light-off-amps

110 milliamps???!?!?! Is that all. I am feeling so good about this thing right now. How about when the light is on?

full-camera-light-on-amps

Gadzooks! 270 milliamps. Wow! That probably wasn’t the best way to turn on that light. Just to have that on more than doubles our camera power consumption. I don’t care though. I just have to remember to turn the light off when I am done looking at it. I wouldn’t want to leave that on all of the time anyway.

I think we are ready to put this all back together and the time for soldering/math and other complicated things that are hard to follow are OVER (At least I hope they are). One thing for sure is this. I am almost out of solder.

no-more-solder

Let’s get this sucker back into the case.

full-camera-in-housing

Oh… That is nice. I want to permanently position that light so it doesn’t move though. I put three little dabs of Goop on the top and two sides of the face of the light, then hold it where I want it by using one of our empty solder containers to push the thing into the plexiglass. Here is a picture.

gluing-light-to-housing

OK… That has to dry so I can’t do squat with it. I have to think of something to do to move this project toward its intended result. I have been asking myself a question for a while. And it is this. How am I going to keep this camera under water? If I stick this in water and it is water tight like I want it, it is gonna float! I thought about weights on the bottom of the camera, but scraped that idea before I got even close to attaching one. Let’s bring our antenna mount in from outside.

antenna-mount

I like this thing. It used to be on my old house. I got that 10db antenna because I was planning on seeing how far I could get wireless to go across town from my old house (I used to do some work for a wireless Internet provider, I got an antenna like this to go for over a mile).  My plan is to use these brackets to mount the antenna to the center pole and have our camera fastened to the bottom. Totally easy solution.

I cut a chunk of wood from a 2×4 and drill some holes in it to offset the antenna so it will clear those bolts that are used to secure the center pole. This is not what this mounting system is designed to do at all, but I can see right away it will work just fine. Here is where we are after I drill a few holes and put it together.

antenna-on-roof-mount

This is perfect, when we are ready, I will attach our antenna to the camera and then run our 12 volt power cables to our solar panel / battery power source. The plan is for the pondcam to be at the bottom, securely fastened to that pole under the antenna somewhere.

OK.. What now? I am waiting for glue to dry so I have to think of something to do. Oh… I know… Since everything is coming together so nicely, I have to worry more about our water proofing. The top of our cabling harness needs some glue, let’s squish as much glue as possible into the top of the harness (Remember the harness is going to be facing up. Rain will hit the antenna flow down right across that thing. If we don’t totally waterproof that, it will leak right into our camera from the cable assembly. That would be BAD NEWS! as it will flow right down right on top of our camera). Here is a picture of where I leave it overnight. If you need an idea of where to focus, there is a total mess of glue on the top of that tube that holds all of those wires.

gluing-top-of-of-wire-assembly

It is the next day and all of that glue should be dry. I am thinking we really need to get this in the case. It is for several reasons:

1) It moves us closer to our goal of getting it into the water.
2) That camera is more fragile than just the boards and the camera that it mounted on them. They are plugged together and they easily come apart when I move it around which causes problems. And all of the wires, relay and light that are soldered to it; it is just one wrong move with having some wire touch the wrong thing and then bloop! dead camera.
3) Glue takes a long time to dry. I need to use glue to make it water proof. So I better get to gluing because this has got to get in the water ASAP.

We need to test our camera again, but in the case without gluing it. Why? I need to know if that antenna still works. I have pulled that little plug and messed with wires and moved it around. I need to make sure the connection to our huge antenna is working before putting that top on. Remember the connection to the antenna? I made that a couple of weeks ago during post 1. With all of the stuff we have done we could have totally compromised that connection for the antenna.

So I place the top on and clamp it down with a C clamp (There is a more modern word for this type of clamp I am sure, but I will call it a C clamp for now). And then I connect it to our antenna under the roof mount.  Here is what it looks like.

1camera-on-mount

It fits really nicely. Imagine that thing just plopped into water. The camera itself will be about a foot down. Out of the top will be our 12volt power wire. I am hoping putting this thing in the water is just really easy with this. I imagine just walking out to the pond, finding a decent home for it. Then plopping it into the water and attaching the solar panel / batter power assembly. I really hope it is that easy. I will be very disappointed if it doesn’t work out that way.

Next I grab the battery and some jumpers and bring it out the garage. Remember to test if that antenna is working I have to bring it as far away from it as makes sense (The garage is about 40 feet away and I am sure to close the door to the garage before testing). Here is what it looks like in the garage.

1camera-in-garage

I look at that picture and I imagine it 1ft under water. Just looking for fish. I hurry up and power up the netbook to check it.

1camera-on-in-garage

Yep… That is what I was expecting. I know what you are thinking, “Does the ‘Tim Light’ still work”? Let’s see. I go and turn off the garage lights. Then turn on the camera light in the software.

1tim-light-works

It was pitch black in that garage when I turned off the lights. I did check it with the camera to see if it could see anything. That little light is very bright. I can totally make out the back of the wagon and even the water hoses on the back wall. This should be able to see fish a few feet away from the face of the camera, even at night.

I am totally satisfied with all of these tests. Let’s seal up the camera and let it dry overnight. I add as much Goop as I can to the sides of the top of the camera. Remember how that water leaked after I epoxied the case together? I have to make sure this is really water proof. As I am writing this I almost want to put a water sensor at the bottom of this box to warn me, but that would add another two posts and I really need to finish this (Oh.. Just off the top of my head I can think of ways to have this project take an entire year). When I am done, I clamp it down with some C clamps and flip it upside-down so any extra glue would crawl across the camera overnight and instead will just land on the paper underneath.

1camera-drying

An hour later I go back to check on how it is drying. I am in a totally hurry and want to put this in the pond tomorrow. It looks dry enough for me to I start smearing Goop along all of the edges where glue/epoxy is to make sure it is sealed really well. While I was doing this, the top slid right off the camera and glue started to get in places where I didn’t want them. I quickly put the clamps back on and continued sealing the edges. When this happened the light popped off of its spot glue and is now a little bit crooked. This sucks, but I really want to leave it this way so I can sink it tomorrow. The light was pretty bright, it may be OK.

One last thing. I really don’t like the way that Ethernet cable end looks in this picture. If that gets into the water while the camera is on I am not sure what will happen. I have been thinking a lot about how to protect that from water today because this camera will be sunk tomorrow. I decide to clip the plug and spread some Goop all over the exposed wire. I can put a new end on in a few minutes so it isn’t a big deal. I would take a picture of this, but it is too hard. I am really tired and need to get some sleep.

To continue reading see post 8.

My Silly Pondcam – Part 6 – Light?

It is really late. I worked all day and wanted at least to start another post. When I started this project I had the outline of how everything would work in my head. Once I realized I had pretty much everything I needed to pull it off, I went nuts and just started building and posting. I thought it would take 3 posts, now we are on post 6 and we are not done.

I do a lot of complicated projects for a living, but this has taken all sorts of twists and turns that I wasn’t expecting. For example, I really wanted that “resistor bug” to scare someone. It was pretty strange and scary looking. It  should have grossed out someone, but when I showed it to my six year old she liked it. It looked just like a toy to her. Then I showed it to my two year old (that totally gets freaked out by any bug) and got the camera all ready to take a picture, I got this.

resisstor-bug-being-held

OK… Well that backfired big time. When they saw it they weren’t grossed out at all. They thought they were toys instantly and now I am building “resistor bug dads”, “resistor bug kids”, “resistor bug nests”. It is a whole production. I won’t have any resistors left when they are done (I had trouble making the resistors kids, I have to add “diodes” to my shopping list if I ever want to use one of those again).

I totally forgot where we were with this project as usual. Life has a way of having you lose your place in where you were with your amusements. So I have too look back at what we did in post 5 quick to get my bearings. OK.. I remember now… We got our waterproof case all set up. And our water resistant top too. We are on our way with that part.

Here is a picture of the waterproof case that has had water in it for a few days.

water-proof-case

It is totally holding water. It looks OK to me.

I had a family party the other day and I showed my mom the case that I tested in water. She noticed some issues with our epoxy on the case. It looked like it was breaking down on the inside a little or at least not holding well. She didn’t want to “burst my bubble”, but when someone brings up something like that, you have to listen. If you are working on a project and you are lucky enough to have some intelligent commentary, it is better to act than to just leave it. I need to worry more about water getting into my camera housing.

The other thing we figured out, or at least it looks like we figured out is power. My gut tells me we are OK there. It just seems like that little “car-phone-charger” was too perfect. So today I want to totally focus on that light. Yes… The light… Tim has such a great idea and we need to get that working.

As usual there is a real lot going on so I clean everything up so I know what I have to deal with. Everything gets put away except for the things I need to work on, all tools, etc. I am left with this. A desk that is as clean as I can make it.

workbench-clean-post-6

I will check our one “known to be good” battery fist.

charged-battery-full

That little green light to the left means that guy has a full charge. That is good. I really want to start using the battery as much as possible because we eventually need to bring the camera out to the pond. I think the battery will be charged by the sun, but have to go it alone all dusk, night and dawn before the sun starts recharging it. We need to know more about how this guy behaves in our actual circuit. We will learn that by using it.

Another thing I want to mention about our project and power is that we really should protect our gear from overvoltage or sending too much current. To protect sensitive devices it would be best to use a fuse. I know you are thinking, “Where is he going to get a fuse for this where he doesn’t have to use math to bore the heck out of me?”. Worry not… We have one already, we got this from our 12/24 volt step down DC transformer (previously known as our “car phone battery charger”), which now is our camera’s “power supply”. Wow… Our “lingo” is all messed up for that thing. Oh well better to have more than one thing to label something than nothing at all.

fuse-out-of-phone-charger

I don’t even have to learn anything about that fuse, because why? It was used in the specifications set on the package of the “car cell phone charger”. I am sure some guy with a higher degree than mine did a whole bunch of math to figure it out so I don’t have to worry. Everything about that package tells us we are safe to use it, so I don’t bother with any tests on it.

We have something to power the camera and at least we are close on the water proof (Until we really figure out a way to test it) and what I want to really focus on are all things we need to put in the water proof case. Power is figured out (I think), the connectivity is figure out (I think), the last thing is our 24×7 pondcam light. Let’s work on that.

Now when we were doing our transistor testing I really didn’t like the way those circuits were behaving. I did really like working with the transistors though because they are really neat and understanding them is crucial for understanding the entire technological universe we live in. But alas, this project is going too long so I can’t dwell on that part more. I have to find a simpler solution, one that is easy for me to explain and easier to understand. If you remember I wanted a transistor that would get a little bit of current, then just dump all the current available to the light. The  transistor circuits I built didn’t do that all. I did notice that when I was looking through my component bin, the guy who organized all of the parts labeled a bag like this.

relays-and-transformers

Relays and transformers? I might like to use one of those in this project. How about a relay? I will take one of those. I open the bag and pull the only one out that is in there. The principle of operation of a relay is really simple. Basically it is an electromagnet, then when turned on throws a switch. For our light, I will see if we can make the light from the LED on the face of the camera hit the photoresitor and then trip the relay which will then turn on our light.

relay

This guy is really cool. I don’t know if it works though. If I look at the pins I was either using it for something or maybe I just saw it on a board that was dead and pulled it off because it looked so neat. It is also more than 20 years old. I have to test it. That case looks like it will come off. Some relays have clear housings, not this one. Let’s take it apart.

relay-without-cover

That is cool. See the electromagnet, it is just a heck of a lot of wire wrapped around a piece of metal. Then on top we have our switch. All contacts for the electromagnet and switch contacts come out the bottom. It looks pretty fragile and those wires going to the legs look really thin. I want to do some tests with it before putting the cover back on.

I grab our smallest photoresitor out of the bag, then connect some jumpers to our 5 volt power supply that came with the camera. I solder two of the legs to the resistors I chopped up making resistor-bug eggs for my kids to the legs of the relay. I then solder our photoresistor to one of these legs and connect it up to the power.

relay-test-1

I point the photoresistor up toward the light and nothing happens. When I connect the power directly to the leads that feeds the magnet, it works, but not when the photoresistor is in there. I thought this would be a slam dunk and very easy. I grab the biggest photoreistor we have and do the same test.

relay-test-2

Same result, it doesn’t trip the relay unless I connect the 5 volt power supply directly to the relay. I need to see how much power is needed to make this thing go. I connect my ampmeter.

relay-amps

That is 20 milliamps. That isn’t that much, but guess what? We need to do a little math to understand this device better.

We have 5 volts. We need to get 20 milliamps or .02 amps to  our relay. Our formula looks like this:

5 / .02 = 250

250 ohms, that seems like a photoresistor should do that. Let’s check it. I connect it up to the meter and even grab a flashlight to emulate the light on the front of the camera.

photoresistor-test

It is hard to see but the setting on the meter is at 2K. So for every “1” it would be 2000 ohms. In this case we are looking at about 1000 ohms.

It really seems like we are too far away. That is 4x the ohms we need, so to flip that relay with that photoresistor we are going to need to do something different. I was thinking about giving up and going back to solving the issue with the transistor, then I thought of something. I don’t have to use 5 volts, technically, I can drive the relay with 12 volts, but send 5 volts through to the camera light. I get our battery. I connect the circuit up just like I did with the 5 volts, but now we have 12.

relay-photoresistor-battery-test

I had to use the flashlight to make it work, but it did drive the relay closed.

Now I have to see if our camera LED will work to drive this circuit. I can’t just connect  the camera up and expect that little LED to stay on. The last several times I turned it on it was off.  The easiest thing to do is bring our good battery, the camera and its little power supply out to the garage where the wireless access point has been for more than a week, connect it up and run upstairs to my office and turn the light back on. Here is what the camera looks like, plugged in and right under the wireless access point.

camera-in-garage

I run upstairs, ping the camera, then connect my browser to see if it is all working as expected. Yep… Looks really good.

camera-garage-turn-on-LED

Now I go into the software and turn on the LED.

camera-garage-turn-on-LED2

I save and run to check the camera. Yep the light is on now.

camera-now-has-light-on

Now I have to see if I can test this. The next couple of pictures are going to be really busy, so I will try to explain them the best I can. Before I do anything neat, I have to make sure that little LED will make that relay go off with 12 volts going through our photoresistor. I do that first. I connect the ohmmeter to the relay switch part, then I connect our 12 volt battery to our photoresistor relay circuit. I am using the power supply that came with the camera so I have less to connect with jumpers.

camera-led-relay-test

It isn’t working, I am pretty close, but can get closer. My plan in our final stage is to stick that photorestor right against that LED with some Goop glue. Here is a picture of how close it was when not working.

close-up-camera-led-relay-test

I am really messing around with this and it is hard to get it placed. Anything I move takes the photoresistor away from the camera. I continue messing around with it until I hear a “click”.

cameral-led-relay-test-2

Bingo!!! That works. Now lets go nuts.

I grab our light assembly and connect it to the 5 volts and it isn’t bright enough. I remember we have that 100 ohm resistor on it. I want to cut that down, so I grab another 100 ohm resistor and piggy back it right on top of the existing one. That should give us 50 ohms and brighten things up.

share-the-load

I tested it and it was still not bright enough, so I pull the resistors right out all together. I want our light to be bright. At least as bright as it was running on two double A batteries in the flashlight.

no-resistors-light

Now I connect up the light to the 5 volts, and do a quick solder of an extra terminal on the 5 volt + off the front of the camera to feed into the light.

terminal-for-5-volts-positive

If you look at the wire at the bottom of our camera in the above picture, I sodered that while the camera and everything was connected on turned on. That is a big no no. Always power things down before soldering things. The only reason I risked it is because it was so hard to get everything right. It took so long to get it setup to the point where things were working, I didn’t dare mess with it. It saved a lot of time, just to tin that wire and pop the hot soldering iron in there for a quick connection.

Here is everything setup and working as of right now. Our light is being turned on by our LED / photoresistor / relay concoction. The camera is running, but not connected to the wireless because it is still in the garage.

camera-light-relay-test-2

Now I know what you are thinking and I am thinking the same thing. You can test all of this because it really is all on and should work as designed. I don’t dare move this into the garage because it would take too long to set back up again. I decide I will move our access point right next to our camera. I move the light to the top which is where we will want it in our case. The green cable you see across the front is what connects the wireless access point to my network.

camera-relay-light-test-3

This looks pretty good. I turn off all lights, then run upstairs. To check things out. I connect to the camera.

camera-light-test-1

That is nice. I can see pretty OK. The resistor bugs there are about two feet from the front of the camera. They are taking care of their eggs.

I turn off the LED in the software and check the camera again.

camear-light-test-off

Works!

OK.. Now I have to start putting some of this together permanently. Here is what I decide to do. I am going to glue the relay next to the camera lens and then glue the photoresistor face down right on top of the power LED. Here is what it looks like as I am seeing if they will fit.

camera-with-photoresistor-and-relay

The first thing I do is smear a coating of goop to protect the camera on that right side of the lense where I want to put that relay. I don’t want any of the metal on those legs to make contact with any metal on the camera board itself. Then I put a good amount of Goop glue around the edge of the whole face of the photoresistor. I am careful not to get any of the glue on the face itself. I need that to be right against that LED if it is going to work well and have no glue in the way.

gluing-photoresistor

Here is how I leave it overnight. The photoresistor is mounted and there is glue smeared along the right side of the camera board to protect it from the relay.

photresistor-attach-to-camera

When the glue is dry I solder some of the wires to our relay / light assembly and use just a touch of glue to hold down the relay. I don’t want to just glue it down because then I will never be able to get it off if I messed something up.

relay-on-camera

While that dries I want to take advantage and look for something to do to make our next post cleaner. Oh… I see something I can do, I can put some Ethernet cable ends on that cable going through our camera case top.

ethernet-cable-crimp

I already had my tool bag on the workbench so that was pretty easy.

Thank God for the fact that glue actually has to dry overnight. I can’t really think of anything to do right now and it is only 10:30PM. I think I will end this post in the same way I started it. Here is the resistor/diode bug family taking care of their eggs.

resistor-bug-family

To continue reading see post 7.

My Silly Pondcam – Part 5

This is my 5th post on Pondcam and I think things are really coming together nicely. We have our waterproof case figured out (I think). Our 24×7 Pondcam light is well underway with a plan to make that work.

I want to start finishing up what will be the top of our camera cover. A couple of weeks ago my dishwasher died. My wife picked one up at Menards and I had to install it the next day because we had a showing that Saturday. I was really ticked off by this and in a bad mood all day because all I wanted to do was work on Pondcam (There was a lot of swearing involved, mea culpa, as I have a two year old that repeats everyting) . Even then I was obsessed with this project, so while I was buying hoses for the dishwasher (Which leaked from the fron’t door after I was finished installing it and the manufacturer couldn’t tell me why, so we have a repair man coming out tomorrow to fix it), I bought one of these to screw into the top of our Pondcam Case.

top-parts2

As you can see the hole in the top is pretty big. Here is what we are going to stick through that hole:

1) Wireless antenna cable.
2) 12 volt power from battery/solar panel.
3) Ethernet cable.

I know what your are thinking. Why does he need an Ethernet cable? Well the problem is that once I glue the top on… yes I really need to glue it so it is water tight. I can’t use a gasket and screws because my tolerances on those parts are not precise enough. Once it is glued, it will not come apart again without a lot of trouble and re-gluing. Now think about electronic devices like that. Sometimes when you upgrade them, they go back to their factory defaults. It won’t matter how good my antenna assembly is, it won’t connect, then I will have to bust it open. But if I have an Ethernet cable, I can just plug it into my network inside and reconfigure it, then we will be back in business in no time at all. No pulling it apart, not waiting for it to dry for a day after gluing it back together.

You may be thinking another thing, I can see that he will feed those cables through, but then what? Well, when I was looking through my plumbing bin while working on my dishwasher, I found this. I thought to myself, I should really use some of this in my project.

tubing

I am going to cut a length off of this and bring the cables through.

I drill a 3/4″ hold in the camera top plexiglass. I grip the brass fitting with some vice grips and heat them up with a torch. I screw it in place, the hot brass melts the fiberglass just enough for me to screw it together easily. I add some epoxy around the seal that would be on the inside of the case. Now we have this.

camera-top-and-brass

I feed our antenna cable, a nice long length of cable for power and our Ethernet cable through. I still have to crimp and test the Ethernet cable at both ends, but for now this top is pretty close to ready.

top-assembly

This part is done and has to wait until we are finished figuring out everything else before we glue it with the camera housing with everything inside.

Finishing that part leaves me with some time to look at our resistor bug. If you remember we started building that in an earlier post. I watched the series “Lost” and I know that normal people really hate loose ends in a story so I will try to clear that up right now. That glue we put on it from Post 4 (or was it 3?) should be dry by now. I pull it off the clamp, twist two of the terminals together and curl it up to look like a scorpion tail. I bend the other two on the opposite end out like they are some sort of hands or claws, then I bend and clip the final three pairs in the middle to make them look like legs. Here is what we have.

resistor-bug

Oh… I hate this thing it gives me the creeps. It really is ugly the way the translucent glue dried over the resistors making it look like you can see its gross insides. I may not use this to scare my wife. My two year old on the other hand gets really grossed out by bugs and she has this neat nervous reaction where her whole body trembles for just a second like she totally gets the heebie jeebies. I may show it to her and let you know what she thinks.

Note: I need to interject something here about my wife. She really wants to sell the house we are in. She can’t stand it here. Like a lot of people, our house has been on the market for over a year and a half and the only offers we get are LOW LOW LOW. She is very stressed about this and today we decided she would have a relaxing day on her own so she could get a massage and just relax. I spent the day with the kids and worked on non-pondcam things like riding bikes and filling up a blowup swimming pool. So, in short, I would love to put this ugly resistor bug under my wife’s computer monitor, but I won’t… At least not today.

What is next? Oh that is right, we are actually going to have to buy some stuff to finish this project. I wanted to use as many of the parts from my many bins of mystery as possible, but we really need a few things from the store.

Here is my shopping list:

shoping-list

The first thing, more flexible wire. I really don’t like any of the wires I am using. If I want to do more projects like this one I really have to have equipment that works well. I will look for better wire for this project… Oh… And new probes for my meter (I totally know the cables for the meter are going to be expensive, probably more expensive than I paid for the meter when I bought it, but I don’t care. I need this stuff to work well).

I need a photoresistor. I could take apart the one from my daughters Snap Circuits kit, but that is my favorite toy she has. I always am super careful with it and more religious about putting it away and counting all the pieces than anything I own. I don’t want to mess with that, that toy belongs to both of us and it is my total favorite.

I need a good 12 volt battery charger for car batteries. I need this not only for my non-geek life, but also for this project. I have some ideas of the type of charger I want: 1) I want it to not get “melty” like my last one if my wife or sister (or daughters in a few years) connects them to their cars the wrong way. I also want it to show me when something is charged all the way. It has been a really long time since I bought a battery charger for a car (like 20 years) the last one I got was a present from my mom. So we will have to see. Lucky for me Radio Shack and Advanced Auto Parts are in the same strip mall.

Last we need some resistors. I am thinking some good variable resistors for our 24×7 light assembly. We have to make those transistors act like switches (When we feed current into one part of the circuit, it needs to dump a ton of current to our light). I could buy a transistor that acts like a switch instead of like an amplifier (remember how the light would turn brighter the more light I allowed to get to the photoresistor, I don’t like it that it was doing that), but I am kind of on the fence on that a little bit. This is more of a maybe I will buy some resistors until I think about it some more.

So I go to Radio Shack and there is a nice lady there that offers to help. I tell her I am looking for photoresistors. We look around the components together and I see this!

photoresistors

This is not just one photoresistor, this is a bag of like six of them and they are three different kinds. Oh… I’ll buy this in a heartbeat. If I don’t like the way one behaves in our circuit, I will just try another.

Next is cables. I want some really good ones. I really don’t care about the cost at this point. I just want the best cables I can find. Here is what I buy.

test-cables

It is the most expensive kit they have. I learned in my first job as a bench technician that good test cables are as important as the meter. The few I have left from those good old days and have been hacked up and/or lost. These look OK, so I buy them. They have alligator clip and probe ends. I will probably cut them up and put new ends on them eventually, but for now these will do just fine for the rest of this project.

IF YOU DON’T KNOW WHAT A HAPPY ACCIDENT IS, THIS IS ONE:

I know the automotive store is like 50 feet away from this Radio Shack, but I would rather get my battery charger here if they have one. So I ask the lady for a “battery charger for a car”. She takes me to car chargers for cell phones. I explain to her what I want is not a car charger for a cell phone and a charger that literally charges car batteries. I am getting a little frustrated because she doesn’t understand me (I find out later that it is all me because I am so old). I am the only one in the store and she is willing to spend some time with me to help me find what I am looking for. I tell her I would just look around a little. Then I see THIS!

enercell

Every single thing about the face of this package makes me so happy. Do you know why?

As I am writing this, I bought this device two days ago, I still look at this package and it make me really happy. This is like a key… A key that has potential to fix all of our power problems. Yes… I know… I know… but, “you said you weren’t worried about power”. I was being a Pollyanna. I have been worried about power since the middle of post 2!

Just read it. I am going to break a blogging rule and just for a few lines I am going to put things in capitals:

1) IT IS A “CAR POWER ADAPTER” – THAT MEANS 12 VOLTS.
2) IT SAYS 5 VOLTS, THAT IS THE EXACT OUTPUT VOLTAGE WE NEED.
3) IT OUPUTS 2.5 AMPS. THAT MEANS IT CAN HANDLE SEVERAL OF OUR CAMERAS WITHOUT BURNING OUT.
4) LOOK AT THE HOUSING ON THAT  THING, THERE IS SOMETHING MORE IN THAT THAN THE REGULATOR I MADE THAT GETS HOT HOT HOT!

And guess what else? As I check out, the lady tells me that I can get a free  adaptor for this for all kinds of outputs (It is on the package face, I didn’t notice it). I look and… there is an adapter that fits the back of our camera.

This thing is so cool that I can’t stand it. I forget all about the resistors I wanted to buy for our light assembly and just go to check out.

As I check out and am paying for the pearl I just found, she asks, “Sir would you like to buy the extended warrantee for this cell phone charger?”. Like a real geek I look her right in the eye and with a serious face and say, “No, I am going to void the warrantee as soon as I get home by busting it open and cutting all the wires”.

Note: This “charger” is so perfect for outdoor applications with 12 volt batteries and solar panels, I go back the next day (which was today) and buy another. This time I buy the exact same charger, but with a mini USB adapter so I can make my Raspberry Pi run outside with our solar panels. The Raspberry Pi is a full blown computer that runs on a little board (And on 5 volts just like our camera). Oh… I so want to put my Raspberry Pi outside (I am waiting to think of an actual reason to do it). You can read more about one  of  those here. I won’t be bringing the Raspberry Pi out in this project. At least I hope not.

So the next stop is Advanced Auto Parts. I need a “car battery charger”. I think this is a simple thing and an automotive store would have one. I go in and look around and I can’t find one. I look in the isle that I think it would be in and I don’t see it. At this point I am a little irritated because I can’t find what I am looking for. I must be the worst customer in the world because I was in the right isle, but I was looking for things that looked like my old charger. Older guys would know what I am talking about. Packages that show big transformers and big clips at the end of big beefy wires. I am thinking if they wanted to let you know about the charging capacity of their charger, they would have something on the package that meant, POWER! to charge your batteries.

So I give up and ask for help. I ask the guy for a “car battery charger” and guess where he sends me? Yes. He sends me to the car chargers for phones. Only then do I realize it is me. I am the one that is broken and can’t catch up to the times. It shouldn’t be this way. I am an IT guy… I have an iPad (granted it is a children’s toy in our house), my wife has an iPhone, I have an Android. I build complicated enterprise scalable computer networks for a living. My finger should be on the “pulse” of the technology even in an auto store (And especially Radios Shack), but alas… I am too old. A “car battery charger” doesn’t mean “car battery charger”, but “phone charger for a car”.

After I realize this it becomes crystal clear that me and the young kids that work at these places don’t speak the same language. So I ask in a different way, “I would like a battery charger that plugs into an outlet from my house and will charge a battery that goes in a car”. Bingo! The kids tells me, “Isle 3”. I am a little irritated that he doesn’t help me find it like the Radio Shack lady did, but what can I do? It is probably my fault for being too old and blind (it was the exact isle I was in looking for one… you know the isle I am talking about… The one with all the car batteries in it).

Now I want something beefy that will work for a long time. I look at the different packages and I see nothing that stands out. I pick up some of the boxes and they all seem so light. This isn’t anything that I am used to. Nothing is right (It has been twenty years or more since I was interested in anything about cars, so I really am not understanding how close automotive gear has gotten to my regular field). I am looking for something heavy, with big masculine pictures on it, you know what I am talking about, tough guy stuff. Big clamps to hold those batteries, those should be all out in your face on the box. Oh and a big arrow pointing to the transformer and tells you how much it weighs. I am really confused, has it been that long since I swapped out an engine (I have done that when I was a kid) or a transmission (I did that too, twice and once without a transmission jack when I weighed 135 pounds on a van)? I am pretty sure I am in the twilight zone because the one thing that I thought would take way more time to change was automotive and power, but alas… It has succumbed to geekdom.

Here is what I buy.

speed-charge

The box is so light I can’t believe that there is anything worth squat in there. I don’t like the box at all. The other boxes there were all very light too. I do like that it has “10 A fast charge” at the top though. Maybe this will be good. Look at the picture again, why are the little clips all orderly and sitting next to the charger like that, if I designed this box those things would look like massive chompers that would going to jump out of the box and tear your eyes out. And for the “speed charge” on the front, I totally would replace that with, “LIGHT weight, but GUARANTEED HEAVY POWER!!!”. No wonder I was in that isle and couldn’t find them… This box is designed like it has a flashlight in it.

So I have my “battery charger that plugs into an outlet from my house and will charge a battery that goes in a car”  which can charge any 12 volt battery in my house or car. I have my “car battery charger” which in my native language is a “step down DC transformer from 12 volts to 5 volts”.

I am so close I can feel it.

First I continue to mess up my workbench and pull out what I will now call our “battery charger” (I can’t use the new lingo it is too difficult). I hook it up to our first battery (I didn’t keep track of which battery I was using in all of the excitement of  getting the camera going outside), I am not sure which one it is, but I connected it and let it charge while I worked on other things.

The charger has a fan in it and it made all sorts of noise when I connected it. The fan went on, then went off. It has a little light on it that show when it is connected to the battery, that light did light up, but nothing was going on. I read the manual and it describes how battery chargers work these days. It says several thing that are really really cool. One of which it won’t “spark” like old fashioned battery chargers when the terminals are touched together (That is good to know, so I didn’t try that). It can sense when a battery is connected and only when it “sees” a battery connected well it will actually charge. My gosh!!! This thing has been designed so my sister and wife can use it. I struck gold twice today!!!! This sucker is fool proof. Actually it isn’t that fool proof, because my instinct is to open it up and see what is inside it and figure out how that all works, but I am no fool, but I may be one in the near future.

I mess around connecting batteries and find out that only one of the ones we were using actually works. Here is a picture of me charging it. It is hard to see, but this little lightweight has some serious power and a meter to tell us if our batteries are actually charged (It pretty much has every feature I was hoping for and more in a “car battery charger”).

charging-batteries

This battery is the last one (I think) we had out in the yard with the solar panels. It is the one that I ended up using for some of our earlier tests. When I attach it to the charger I can see pretty quickly that it is measuring 75% charge. The other batteries I tested just made the charger turn on and off the fan, it would say a battery was connected by a light on the front, but no matter how long I left those other batteries on, it would just do the same thing…. A whole lot of nuthin’. I label the dead ones as dead and bring them to the garage, no more getting these guys mixed up.

Now the moment I have been waiting for since I was at Radio Shack and ran into our “happy accident”. Let’s bust that car phone charger open.

car-adapter-opened

Oh that is pretty. It is small too, small enough to fit into our case I bet. I am going to pull it all the way apart and put it next to the camera to see what we are dealing with to attach it.

camera-and-power-adapter

I am really excited and start to visualize how this is all going to fit together, but first I need to do some tests. I am so confident in this device, I hack up the output cable and attach the correct power plug that will fit directly into our camera. I really try to do a good job on this cable because I want it to last, so I solder it and tape it over with electrical tape. While I am looking at this device, I see a switch on this and can’t figure out what it is for. So I look in the manual.

car-adapter-plug

The switch changes the mode of the charger from a USB type charge to a “regular” charge. I am not sure what the difference is and I switch it back and forth during this voltage test below. The  reason I am checking the voltage is I have to make sure it won’t kill our camera before plugging it in, I also have to make sure that the polarity is right… Otherwise things might get a little smokey in my workshop.

car-phone-charger-output

While I was looking  at the function of that little switch in the manual for the car phone charger, I see this.

24volts-input

Look at the top, the input is 10 to 24 volts. This thing couldn’t be more perfect for our application. Remember the output of the solar panels?

solar-panel-ratings

See that Voc 24 volts at the bottom. That is pretty good. I do notice that Max Sys V: 50 volts. I never saw those panels put out anything like that when they were out in the sun, so I think we are in good shape.

Now this next test is the most crucial so far as it relates to power. I am going to stick an ampmeter between our battery, the car phone charger and connect its output to our camera. This will tell me how much current it uses and give me a much more clear idea if the solar panels we have will work to power up this whole system.

car-phone-charger-with-camera2

I almost don’t believe what I am seeing. The draw from this device at 12 volts output is miniscule. It is 100 milliamps. This is really low. The power device does EXACTLY what I was hoping, it is not a regulator that simply dumps the extra power in heat, it truly converts the power. Take these power formulas into consideration:

We know Watt’s Law:

P (Watts) = I (Current/Amps) * V (Volts).

Our minimum power output from our solar panels is 4.5 watts. Let’s say it is sunny and we are seeing it output 20 volts. I have seen that and more when messing around with those panels outside. The formula we need to solve is this when figuring out how many amps of current the panels would produce.

4.5 = ? * 20

I plug this into the calculator:

4.5/20=.225

Now let’s do the same math of what we are actually required for our camera. We know it is 5 volts and uses 300 milliamps.

P = 5 * .300

Power for the camera is 1.5 watts. If the regulator is burning away all that extra power in heat (yes that little sucker got super hot, I thought it would burn out) we are losing 3 watts of energy. Also, If we think about it a little more, it is possible that our solar panels to turn on the camera needs to be in full sun because .225 amps won’t run our camera, or better put, it may run the sound function of the camera and the connectivity, but not the actual camera part. Remember this picture that was so frustrating for me from post 2? Even when I tried to get past this with batteries, it didn’t work. We know now that two of them were broken.

camera-with-no-video

Next I need to mount this power supply to our camera (It is no longer called a car phone charger). I use some Goop glue and just glue it to the camera. This is how it sits now in my workshop.

mounting-power-supply-to-camera

Man… I can’t believe how perfectly these fit together. I have to stop here. I am having people come over today and I have to buy food, drinks and clean. As for cleaning… I think I will start here…

messy-workshop

To continue reading see post 6.

My Silly Pondcam – Part 4

OK… I did a lot today and was all over the place with this project. I discovered some interesting things along the way and I hope you enjoy.I have been doing so much today, I don’t even remember where we left off last time, so I have to check the last post. If you don’t remember either, you can check it here. OK… I remember now, the camera works and we still don’t know what to do about power.

I do know we have to get a better understanding of our power situation. I think it is best to test the batteries we have. There are three of them and I really am not sure if any of them are good or not. Since my car battery charger is dead, I really need to figure out how to test them in a way that would be meaningful. Hooking them up to the camera was a dud, we already tried that and it caused us all sorts of headaches at the end of my second post on this project.

What I need to do is put a load on the battery and measure the voltage across the terminals. This will tell me if it has any power. Remember Watt’s law? Power = Volts * Current. If I can put a load on the battery that closely matches the camera, I can see if they will actually work to run it. One thing is for sure, I have a lot of resistors in my little component bin, I will pull those out.

While I am looking in my component bin, I find this.

testing-board

It has all sorts of parts on it left over from my final project when I was in college 22 years ago. I really like this board. It will allow me to build and test things without soldering them. It is 0ld and gross right now, but I stop everything to clean it up. I have a feeling I may need it for an idea that someone brought up on the first post.

Back to my resistors. Here is a picture of them.

resistors

When I look at all of these I am reminded of my wife (she HATES bugs) and my little two year old (she HATES bugs too). Before I go any farther I want to turn some of these into something that looks like a bug.

I clamp a few of them together and coat them with some clear glue.

resister-bug-construction

When this is dry I am going to bend those terminals down (and maybe a couple of them forward to look like pinchers) and stick it right under my wife’s monitor. I know you are thinking this is a bad idea, but I can’t resist. If it doesn’t scare my wife I will ask my kids if they think it is scary and let you know.

Back to the math: We know we have 12 volts (or somewhere near it) coming out of the batteries. We know our camera needs close to 300 milliamps of current. Here is what the math looks like if we want to see 300 milliamps across our batteries.

Volts = 12
Amps = .3
Resistance should = 40 Ohms

We need 40 ohms of resistance to test those batteries in a way that mimics the draw of the camera. If you notice on the close up of my resistor bug above, you will see little colored bars on each of those resistors. I know what those mean, but I can’t remember how to read them. We must look up the formula for how we determine how much resistance each of them has.

Here is a pretty good pic of what those colors mean.

4-and-5-band-resistor-colour-code-1uuwoxt

Now I know I don’t have a 40 ohm resistor in that pack, but it would be a pretty good guess that I have a few 100 Ohm resistors. I want to start there, so I want the first digit to be “1” which is brown. The second digit should be a “0”, that is black. The third digit should be “10” or brown. The last digit I don’t care about because that has to do with tolerances and I am not building a rocket ship.

So the first three colors we are looking for are BROWN, BLACK, BROWN. Let’s start looking.

After a little moving them around I find two of them.

100ohm-resistors

A little more and I find another. I needed three and here is why.

If you put resistors in series (that means hooking them up end-to-end) you add the ohms together to get the total. So If I put three 100 ohm resistors in a series I would have 300 ohms. But if I put the resistors in parallel current has multiple paths through each so your resistance goes down. Here is the formula:

1/RT = 1/R1+1/R2+1/R3

.01+.01+.01 = .03

1/.03 = 33.3333

Our total resistance for three 100 ohm resistors  with the ends of each connected together is 33.33.

If we put that on a 12 volt battery, it should be drawing 360 milliamps of current.

This is only a test so no need for solder, I am going to twist the ends together and we should have 33.33 ohms (or close to it).

33ohms

OK. That is pretty good. Looks like I did the math right. It is very satisfying to do a formula on paper and have it work out in real life. This is a good set of components to test our batteries.

Lets get that battery we left outside in the sun charging for the last few days. I hook it up the voltmeter.

testing-battery

Well that looks promising. Let’s put our 33.5 ohm resistance across it and see what we get.

2volts-from-12volts

OK… 2.07 volts, that is really bad. I am not sure now if these batteries are dead (there are 3 of them in total) or if they are just not charging from the solar panels. Again, I have no charger, so I am not sure what to do.

I grab another battery and it reads 6.09 volts under load. All of these batteries have been sitting in my basement for more than a year. I have no idea what kind of shape they are in, but it does look like they are all dead. I need to find a battery that is good so at least I can make sure I am testing them correctly.

What I would expect from a battery like these is to put 33.5 ohm of resistance on them and have them still read 12 volts. I have an idea. My lawn tractor has a 12 volt battery and I know that is good so I will do exactly the same test there.

tractor-battery

Just what I thought. Some or all of those other batteries are dead. I will have to figure out a better way to charge/test them to find out for sure.

Note: When I test with this little resistor assembly I put my fingers on them and notice they are hot. Just like our rectifier from post 2 that is wasted power in heat. I am reminded and bothered by our rectifier because of these two things about it; wasted  power, lots of heat.

I have to move on from power right now because of the batteries. I already know things will work if we plug them into outlets from the house, so I don’t want to do anymore testing that way. Now that we know my power efforts were all screwed up and also know the camera works from our testing last post, I have some confidence back and want to move forward to waterproofing the camera.

I really want to get the case for this camera done for two reasons: 1) if it isn’t waterproofed it can’t go into the pond (obviously) and 2) messing with that camera without a case is a problem and when I move it around it puts weight on that little connector that connects the antenna. If I break that it will never be the same. Soldering microelectronics like that is really difficult and I don’t want to have to solder on a new MC connector on that little board.

My first thought about how to waterproof the camera was to use Plexiglass. It is simple to work with, easy to cut and glue and really easy to find. I go to Ace Hardware store. When I get there I ask the guy if they have any. He shows me some and it is all too thin. I ask him if he has any thicker stuff and he says it is “super expensive”. Now I am thinking, “This is ridiculous, how much could a small piece to build a box cost”. I tell him I don’t need that much and we go to the back of the store and he shows me a piece that is perfect for what I need.

quarter-inch-plexiglass

Since it is a cut off and not a full piece he doesn’t know what to charge me. I don’t say anything and try to be really quiet. He says, “I want to make you a deal on this piece”. He asks his co-worker, “What do you think we should charge for this?”. I feel like I am in a car dealership and he just went in the back to talk to his manager if he could thrown in some car mats. Then he says, “What do you think about 5 bucks?”. I do what I always do and say, “yes”. I probably should have said, “I will give you 4.75 for it” but I didn’t, because if someone did that to me I would be irritated (No one has and no one ever will call me, “Joe the great negotiator”, more like, “Joe the pushover”. Anyway… It doesn’t matter I have the exact material I  need for waterproofing the camera.

I have to figure out how to cut the stuff and ask the guy, he says to use a special saw. I ask my brother-in-law Oliver who is really handy and knows a lot of stuff and he says to etch a line and just break it clean. As usual, I don’t like any of that advice and I decide to do it my way and use a jigsaw with the blade I have in it. After bringing it home, I take a few measurements and cut it up quick and have this.

box-peices

Now how do I put these together you may ask? Well… While I was at the hardware store I saw this!

marine-expoxy

Epoxy is great, much better than glue. It doesn’t require light or air to dry, it bonds when you mix it. That is why there are two separate tubes. You have to mix this stuff to use it. The fact that it says “marine” on it makes me feel like it is the right stuff for this. I look at the label and it says “bonding fiberglass”, so I buy it.

And for good measure I bought this.

goop-glue

It is always good to have a bunch of goop glue around. It is really good for putting back the lowers of your kids shoes and fixing their plastic toys when they break them. I am going to use it for waterproofing. None of this tube will go to waste.

I peel back the blue backing on the sides that need to be glued and double check my measurements with the camera.

building-box

I mix the epoxy and put the box together.

Note: When I put this together I tried to clamp it, but it fell apart in the middle of it. Then it collapse while it was drying. Epoxy got speared around the edges and it wasn’t pretty. I was able to salvage the “hopefully waterproof” box with enough of its surface without smears, buy the end result isn’t as pretty as I thought it would be. I would have taken pictures of that catastrophe, but I was too worried that that epoxy would smear a part that we will need the camera to see through, so I quickly got it all put back together and couldn’t take a picture of it when it fell apart in the middle of me building it.

camera-housing

Once this is dry I have to test it. I was thinking of submerging it in water and see if water leaked in, but it would be way easier to fill it up with water at the sink, so I decide to do that.

water-tests

Crap! This thing is leaking from two obvious places. This is probably my fault. I had a lot of trouble cutting those edges correctly and when I glued it together, I could see it wasn’t really meeting well on all edges. I dry it off apply some more epoxy.

While it is drying I have to use my time to make some progress in other areas. One thing I can’t keep my mind off of was Tim’s comment in the first post.

tim-comment-high-res

Tim is right. Just because we have clear water in the pond now it may not be clear all of the time. I did talk to Tim on the phone about it and told him I have an aerator and that the pond was clear. But as I think about it, I work late and wouldn’t it be neat to use the “light” feature of the camera software to actually turn on some sort of light so the camera could see better? I know I showed some screen shots of the software and can turn off the front camera light through it. Woudn’t it be neat to use that feature of the camera to actually turn on a real light that would shine and let us see fish better, in cloudy water, or even when it is night! (Remember, we are learing all about charging batteries, I don’t think this project would exist without those and solar panels together, we may end up with a 24×7 PONDCAM!”.

To get our 24×7 PONDCAM we need a light. We learned a lot about power consumption lately and we need a light that doesn’t’ consume that much power. Well… I do have one of these.

flashlight

This is one of those LED flashlights that last a really long time running on batteries. My daughter uses it to read at night, but it looks a lot like just what we need. It is pretty bright. Let’s take it apart.

Note: When I found this flashlight, I thought it was the same one my daughter used. It wasn’t. I said prayers with her tonight and she asked me to fix hers because it wasn’t working right. When I am done butchering this one, I will use the leftovers to fix hers.

bright

I pull the camera apart and take out the LED light assembly. Here is the part that holds those low power LEDs and produces light.

camera-light

Now I have no idea if this will fit in our waterproof box or not, and I am not sure if the epoxy is dry, but I have to see if it fits. Here is what it looks like in the ugly epoxy smeared case above the camera.

light-for-camera

They both fit. That is all I need to know for know, we can move on.

If you look closely at the front of the camera you will see the LEDs that light up when I turn on that feature in the software. This is a picture of them.

leds-on-camera

I have three options:

1) I can solder two wires on each side of the LED on there that lights  up when I turn it on in software. I can attach those wires directly to the terminals on the light assembly from the flashlight. I definitely dont’ want to do this because those LEDs are so small and if I start messing with soldering there I may goof up and break the camera. Also, the circuit in the camera for that LED is meant to drive 1 LED, if I drive three it may be too much of a load and not be bright enough, or it could break whatever part of that camera drives those LEDs.

2)  I can solder two wires on each side of the same LED on the camera and use it to drive a separate transistor circuit to turn on the lights. This would solve the load problem on the camera and give me nice bright lights, but I still would have to solder onto those little connectors and something could go wrong and I may break the camera. There wouldn’t be a good way to test it without turning on the camera, if I do something wrong I won’t have a chance to correct it.

3) Or I can stick a photoresistor in front of them to pick up the light from them and excite a circuit to power our lights. This would give me a completely separate circuit than the camera itself. I would be using the stock LED output to excite another circuit to turn on our lights.

I am going to option three, not only because it is the safest, but because it is the hardest of the three. Believe it or not I am going to call my 6 year old daughter to help me figure this out.

For her birthday in March I bought her “snap circuits”. They have something in that kit to help me figure out how to make a photoresistor turn on a light. Let’s take a look at what that is.

snap-circuits

The circuit on there is the last one she did, we don’t care about that. It was some noise maker and I am a dad with little kids and I hate noise makers, I will take that all apart and have her build me this.

light-controled-alarm

It is still a noise mater, but the description, “This alarm will sound as long as light is present”. That is what I want to know how to do, but not an alarm, but power… Power to light up our camera light.

building-curcuit

With some help we are done with the circuit. And it looks like this.

light-detector

It may be hard to see, but the idea is that if we have a little bit of current coming through the batteries on the left side of that big red triangular transistor terminal, it lets flow a lot of current flow from the top down to the alarm and then to the speaker. When she puts her finger over the photoresistor it gets quieter. We need that, but we don’t want to output sound, we want to output light. The idea is to build a circuit that when it senses light from a photoresitor, it will turn on our flashlight head we have.

I have to illustrate this circuit better because it is really important. I was in college for almost a whole year before I understood this concept.  A little bit of current goes through the transistor and allows a lot of current to go through the other terminals. What you are looking at in the picture below is a “solid state switch” that is the most important thing anyone can learn from this whole project.

light-detector

This simple circuit is what all or our technology is built on. If you see how that works you will understand why aliens don’t exist. If you don’t understand it, you will look at a digital clock and think, “Man that is a weirdo thing, aliens must have landed on the earth to teach us how to build that”.

I solder on a resistor and some wire to our light. I am worried about overloading the transistor or the lights at this point, so I stick one of our 100 ohm resistors in there. I also am sure to solder them really well, I don’t want them coming apart after we put this thing in the case.

light-and-resiter

I quickly throw this together with a transistor from my component bin and we have a prototype of what we want to stick in our camera.

light-resistor-assebly-on

I stick my finger over the photoresistor and the light goes off.

I stick a quick ampmeter on this puppy to see what it draws in current.

light-resistor-assembly-with-amps

Now that is really neat, at a cost of roughly 30 milliamps we can add a light to our camera. We are definitely doing this. But there is still a problem with both circuits. You don’t notice from the pictures, but as the light increases the light slowly lights up. If I put my hand a few inches above the photoresitor it will dim the light. My daughters alarm circuit was the same. I don’t want this. If there is any light, I want all current available to dump past the transistor and go to the light. If there isn’t any or very little light, I want no current to go to the light. I will have to think about this problem some more.

Crap I spent way too much time on that. It is too late… I have to go to Mass when I wake up. One thing before I stop is the waterproof case is dry. I filled that up with water a while ago and left it on my counter. Here is a quick picture of it.

camera-housing-test

OK, It is morning now and I have an hour or so before everyone wakes up. I really should end this post because it is getting too long. Here is a summary of where we are right now:

1) Power is still a little up in the air. I really liked it that I was able to prove the batteries we were using weren’t any good. That really should have been one of the easier parts of this project as it all of the measurements we took and even the “out of the box” requirements of everything is really low power. We will slay the power dragon yet. I do need a better way to test those batteries.

2) Connectivity: Our connectivity won’t be an issue for testing because I did move that wireless access point into the garage and put it on the window. I don’t want to leave it there, or if I do I need it to be more permanent. Right now cables are all over the floor.

3) Waterproofing: Our case, although ugly is coming along OK. I was really happy that our “late in the game” light idea will fit into the case that I measured and cut more than a week ago. It is sitting on the counter right now and I still need to check it for leaks.

4) Pond Light for 24×7 PONDCAM: The circuit my daughter built helps me better understand what I am looking for in a transistor/photoresistor circuit to make our flashlight head assembly turn on when I turn on the light for the front of the camera in the software. I have to finish this part before I can put the camera together.

5) Oh yeah… Almost forgot, my resistor bug is drying and should be dry right now. I think I will check on that first thing next post.

My Silly Pondcam – Part 3 – Power?

This is my third post about my attempts to make a video camera that I can stick in my pond and see from my desk. The first post it was about connecting the antenna to the wireless camera and that went really well. The second post was all about power. And it didn’t go so well. We were left with a lot of unknowns and maybe even a broken camera.

If you recall we left the solar panels and the batteries outside over the last two days. It rained some and got everything wet. I know those panels are water resitant, but they are kind of old and maybe they are not anymore. I think I will start there. – I know some of you are thinking, “TEST the camera first dumb dumb!”. I don’t want to test the camera now and am just too afraid it is broken. I was careful with it, but there was a lot of things that could have happened with it out there. That camping table I had everything setup on was aluminum. Maybe some of the exposed components got shorted. Or maybe it just got to hot out there in the sun and got fried. I will test that later. For now, here is a picture of our solar panels and battery.

batteries-charging-maybe

I really need to see if they charged at all over the last few days. I will stick a meter on them.

batteries-didnt-charge

Nope they didn’t work. That should read 12 volts. At 10.37 volts, it is clear they didn’t charge. I am not sure what is wrong. I will think about that more later, for now I have got other things to worry about.

Whenever I start my day and I have a lot of difficult things on my to do list that I am not sure how to solve, I do the same thing. I start by cleaning my office and organizing my workspace and desktop. This allows me to know where everything is and have lots of space to move around and place things that are pertinent to the high priority project(s) at hand. This works very well for me in my work life, so I am going to apply it here.

Yes… I know… I know what you are thinking (Test the camera!). I can’t test it now, it is too scary. It might be dead.

I know when I brought everything in the other night, I just piled it all on the workbench that I was working at the whole day. There is all sorts of stuff on there that has nothing to do with the problems we are dealing with right now.

messing-workbenchj

So I will clean this mess up. Put everything away that we know we don’t need right now. Then only bring in things that we need to fix things. We may need those 12 batteries that are stuck together with sticky tape, so I will separate those and clean them up a bit too.

clean-workbench

That is better. Now we can focus on what are problems are. This should help a lot. With only the stuff we are concerned about on the bench it seems obvious to me where we start. It isn’t clear on the picture above, but I did butcher the power supply for the camera. If we are going to test the camera it, I need to fix that power supply.

burchered-power-supply

Now I don’t want to take apart our 5 volt regulator assembly. That worked well, at least I think it did. So I will need another end that will fit into the camera. I have a pretty good idea where I have one of those. In here….

power-supply-bin

After some moving things around a bit I find this.

bad-power-supply

The extra bonus is that  I can use the whole wire and not have to worry about the supply (Because when something is broken, I tend to put a label on it that it is dead, so I know we can get rid of it). So I clip the end off near the transformer. Then I tin and solder together the wires. This is absolutely overkill. I would normally just twist them together and tape them for insulation. I don’t want to do things super quick until I can get some confidence back. Something went wrong in the first attempt at powering up the camera. I was being rushed. I got too exited and may have broken the camera. So for the next few steps I will be extra careful not to mess anything up. Here is a picture of me tinning and soldering the wires together.

fixing-power-supply

Add some tape and now we have a fixed power supply.

fixed-power-supply

Now I can’t just plug that into the camera. I may have done something wrong and reversed the wires, so I need to test it first.

testing-power-supply

OK… Now we are safe, let’s plug it into the camera and see if it will actually turn on.

plug-in-camera

Yep… We see lights, that is good. Let’s move on…

I know… I know… It is ON, just test it already!!! No I am not going to test it now. I am too scared. It might be broken. Aside I will have to walk up two flights of stairs, go to my computer and then grab screen shots for the post if it works or not. I am in no mood to deal with a broken camera right now.

I lost my train of thought… Oh, that is right, I want to reiterate being careful with electronic devices when you attempt projects like this. You may have noticed in some of my pictures, voltages and other things may have been reading negative. The reason they read negative is because I reversed the polarity. Way before my time people figured it all out and had color coding, red for positive and black for negative. It is supposed to make it easier. If I have accidentally messed up on the polarity on measuring with the meter, I could just have easily messed up on that polarity plugging in the camera. It wouldn’t be surprising as I go through past pictures that I messed something like that up. So I have to fix something. Here is a close up of the problem.

jumpers

All of the connections I am making are for power right now. When dealing with power it is best to deal with red and black jumps. We will try to avoid the accidental negative readings from me being sloppy. If you notice we are missing a black one from this set and we wont use the green or yellow one unless we have a separate connection to make that is unrelated to positive or negative power flow. I know you can see right away, there is a red one and are thinking, “Where is the black one to that set?”. My answer, “I have no idea. I saw it for a few seconds when I first pulled them out of the bag, my kids were around and my guess is that they took it. I asked them and they have no idea. Soooo….. I have to solve this problem next.

If you remember from the last post I did on “power” I found a bunch of alligator clips. I used one of them to replace my multimeter probe. I am going to use the rest to make some jumpers. Here is what we have.

new-jumpers-parts

I cut the wire to nice lengths and separate the ends about four inches down. I wrap duct tape around the separated ends so my kids don’t pull them apart when they see them. I am careful to place the cushion rubber jackets on the wires first because I don’t want to solder a clip in place without the jacket behind it.

jumpers-being-built

I am very careful to make sure the positive matches the positive for all of them.

soldering-alligator-clips

Notice the clips of the helping hands are not on the metal, but on the insulation. I don’t want them touching that metal because it would dissipate the heat too quickly. I want to get the clip itself as hot as possible with the iron to get a good join between the alligator clip and the copper wire. When I am finished I have these.

good-color-coded-jumpers

Of course I can’t leave it there. My confidence is shot on making sure things are right now because I may have blown the camera, so I have absolutely no confidence in these cables until I test them. I test them all with the meter and they are all perfect.

testing-jumpers

Now that I have a couple of jumpers that will work really well and my kids won’t tear apart, I can focus on something else. One of the things that made it difficult in testing things out at the pond is that I have to run up the front steps, then upstairs to my office on the other side of the house every time I want to test things. I do have a netbook that would allow me to do any test from outside. I made sure it was all charged up over the last couple of days so I can use it outside without plugging it in.

netbook

Let’s bring it outside, boot it up and connect it to the wireless and see if we have connectivity.

netbook-connected

This part was really easy. This is going to save me so much time it won’t be funny. I am going to close it back up and bring it in the house for now. If I leave it outside one of my kids may throw it into my ornamental pond (We lost a digital camera that the kids use and one of a pair of shoes that light up when the kids walk this year because kids love to throw stuff in water and have no idea what they are doing). – Note: The ornamental pond is different than the pond that I am going to put the camera in. The ornamental pond is filled with fathead minnows and is right next to the patio that overlooks the pond and is right next to the house. I may make use of the ornamental pond in this project. It has a power outlet right next to it because it has a waterfall. And is also super close to the house so wireless totally wouldn’t be an issue (The netbook is literally two feet from it in the picture above).

In the beginning of this post we tested the battery that was supposed to be charging over the last couple of days by the solar panel. When I measured the voltage it was 10.37 volts. That is 12 volt battery, if it had any real charge in it, it would read 12 volts. I need a way to charge those batteries.

I do have one of these. But I think it is broken.

charger

One of my sisters was over a couple of years ago and her car battery died. My wife and her decided to hook it up to the charger. Apparently they didn’t know or weren’t paying attention at the time, but connected the black to the positive and the red to the negative.  I hope they read this post so they know that you are not supposed to do that. It has been a while since I tested it, so I can’t be completely sure if it is dead, so let’s plug it in and test it. Notice the top of the unit where it is rusting and the face of it where it is a little discolored. Those are both signs of a lot of heat. The paint on the top got compromised and the face of the unit looks like it has had a lot of heat. This thing really might be dead.

dead-charger

Yeah… This sucker is dead. I am a Pollyanna by nature, so I have to open it up and hope that a fuse got blown and it will be an easy fix.

charger-opened

More signs of corrosion. I test everywhere, before the fuse the inputs an the outputs and the only thing that tests OK is the cable going to the unit itself. This sucker is dead dead dead. I pull the clips off of it and the ampmeter because they might be OK still. The rest is junk.

It has been a few hours since I took that first measurement of the battery that was charging out in the sun and rain for a few days, so I had a chance to think about it. I don’t know a lot about solar cells. What I learned about them over 20 years ago in college is really spotty. I do remember a lot though, I remember “solar fatigue” where they tend to lose output over time in the sun. But that is not our problem here. If I had to guess, when it is dark the solar cells actually put a load on the battery. So overnight they are draining whatever they put into it. That battery had a few days to charge and even in a little bit of sunlight they should have still been charging.

If you recall from my last post, I told a story about when I was a kid and how I put something called a “diode” in series of the output of a transformer to get a DC motor to turn a little. We need one of those. Why? Because we need  to protect the batteries if the solar cell goes dark and starts to draw current instead of output it. I would like to mention here, that I don’t know a whole lot about how these solar cells are constructed. I would think if that were a problem they would have diodes already in them, because that would be a cheap problem to solve if they were going to be used to charge batteries (which is a super common application for solar cells). Anyway, I don’t want to call the manufacturer and would rather try the diode solution.

I know what you are thinking, does he have a diode that will work for that? I think so, but not sure… I do have a box that looks like this.

component-box

I literally haven’t looked through any of this in like 15 years or more. These are left over from when I was in college. The only reason they are in bags is because at my old job I brought them all in to work because I erroneously thought I would need them and one of the techs that worked for me (who was a total clean freak) put everything in bags and labeled everything. It should be easy to find what I need from it.

As I am rummaging through this, I find this:

rectifier

Now I don’t know why I would have bought this. It doesn’t look like a diode and it does say rectifier on it. If it were a full wave rectifier it won’t work. I like it that it has “3A” on it. I don’t know what “IF” means, but 3 amps is way more than the solar panels can do so I have to try it. Perhaps it isn’t a full wave rectifier and the label just means, “rectifier diode”. I don’t have an oscilloscope or a function generator so I can’t prove anything about this little thing. I will have to try it. I should note the only reason I am trying this is because it looks beefier than the other diodes in the box. Here is what it looks like when I take it out of the bag.

rectifier-out-of-bag

Those terminals on it look pretty heavy duty compared to the other diodes I have. I test it and in the workshop it really does appear to act like a diode. If I connect the ohmmeter in one direction I can see a closed connection. If I flip the wires around I can see that it is completeing the circuit. If this was a full wave rectifier it wouldn’t have done that at all. It is probably just a diode. So I go to bring the whole assembly outside. But it looks like this.

solar-rectifier-assembly

Now normally I would just deal with this mess and bring it all outside. But not today. Today I am careful. IT guys will enjoy this simple solution. I need to do some cable management (IT guys are always dealing with lots and lots of cables). I go to my car and pull out this:

cable-management

And now my mess looks like this:

clean-power-cables

Now that that is cleaned up. We can go outside.

Yes… I know I know… The camera is probably dead. I am just doing every little thing today to avoid testing it. It has been bugging me now too. It has been bugging me for the last two days, I have to test that later. If the camera is dead I may give up. I am having too much fun. The camera can’t be dead.

So outside, I connect everything up and I test. Notice the little mark on the component facing the right. Now also notice the voltage.

rectifier-tests

In this picture I reverse the rectifier. Notice the stripe on the component facing the left, also notice the voltage.

rectivier-test-reverse

That isn’t right at all. This device is a full phase rectifier. I have no idea why I bought it or what I used it for. I am the type of person that if I see something in a store I may just buy it because I think I may need it someday. So perhaps that is what I did. No rectifiers are needed in the circuit. At this point, we only need a diode. So I got back to my box and pull out something that I know is a diode. I don’t look at anything but its terminals and if it has a clear glass coating. If it looks like a wimpy thing that can’t take the current, I don’t use it. Here is what I end up with.

diode-solar-assembly

Here is the picture, if I reverse the diode…

diode-assemply-reversed

Now that is better!!!! Too bad I got all distracted with that rectifier. It is good to know that I have one of those though. I wish I had one of those when I was a little kid. It would have sped things up.

I still need to connect the battery and make sure it is actually charging. In this picture, I am measuring the output voltage of the diode/solar panel assemble connected to the battery. I do this measurement because I want to make sure that will be charging!

battery-charging-with-voltage

Everything looks good. Let’s take the meter out and just leave it there for a while. Note: The battery is behind the solar assembly holding it up toward the sun. I think this makes a lot of sense because there are trees on the other side an this may get the panels more exposure.

battery-charging-hopefully

Now with us getting power to the batteries and charging them (hopefully). We can move along to testing the camera. I know I know I know… It is ABOUT TIME!

Here is what we have for testing the camera. It should be super easy to test.

camear-testing-stuff

We have our antenna, our camera, our fixed power supply (That we tested to make sure it works after soldering those wires), a power supply to the netbook. Oh… I notice something I don’t like in the picture.

anntena-mount-ugly

That bracket is a mess. I should really clean that up. I am going to pull off those mounting brackets. There are too many washers on that and they didn’t mount really well to the roof mount assembly by the pond. Let’s fix that first.

clean-antenna-mount

That is better. Oh… The UPS driver just stopped by and dropped off a package. I know what that is.

phone-in-a-box

It is my replacement phone. The stupid USB port to my phone is broken. This happens to me every couple of years because my kids don’t disconnect it “nicely” from the charger when it rings. We are always telling them to do things “nicely” but they are kids. What can you do? My phone is actually dead when this package arrives. I have been charging the batteries in a way that could literally eat up a few posts on this site. For now I really need to stop and take care of my phone so my customers can reach me if there are problems.

After a lot of messing around getting my new phone working and taking my kids to my neighbors to swim I have some time now. I will get back to this project. Where were we?

Yes. That is right, we have solar panels charging up batteries on my camping table out by the pond. It is still light. Let’s check it to see if it is charging.

battery-looks-like-it-is-charging

Now that looks pretty good. The battery does have a charge. We will have to check it again tomorrow, but for now this looks pretty promising.

At this point I can’t think of anything else that I may have to do to keep me from finally testing that antenna. So I bring only the camera, its power supply and my little netbook into the kitchen where I last knew it worked. It looks like this.

camera-in-kitchen-for-test

If you look closely you will notice two things. Their is no antenna. That is correct, because it shouldn’t need one. I moved the access point in the last post and it is literally 6 feet beneath the camera. As a matter of fact, the end that would connect to the big antenna is pointing in the direction of the access point through the floor. The other thing to notice is that there is no lights. When I first plug the camera in it showed lights and then they turn off. I don’t know why it is doing this. It reminds me of what I was seeing when I was messing with it outside. The lights turn on and then turn off. I think it may be dead.

I am not sure what to do at this point. I want to continue the project, but wonder if I should just scrap it. It has been a lot of work and I didn’t really get anywhere with it. I decide to order another camera if it needs be. I will order the exact same thing because I have invested too much time with this particular device.

In the back of my mind though, something else was going on. I do kind of remember trying to get the power going to the camera and turning off sound and the lights in its software when I was connected to it. That seems so long ago, but I should at least check it to make sure it isn’t really dead. After all it would make sense, it shows lights to tell you it is on until it gets instructions from it memory to turn them off.

Let’s see what is going on from the netbook.

Here is where I placed the netbook to cut down on my running upstairs/downstairs and everywhere in between.

netbook-and-camera

I should be able to see what the camera sees from the netbook in the same direction if the camera is still working.

camera-works]

It works!!! It works!!! The camera works!!! I have been dreading this moment all day and I didn’t break it! The camera shot is in the same direction down the hall that the netbook is facing.  Even though we are in the same position that I thought we were after the first post on this project, I am very happy. I didn’t break anything. As far as I am concerned we are in much better shape than we were over the last few days. I have to stop now…. It is late… late… late.

To continue reading see Part 4.

My silly PondCam – Part 2 – POWER!!!!

In an earlier blog post “My silly PondCam – Part 1” I described my desire to have an underwater camera for my pond that I can view from the Internet. In that post we conquered the connectivity part of the camera. That leaves us with two other steps: 1) figuring out  how to get power there and 2) making the camera water proof and the rest weather resistant (because I don’t want to ever have to take it inside).

This post will be all about powering up the unit. If you don’t recall this is what the camera and antenna look like now.Antenna-and-camera

When I took the camera out of its plastic cover I noticed a voltage and amp rating near the power input. Here is a picture of our two current issues with power. First we need  5 volts, next we need 1.2 amps.

camera-power-5v-1amp

My first thought was to use batteries. Like wireless antennas, I have a lot of those. Here is a picture of some that may work well. I have no idea how long they would last and am not sure what voltage they are (This is a little embarrassing because I should know all about these as  they are from UPSs for servers and I deal with them all of the time), so we are going to have to find that out too. In the picture there are three separate batteries, two of them are stuck together with a really sticky double sided cushioned tape.

batteries

I am not sure if these are 6 volt batteries or 12 volts. Here I am checking one of them with a voltmeter.

12-volt-battery

Right in the middle of messing with these batteries I kept thinking to myself, “This really stinks. I don’t want to use batteries because they will die and then I will have to charge them.” This project is really fun, but I don’t want to end up with something I have to maintain every couple of days to get any use out of it. That is when I remembered that I have THESE!!!!! Two solar cells… And yes there are weather proof.

solar-panels

I got these solar cells from a customer of mine who used them on a project that only lasted a few months. They were sitting in a box in my basement for a long time. There are some problems though. I have no manual and don’t know much about them.

These panels operate in a pair. At least I know that much. On the back of one was this.

solar-panel-ratings

Looks like we have too much voltage and not enough amps. I really want to use these for this project, so I have to figure out what to do. At least I know this, we have 400 milliamps which is a third of the power rating on our adapter (1.2 amps). Lets see what that camera really needs for power.

It is tough to see what is going on in the next picture, but what I have done is splice the positive lead of the power supply and put an amp meter in series (In the pic it is still set to volts, I will fix that before I plug it in).

connecting-ampmeter

I now have to bring the whole shooting match up stairs again and set it up. When I set it up I placed the amp meter so that it will be in front of the camera so we can see it when I turn it on. That should tell us what current it uses when video and sound are streaming. Here is what we have.

Camera-with-Ampmeter2

It is .27 amps. That is 270 milliamps. We may be OK with the solar… yay!!!!. Let me see what is next? Oh… Right those solar panels. What to do about them. They are kind of dirty and cumbersome. Let’s clean those up.

I have all sorts of wood in my workshop. I want to set these solar panels up in such a way that they would be easy to move around. Right now there are no handles on them. And because they work together I really need to have them on some sort of board. I do want it to be weatherproof, let’s see what I have for that. Oh.. Here ya go, some porch paint I have left over from my old house. After some sawing, sanding, drilling and painting, here is what it looks like drying off.

solar-panel-mount

Then after a little positioning and a few deck screws, here is what the solar panel assembly looks like.

solar-panel-assembly

These are so cool, this isn’t the only project I will use them for I am sure. So now I want them to have a really long output leads with alligator clips on them. I first have to solve a problem. The units didn’t come with all of the cables, so I have to make an output cable. Here is the connector I am dealing with.

solar-output

Well, I do have a solution for that. I have lots of wire, alligator clips that are like fifteen years old and just sitting in a box, and a power plug that will fit that I picked up at the Radio Shack.

soldering-iron-and-parts

It was a pain trying to solder that in place. I had to search around for my “helping hands”. I bought these twenty five years ago when I was a teenager. I replaced the normal alligator clips with these bigger clips that made it look more like robot hands rather than pinchers.

helping-hands

So with my helping robot monster hands I finish up the power cable for the solar panel assembly quickly. Here is what it looks like now.

solar-panel-assemply-with-power-cable

I really am exited now and want to see what these do in bright sunlight. I take my camping table out and set it up next to the pond. I grab the solar cell assembly place it on top and connect my voltmeter to see what we have. Here is the result.

solar-panel-output-ol

The reason I included this picture is because I thought for a moment my solar panels were dead. Before it went to “OL” it really looked like they weren’t working. I thought, “Crap! I did all this painting and mounting for something that won’t be working at all. Maybe this whole project is dead and I just wasted all of my time”. But before I completed that thought, I did notice the “OL” which means over load, so I turned the switch from 2o  volts to the next setting. Here is what the actual output was in direct sunlight.

solar-assembly-output-22

Now that is better, 22 volts. I can work with this. So far we know this about power and the camera. It consumes 300 miliwatts when running and streaming. It is also 5 volts. I need a voltage regulator, but I don’t know much about them and if I learned about them in college over 20 years ago I don’t remember it at all, so it is time to call mom (Yes, you read it right, my mom). My mother is an electrical engineer, her PhD thesis was on something called “systems theory”, she has numerous patents and she contributed to the RFC on token-ring ( for fun you can look it up and search for the last name “Kocan”). She has to know what the deal is with a voltage regulator.  Or at least how to make one.

I have to take another side note about my Mom. Being a geek and having a mother that is an electrical engineer is very cool.  When I was a kid my parents would never buy us batteries (I know what you are thinking, “What!, no batteries, what did you do?”, well I took apart old radios and pulled the transformers out of them and plugged them into 110 AC in the house). In one of my experiments I was telling her about how I got a DC motor to turn by introducing a diode into the circuit. I was so excited, I felt like I discovered gold. I did complain that it only turned slowly. She told me, “oh, Joe that is a half wave rectifier”, she drew me a schematic of a full wave rectifier and I built one and the motors in my experiments were flying!!!!. If you are interested here is a schematic of a rectifier.

httpstatic_electrotechonline_comimgcache111583523

Now we won’t be using one of these (At least I hope not) for this project because everything we are dealing with is already direct current. But if it weren’t the rectifier schematic and my mom, I probably would be blogging about how fun it is to drive a cab for a living.

Where was I?, Oh.. That is right, I called Mom and asked her about using a 5 volt voltage regulator to deal with my power issues. She said it would work, but the problem is they dissipate the extra electrical power in heat and was thinking we would have a lot of waste. If you recall the label from he back of the solar panel had this in the writing, “Maximum power 6 watts”, “Minimum power 4.5 watts”. If I understand this correctly by using a regulator at 400 milliamps, in direct sunlight we will be losing 2.5 to 3 watts in heat generated by the regulator. Even if it does work, I am going to have to deal with that heat some how. – I am making a mental note that I may have to figure out how to step down that voltage without a regulator, but I really don’t’ want to do that now and hope that we don’t’ have to do that at all. For info on the math see here. Watt’s Law.

So I look up a voltage regulator on the Internet and find that Radio Shack has them. I have been going to Radio Shack for thirty years at least I just love it that they have all these components for my projects. Anyway a few minutes later I find EXACTLY what I was looking for… A 5 volt voltage regulator.

5-volt-voltage-regulator

Notice the metal backing on this device with a hole in it. If you haven’t figured it out already, that is to bolt it to something big and metal to dissipate heat. Mom was right, all the extra power from the solar panels are going to be making this little thing hot. That means two things; wasting valuable electrons and also dealing with a hot hot part that can’t be next to the camera (In the final stage of the project, I was thinking I would just stick this right next to the camera when it was complete. That isn’t going to work).

For now I just have to see if everything we have will work. Instead of figuring out more about the voltage regulator and what really happens in a controlled environment, I decide it is time to connect everything up and bring it all outside by the pond to see what happens.

First I need to connect the voltage regulator to the solar panels. This was really easy with my helping “robot” hands and the back of the bag which tells you what to do. It isn’t the prettiest circuit I ever built, but I am so excited I just do what is required and not mess around with anything but the goal of getting everything outside in the sun.

regulator-install

I grab a roof mount bracket for the antenna and set it up next to the camping table and connect everything up. I have to be careful though. If I connect something wrong I could blow the camera. I learned something very early in my technical education, the saying goes like this, “Devices don’t work if you let the smoke out”. So to keep the “smoke” inside all of the devices involved, I will bring just the solar panels, the regulator and the multimeter out to test. After connecting everything up, here is what we have (First try by the way… not bad).

solar-5v-output

4.95 volts. I am totally exited now. We are so close everything should work. Here is what all things, antenna, solar, camera, everything so far looks like next to the pond on this camping table.

test-run-1

I connect everything up and I see lights on the front of the camera. That is totally a good thing at least it is doing something. Here is a picture of the camera from the front, it isn’t easy to make out, but the lights are ON!!!

camera-view

I run upstairs to my office (which is really far away). The camera is positioned to look right over the pond so I should be able to see it from my desk. And if I can see it from my desk that means it doesn’t matter where I am, if I have Internet connectivity I can see it no matter where I am on the planet). I get to my desk and login to my PC. I pull up the camera in a browser and…. Nothing…. I try to ping the camera… Nothing…. I can’t see it. It isn’t working at all. Then I notice something. It does come up and respond but only for a second and then drops. In this picture you can see the old image from the camera in the background (no POND!!! Grrrr!!!!). And in the black screen you can see me “pinging” the device, it does connect, but then dies. Where you see “reply from” that is good and the camera is available, where you see “request timed out” that is bad, the camera is dead on the network.

test-a-little-connectivity

This is really disappointing. Now I am frazzled. I have to figure out where the problem is. It is one of two things; distance from the access point, or not enough power from those solar panels. I decide to eliminate the easiest one in a way that will just disrupt everything wireless in my house. I am going to move the access point. Right now it is on one side of the house. I don’t want to mess around I am going to put it on this window here, in the garage and the closest point to the pond.

wap-window

Now I should mention, another nice thing about being an IT guy is that, not only do I have wireless antennas and batteries and a bunch of stuff that makes projects like this possible, but I also have really long network cables. Which is exactly what I need now. A couple of these will do.

network-cables

Now I am rushing because I know I am close and I am getting sloppy and just too excited. I want to see that picture of the pond, but I can’t. In my minds eye I see looking at through the camera and seeing my precious pond. I have to see RIGHT NOW if this is really going to work at all. It will be a total letdown if it doesn’t and the project just dies. So I connect up the first ethernet cable, the longest one I have. 50ft. It gets me to the door that leads from the basement to the garage. Here is where it is, the window you see through the door is where I originally wanted to put it.

ap-at-garage-door

With the wireless access point here it still didn’t work. I thought it did, but it never was stable. So I connected a switch in middle (yes I could have used a coupler, but couldn’t find it) and moved the access point where it should be.

wap-location

Now at this point, my whole wireless network in my house is a mess. My workshop is a mess. I have got cables running though the basement out into the garage, there is a camping table with a bunch of crap on it out in my yard. My home is on the market and we had a showing from 11AM until 2PM today and it was spotless. Between me and my kids, pretty much everything looks totally lived in only a few hours later, but I DON’T CARE, I am going to get this project moved to the next step one way or another.

With the access point in it’s correct spot I really should get a signal, but I go upstairs to my office and it is the same, nothing.  I know I should at least have some sort of connectivity and I notice when I moved everything outside there was all sorts of stuff not right. The tiny connector on the camera for the antenna had been bent (whoops… I can’t blame that on my kids because they didn’t touch it), so I had to fix that. The power cable going into the camera wasn’t right so I had to fix that. When I finally got the camera to start running again, I ran upstairs to check it and I got this.

camera-with-no-video

That is right, no picture. My kids were playing on the beach. I could hear them through the microphone, but totally couldn’t see anything. At this point I have no idea what is going on here. Did I break the camera? Does it need more power to get the camera working, is it too bright outside? I try turning off the sound in the software to see if it works. Nope.. Doesn’t help at all. Then I remember… I still have all sorts of 12 volt batteries, some of which still have a charge in them. It is super easy to bring one of those out to our camping table and connect it (way easier than moving my wirelesss access point, which I am totally irritated about having to move). So I do this:

battery-power

As usual I am stuck doing what I didn’t want to do. I have to connect a battery for power. I have a battery connected to my stupid camera and I have moved my access point (two things I totally didn’t want to do) I am very irritated that it had to play out this way, but I don’t care at this point. I see lights on the camera, I run up to my office to see the video of my pond. And guess what? Sound… But no picture. Grrrr!

camera-with-no-video

My sister Tess came over for dinner tonight, so I had to stop. I also had a customer problem that I had to get take care of. It is really late 11:48PM on a Sunday and I have to start an email migration for a customer tomorrow. Here is a summary of where we are right now:

1) POWER!!! – We still aren’t sure if we have any adequate power.

2) The camera may be broken, I have to bring it back into the house and retest it in a normal environment that I knew worked (remember I chopped up the power supply to make the cable to for the connection to the regulator, so I have to fix that). If the camera is really broken, I am not sure what I am going to do. I supposed I can call “TRENDnet” and see if they will send me another, but I will be sure to tell them that I “took it apart and cut cables, and was messing with it without a case on it by a body of water” heck that could be fun, I may just do a post on that conversation.

3) I still have to waterproof it and get it under water. I have some ideas, but no idea if they will actually work.

For now here are my final thoughts for this post:

– Hitting the road block of not seeing the camera from my computer at all was a huge problem moving forward. That is why I did all of that testing in the first post. I need to see that camera from the network to do anything meaningful. I have to speed up that troubleshooting process.

– To speed things up I need to get a computer out by the pond so I don’t have to keep running upstairs and waste time figuring out what the problem is (Plus it is far and there are a lot of stairs and it makes me tired, that isn’t fun). I need something that is right next to the camera and can see it through the wireless connection to make sure all things are fine while I am looking at it.

– I have a feeling I am going to have to learn how solar cells charge batteries. I don’t know if I need to put a regulator on them to make sure they charge at 12  volts only. Remember the solar cells power at 22 volts. I remember learning that if you charge a 12 volt battery at 15 volts, it charges faster, but I am not sure what would happen to a battery if you leave it for a few days connected to a solar panel that pumps 22 volts at 400 milliamps in direct sunlight. One thing is for sure, we will all learn how that works because this is how I left the solar cells, they are connected directly to a 12 volt battery charging it. I will take a picture if it melts (I really doubt it would melt though and expect the battery to be fully charged in a few days).

charging-battery

To continue reading see Post 3.

My silly PondCam – Part 1

I had to create a new category on this blog called “piddling” because, this may be too stupid to post because I don’t know if it will work or not.

I have a 3/4 acre pond on my property. It is a great pond with a little beach. The only problem with it is that I can’t see what is going on underwater. I could buy an expensive underwater camera and stick it in the pond and take a look. But that would be boring. Instead I am going to build a “pondcam”.

To make this project more challenging, I am going to use as many parts that I have left over from broken or retired projects/equipment that I already have.

1) First, I do have a camera. It is a “TRENDnet IP551W”. I got this camera from a project for a relative who had a weirdo tenant that lived in one of the rooms in her house. She wanted me to place it in the kitchen so she could make sure she didn’t have anything going on in her house when she wasn’t home. The guy really freaked her out. Before I could install it, he left. Good for her… Good for me too, because now I have a camera that I would have never bought on my own, but didn’t return because it is too much of a pain. Here is a picture of it.

trendnet-camera

Now if I were to stick this camera in my pond it would immediately die. It isn’t water proof, which I will get to later. For now I want to worry about two things. The first thing is connectivity, the second thing is power.

2) For connectivity I have some interesting options. It has both Ethernet and Wireless. Now I thought about running both power and Ethernet to my pond (My gosh what IT guy that doesn’t have a pond not thought about that), but it would be a big pain because the pond is across my driveway and to do it right, I would have to get a backhoe in there to cut into my driveway and put all sorts of “out of code” connections on the other side. In addition, I have two little kids that love to play by the pond and it does flood in the spring, so extending house power out there is not an option. And I certainly don’t want to get a back hoe and make all sorts of connections for just Ethernet, it would cost around 1000.00… what a waste that would be for only one camera. So it looks like it is going to have to be wireless.

If you look at the inside of the camera you will see its antenna. It is really little. Like and inch and a half. I know that won’t do. Here is a picture of the antenna if you are interested.

camera-antenna

I know the gimpy antenna won’t work, but what do I replace it with? Well, I am an IT guy and I have been in business for over 20 years. I have all sorts of IT stuff in my basement. Many of which are wireless antennas. I want to get as much range as possible, so let’s choose the biggest one I have. Here is a picture of it next to the camera.

large-wireless-antenna

This brings me to a new problem. The camera has an MC female connector and the antenna has a male connector. Here are a couple of pictures to give you an idea of the issue.

This is the MC connection on the camera.

MC-connector

This is the N connector on the antenna.

large-wireless-connector

I have to go into my wireless bin and see what I have…. Well… I do have one of these.

WirelessConnector1

Now what do I do? I don’t want to use the actual wire from the antenna that came with the device. I may want to put it back together and use it for something else. So I still need to get an “MC” style connector from something. Oh… That is right. My parents neighbor had a fire earlier this year and I had to get their data off of the hard drive. I will open the soot infected notebook up and see what it has for wireless connectors.

wireless-connector-in-notebook

A little solder and some tape and now I have this!

Antenna-and-camera

We have to see if this works or not. There are important things to note here when dealing with wireless. For every clean coupled connection you have a certain amount of signal loss (I heard 1db loss per connection years ago). Then for every inch of that very tiny cable you lose more. And also I can’t imagine how much signal loss there is from stripping those wires and soldering them in.

I tested this camera earlier before I started doing any sort of work. I took it to the farthest point of my house from the wireless access point. My house is pretty big. 4000 square feet. The wileless access point can’t be in a worse place. It is on the opposite side of the house against the wall. The furthest point in the house is a window near in the kitchen, which is also in the direction of the pond.

I took the camera and plugged it into the wall with the “gimpy antenna” still attached and I couldn’t get a picture. Here is what the apparatus looks like now next to the same window.

testing-camera-with-antenna

Time to fire up the camera software and see if it works. It is a little unclear what is going on and I hope that it is easier to figure out what fish are doing if it makes it into the pond, but in this picture there are a bunch of hungry dragons about to eat a penguin with a Santa Claus hat. I will call this good enough.

hungry-dragons

That is all for now. I still have some challenges. The biggest problem on the table right now is power. What in the world to do about power? Batteries? I so don’t want to do batteries and will avoid that if I can.

Go to Part 2 – Click Here