Students will
- Identify the 4N35 input LED and output phototransistor pins
- Transfer a digital state without a shared signal wire
- Explain why connecting the two circuit grounds defeats the isolation demonstration
Arduino Uno R3
Send a digital state through light inside the 4N35 while keeping two low-voltage circuits electrically separate.
Reviewed connection map
Read before uploading
const bool THIS_BOARD_IS_SENDER = true;
const int SIGNAL_PIN = 8;
unsigned long lastChange = 0;
bool state = LOW;
void setup() {
pinMode(SIGNAL_PIN, THIS_BOARD_IS_SENDER ? OUTPUT : INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
if (THIS_BOARD_IS_SENDER) {
if (millis() - lastChange >= 1000) {
lastChange = millis();
state = !state;
digitalWrite(SIGNAL_PIN, state);
}
} else {
bool lightReceived = digitalRead(SIGNAL_PIN) == LOW;
Serial.println(lightReceived ? "signal" : "no signal");
delay(100);
}
}Optional engineering record
Choose the prompts that help students explain predictions, evidence, debugging, and transfer. Saving creates a new entry in this browser’s Rudi notebook.
Use these prompts if they help students capture evidence, decisions, or questions. You do not need to complete every prompt or create an entry at every step.
Disconnect both supplies and verify 4N35 orientation, input LED polarity and resistor, collector/emitter pins, receiver pull-up, and the selected sketch role.
Treat the pulled-up collector as active LOW: light in the optocoupler pulls the receiver input toward GND.
Stop and review the complete power arrangement; use independently reviewed supplies if the goal is to demonstrate electrical isolation.
2026 middle school standards
These are evidence-based crosswalk candidates for curriculum review—not a claim of official alignment.
Students compare directly connected and optically isolated signal systems against a stated requirement.
Lesson evidence: Two-side system diagramStudents isolate variables, compare observed behavior with the intended purpose, and document a revision.
Lesson evidence: Isolation and signal testcomponent-boards · floating-inputs · power-and-signals
Starting point, not verified curriculum. Review the actual hardware, circuit, code, power requirements, and classroom conditions.
After teaching this lesson