Hi! I'm a beginner with Arduino programming, and right now, I'm working on a project for my AS-level physics class. We're trying to devise an experiment to see if a lamp filament will behave as an ohmic conductor if voltage is increased quickly enough so as to not allow temperature to rise by any significant amount.
We tried this initially by using a rheostat acting as a potentiometer, and just increasing voltage really quickly, but this yielded unsatisfactory results. Thus, we were asked to devise a digital approach, which I am trying to do via Arduino. I also wanted to use this as a kind of opportunity to show that when functioning as a digital PWM, the Arduino is very effective, as I'd like to try make use of one in our robotics team and the same teacher is rather reluctant.
The way that I felt would be the best to try out is to use PWM programming to gradually increase the voltage supplied to the lamp, and then cut off this voltage entirely, with a delay before the next cycle. In this delay, I though it would be a good idea to have an LED blink once, to warn us to start the data logger.
So far, I have a basic code, but I'm not sure if it would work? I don't have the components to test it at home, nor the expertise to spot any problems. So it would be great if anyone could offer suggestions on how to make it better/if it would work at all.

// Intended to deliver 5V to a lamp over a time period
// Written using the 'Fade In' tutorial as a reference
int voltOut = 7; // Lamp connected to digital pin 7
int ledPin = 13; // LED to pin 13
void setup() {
}
void loop() {
// fade in from min to max in increments of 1 point:
for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=1) {
// sets the value (range from 0(min) to 255(max)):
analogWrite(voltOut, fadeValue);
// wait for 5 seconds to see the dimming effect
delay(5000);
}
digitalWrite(voltOut, LOW);
delay(5000);
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(5000);
}
Precisely what I want this program to do:
--> gradually supply voltage to a lamp, over 5 seconds
--> turn off the lamp for 5 seconds
--> blink a LED for 1 second
--> delay 5 seconds until next cycle
I would also really appreciate it if anyone could offer guidance with regards to setting up the circuitry on the board? I'm not quite sure how to explain this, but I mean, how would you go about connecting the lamp to the board? I'm working with an Arduino Uno, and I know that my circuit must run from Pin 7 to a resistor of around 220 Ohms to the lamp and back to the ground, but I'm sure how to physically attach this to the Arduino board? Or where on the board the ground pin is... My Arduino came without instructions, and I've had limited success with finding a solution for my exact board online. Any help here would be awesome.
A photo of the specific Arduino I'm using is attached.
Thanks so much.

I really appreciate any help anyone can offer!