Okay, I daresay, I think we got the programming done.
Attached is the schematic, BOM, and code.
Tracecom and I used LEDs to simulate the lights and buzzer. Depending on the actual buzzer used, you'll probably want/need to use a transistor of some sort as the buzzer will likely require more voltage or current than the uC can provide.
The BOM only covers what is shown in the schematic. It does not cover additional items like a programming cable, breadboard or printed circuit boards, wires, connectors, etc. We'd suggest getting a breadboard and jumper kit if you don't already have one and building the circuit then testing it before putting it onto a PCB. You can use generic PCBs such as this.
As far as the AC lights, after some discussion, we both agreed we would not be comfortable attempting to design an AC interface. We'd barely trust ourselves to design and build such a circuit and only if it were for personal use where we controlled who would use it (no one but ourselves). Since this is to be built by someone other than ourselves and going into a classroom full of students, we're just not comfortable attempting an AC design. If a DC circuit fails, a part might blow or get cooked. If an AC circuit fails, someone could get hurt or worse.
We would strongly suggest replacing the AC lights with DC ones. Perhaps large, cheap multi-LED flashlights or low power automotive LED bulbs. If you opt to use these, we can help you select the right interface hardware to work with the uC circuit.
I haven't had time to redo the flowchart properly, but feel free to study the code and ask questions.
Unfortunately, the .bas file can't be posted because it is not recognized, so I had to use the PDF converter. You can copy and paste it - just note some of the lines were overrun (run longer than the width of the page), so they'll need to be corrected when you get them into the editor.
Good luck!
Attached is the schematic, BOM, and code.
Tracecom and I used LEDs to simulate the lights and buzzer. Depending on the actual buzzer used, you'll probably want/need to use a transistor of some sort as the buzzer will likely require more voltage or current than the uC can provide.
The BOM only covers what is shown in the schematic. It does not cover additional items like a programming cable, breadboard or printed circuit boards, wires, connectors, etc. We'd suggest getting a breadboard and jumper kit if you don't already have one and building the circuit then testing it before putting it onto a PCB. You can use generic PCBs such as this.
As far as the AC lights, after some discussion, we both agreed we would not be comfortable attempting to design an AC interface. We'd barely trust ourselves to design and build such a circuit and only if it were for personal use where we controlled who would use it (no one but ourselves). Since this is to be built by someone other than ourselves and going into a classroom full of students, we're just not comfortable attempting an AC design. If a DC circuit fails, a part might blow or get cooked. If an AC circuit fails, someone could get hurt or worse.
We would strongly suggest replacing the AC lights with DC ones. Perhaps large, cheap multi-LED flashlights or low power automotive LED bulbs. If you opt to use these, we can help you select the right interface hardware to work with the uC circuit.
I haven't had time to redo the flowchart properly, but feel free to study the code and ask questions.
Unfortunately, the .bas file can't be posted because it is not recognized, so I had to use the PDF converter. You can copy and paste it - just note some of the lines were overrun (run longer than the width of the page), so they'll need to be corrected when you get them into the editor.
Good luck!
Attachments
-
49.4 KB Views: 22
-
88.2 KB Views: 23
-
95.4 KB Views: 31