Fun with Electronics and Code

Just another site

Remembering your lessons

Well after spending some time on Friday sorting through my parts, I did a power test of the New IR LEDs. Wow what an improvement. Their beam confinement is at least 20 degrees better (25 vs 40 degrees) and that combined with double the continuous forward current meant it is bright. With the camera on my phone the lens was flaring. testing with my multimeter in diode mode the original Emitter that cam in the pair broke down at < 2 inches. I tested again with the new LEDS and the distance was over 5 inches, which is just what we need.

Process Diagram for the Serial Port Interrupt

Process Diagram for the Serial Port Interrupt

After going through the parts I figured I need to buckle down and get some code written. After working through some of the Logic for a few hours it donned on me why this was harder than usual, I didn’t have my software design documented! I can sometimes get away without it for small projects but with all the interruptions (those of you with young children know what I mean 🙂 )  I figured I better have one. Well I spent about 4 hours and built up Process Diagrams for the system. This included Power on, Holding Loop, Lane interrupts, Start gate Interrupts, Serial Port interrupt, and Timer Interrupts.  Granted this was at 3 am in the morning, but I figure it is a good first pass. I discovered a few potential gotchas in the design and had to rework some of the logic. I also added a more comprehensive Status Check to verity that everything is working correctly.  Attached is the Serial Port Interrupt Process Diagram. I will add the others to the Project page later.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: