Posts tagged with “projects”
From Knight Rider to DDR
With my knight rider lights complete, some have been asking me what’s next. While a few parts of the project were rather frustrating - overall, I rather enjoyed myself.
Another one of the things that has been thrown around is the fact that DDR pads that you purchase tend to die within about six months; and that we probably could do better. We always talk about crazy methods to detect steps - capacitive, lights, lasers, audio, magneto (just to name a few).
As you may have guessed, since I’ve mentioned it that means something has been done on it. How right you are! I picked up some carpet, padding, metal screen, and a few other items at the hardware store today. I intend to get started with them within the next few days. I am still working up a technique for reliably attaching wire to the screen panels I’ll be using.
02:17 AM | Tags: projects, electronicsMy knight rider lights are complete!
09:04 PM | Tags: avr, electronics, projects, knight rider, videoMy knight rider lights temporarily mounted, at night, with the headlights on.
08:53 AM | Tags: car, projects, electronics, avr, knight riderMy lights mounted temporarily mounted to my car with duct tape.
08:52 AM | Tags: projects, electronics, car, avr, knight riderThe light panel portion of my Knight Rider lights project is nearing completion.
11:05 PM | Tags: electronics, projects, carSetting Discrete States Over a Single Analog Line
While working on my knight rider scanner I came across an interesting problem: how do I get the most state information to the micro-controller using the least amount of wires.
Why would using multiple wires be a big deal, you ask (if you didn’t, you should have). Well, since the area I’ll be installing and routing these wires (my car) is electrically noisy, physically dirty, hot, and let’s not forget the moving parts. Oh yea, then you have get through the firewall. Lastly there is the fact that I don’t want to buy so much wire for simple signaling. Let’s say it took about 15 feet of wire, fully routed, to reach from the micro-controller to the controls - multiply that by the number of states I’d have in the passenger compartment; that’s a whole lot of copper. Sure, I could get N conductor cable to save some green, but that becomes tougher to route.
Rather than complicate things with too many words, I’ll let some drawings I made explain it. Until I get to drawing all this out in Eagle, hand drawings will have to do.
First, we have a resistor network setup as a voltage divider. The extra points are there for a reason that will make sense in a moment. Each option on a rotary switch would be wired so that only one of the M values is connected to the signal line at any one point in time.

M1, M2, M3 are each of the modes that exist for my project. Vcc will be around 12 volts, it can be as high as 14 or as low as 11. Car voltages can fluctuate. One of these networks needs to be on both sides of the signaling wire. On the control side, it is used to set the signal voltage. On the micro-controller side it is used as a basis for comparison.
The following is on the other side of the signal wire. The idea is to convert whatever signaling voltage that is on the line into a format that the micro-controller can easily understand.

Those are comparators. Vs is the signaling voltage (some percentage of Vcc). V2 and V3 refer to the points on the voltage divider above.
With everything setup as outlined above we now have an easy way to know which mode the switch is on. Mode 1 would be 00; Mode 2 would be 10; Mode 3 would be 11.
I am sure this can be expanded to allow for any number of discrete states and the only limiting factors seem to be the precision of the resistors and the number of chunks you can cut the voltage into before the comparators stop being accurate enough. I’d imagine that with a Vcc of 12, you could probably get away with even as many as 12 discrete modes.
Also, in order for this to work, both resistor networks need to be connected to the same Vcc and both grounds have to be the same.
11:52 PM | Tags: electronics, projectsReserve your Chapter of Mishnayis
A pretty basic little learning reservation setup that I built for the Chabad of Coral Springs to help support their goal of having the entire Mishna learned by the community in memory of the Rabbi and his wife who died in the Dubai terrorist attacks.
11:26 PM | Tags: projects, php