I've been having some issues with some random resets and syncing my POVs together. So I wrote up some fixes on my blog with my other SpokePOV stuff. From http://thejof.com/blog:
So far, I’ve been quite happy with my SpokePOVs. They’ve worked fairly well together without any real signaling or coordination between them. But I have had a few problems, and I thought I’d write them up in case someone has similar problems. I’ve been having a lot of random resets, sync issues, and … uh … IC socket stability. Yeah, that’s what I’ll call it.
I’m suspecting a couple of reasons for the random resets. Since I like to really rip along on my bike about as fast as I can manage, centripetal force begins to cause some problems. In particular, I think that it’s causing the AA batteries to pull hard enough out that one or more comes out of contact with their battery clips and causes the microcontroller to do a hard reset. I’ve made a temporary fix by bending the clips in a little, but it’s still not perfect as they still band back after a day or two. I’ll probably either drill some holes at the tops of the tabs and tie the two tabs together, or place all of the batteries towards the hub of the tire and just use the external power connector on the boards. The other reason they might be resetting is the trace that gets cut on the board for three batteries (I’m using the higher voltage blue LEDs). I’ve noticed that flexing the boards can make two of them reset, and I suspect that I didn’t cut deep enough, and the foil of the trace just touches and comes apart from itself. But the more obvious indicator of this condition is that if I flex the board just right, the LEDs come on really dim, and my multimeter reads 3v on the power input.
Sometimes a random reset will cause my pattern of images to get confused from the others and causes a ghost of one image to come over the one displayed by the other two. I’ll fix this eventually by tying together one hall sensor to all three SpokePOVs and fiddling with the rotation offset in the firmware. Even if I do this, one could be out of sync from a reset (which I plan to fix anyway). To combat this, I’m actually thinking of tying a line to either another microcontroller, or between an adjacent POV that would have an interrupt that sends what rotation and frame it’s on so that other POVs could sync up to it. I haven’t bothered to write software or wire anything up yet though, it’s just an idea.
The last problem that I have is having ICs come out of their sockets, particularly my SPI EEPROM. If I get going fast enough, it actually begins to rock out of its socket a little. Luckily it hasn’t come all the way out yet. I’ll probably just epoxy it in one of these days.
Random Resets, Sync Issues, and IC Socket Stability
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jof
- Posts: 12
- Joined: Mon Jun 26, 2006 1:52 am
- olaf_marzocchi
- Posts: 73
- Joined: Mon May 08, 2006 3:29 am
- jof
- Posts: 12
- Joined: Mon Jun 26, 2006 1:52 am
With the purpose of?Olaf Marzocchi wrote:Maybe the layout should be redesigned, with an external board located near the the axis of rotation (hub).
I think that I'll eventually put all the heavy stuff (e.g. batteries) closer to the hub and carry the light stuff (electrons) with a wire to the controller and lights since the ratio of easy-to-implement to positive effect on resets is pretty low.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Random Resets, Sync Issues, and IC Socket Stability
there are 4 mounting holes per battery so you can ziptie the batteries in.jof wrote: I’m suspecting a couple of reasons for the random resets. Since I like to really rip along on my bike about as fast as I can manage, centripetal force begins to cause some problems. In particular, I think that it’s causing the AA batteries to pull hard enough out that one or more comes out of contact with their battery clips and causes the microcontroller to do a hard reset. I’ve made a temporary fix by bending the clips in a little, but it’s still not perfect as they still band back after a day or two. I’ll probably either drill some holes at the tops of the tabs and tie the two tabs together, or place all of the batteries towards the hub of the tire and just use the external power connector on the boards.
well thats easy to fix, just make the cut wider?The other reason they might be resetting is the trace that gets cut on the board for three batteries (I’m using the higher voltage blue LEDs). I’ve noticed that flexing the boards can make two of them reset, and I suspect that I didn’t cut deep enough, and the foil of the trace just touches and comes apart from itself. But the more obvious indicator of this condition is that if I flex the board just right, the LEDs come on really dim, and my multimeter reads 3v on the power input.
[/quote]The last problem that I have is having ICs come out of their sockets, particularly my SPI EEPROM. If I get going fast enough, it actually begins to rock out of its socket a little. Luckily it hasn’t come all the way out yet. I’ll probably just epoxy it in one of these days.
superglue, etc. you can get machined sockets that might be more secure but really the amount of vibration you're putting on it is extremely rough for any scoket
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
- jof
- Posts: 12
- Joined: Mon Jun 26, 2006 1:52 am
Re: Random Resets, Sync Issues, and IC Socket Stability
I can't believe I didn't realize that's what those were for. Doh!ladyada wrote: there are 4 mounting holes per battery so you can ziptie the batteries in.
While the added hold against the board will probably make enough lateral friction to stop sliding entirely, the issue is the lateral motion of the batteries from centripetal forces.
It does mean using three or more zip ties per board every time I need to change batteries. The more permanent solution will be a generating hub or a separate, rechargeable, homebrew pack.
Yeah, I just did that tonight, and it seems to have been the source of the problem. A small jeweler's saw proved invaluable here.well thats easy to fix, just make the cut wider?
This is true, and I've superglued the ICs in. Should no longer be a problem.
superglue, etc. you can get machined sockets that might be more secure but really the amount of vibration you're putting on it is extremely rough for any scoket
-
- Posts: 46
- Joined: Sun Jul 09, 2006 2:00 pm
I had random resets, going into standby, hanging, not powering off etc. too. But i fixed it. At he start i thought it is because of my sensor (i do not use hall-effect sensor i use mechanical magnet sensor also self-made pcb's) but the problem was with power supply to ATTINY. I soldered near the ATTINY a 0,1uF capacitor an all problems gone!
- madoverlord
- Posts: 27
- Joined: Mon May 29, 2006 8:07 pm
-
- Posts: 24
- Joined: Wed Apr 12, 2006 2:40 pm
Re: Random Resets, Sync Issues, and IC Socket Stability
I've got one word for you - Velcro - I sewed two pieces of eyeglass retainer straps to some Velcro and presto a re-usable battery retaining device. Although it was tough getting my sewing machine to go through the PC board <joke>! It was a little hard running the second piece of Velcro on the sewing machine, but I managed it - it would be easier before soldering the LEDs.jof wrote:It does mean using three or more zip ties per board every time I need to change batteries. The more permanent solution will be a generating hub or a separate, rechargeable, homebrew pack.
If you think a bike is tough on the batteries, you should try a unicycle!
For more great re-usable SpokePOV stuff see http://www.ladyada.net/forums/viewtopic.php?t=1866 or how to mount a SpokePOV and still be able to remove it - without cutting any Tyraps.
-
- Posts: 24
- Joined: Wed Apr 12, 2006 2:40 pm
Re: Random Resets, Sync Issues, and IC Socket Stability
One of the tricks I've used at work is to use a small bit of RTV - it can be cut but will hold the chip in place - if you're going to super-glue it, you might as well leave/take out the socket and solder the chip right in, because you will probably have to destroy the socket to get the chip out. Of course there are many types of RTV some with light hold and some that you'll need Hercules to pull apart, the light hold is good enough for this and can easily be cut. Be careful not get any in the socket holes, we usually put a daub on the ends of the chip and socket down to the board - if you've really got a problem, run stronger RTV from the ends and across the top.jof wrote:This is true, and I've superglued the ICs in. Should no longer be a problem.
- madoverlord
- Posts: 27
- Joined: Mon May 29, 2006 8:07 pm
-
- Posts: 24
- Joined: Wed Apr 12, 2006 2:40 pm
Please be positive and constructive with your questions and comments.