Light source timer

Hello!!!

I am new to arduino and programming in general and am not incredibly tech-savvy so I am asking for help with this project I am making!

I am looking to take this light source (a vintage x-ray machine) and put it on a timer to turn on every 5 minutes! so it would be

power on for 5 minutes > power off for 5 min > power on for 5 min> etc.

I truly dont even know where to start on this, so please let me know if you know of any tutorials or something for a project like this!

seems you don't need an Arduino, just a mechanical timer would do

just find one with 5 minutes resolution

1 Like

I really hope the old x-ray tube is replaced by some Edison stuff....

1 Like

Or trybthe BLINK examples, using a 5 minute interval…

As you get the idea, you can move on by removing delay(), and adding other ‘smart’ features.

"Playing" with an x-ray machine would be a very dangerous practice.
Not only for you but for others within range of the transmitter.

I think the moderators should step in here before you do irreversible damage.

There is just a normal bulb in it! It's not that old!

It is basically just a light box, not old enough to have any toxic gasses or anything!

Hello prisybha
Take a view here to get some ideas:

Have a nice day and enjoy programming in C++ and learning.
MIND THE GAP

What is the voltage and current (or wattage) of the light source? How do you plan to switch it with the Arduino's 5 volt, 20mA output?

A 5 minute cycle timer for Nano, UNO, ProMini:

const byte lightPin = 8; // pin 8 turns ON/OFF every 5 minutes

void setup()
{ 
  pinMode(lightPin,OUTPUT);
}
void loop() 
{
  static unsigned long timer = 0;
  const unsigned long period = 600000, // 10 minutes
                      onTime = 300000; // 5 minutes 

  digitalWrite(lightPin, millis() - timer < onTime);
  if(millis() - timer >= period)
    timer += period;                      
}

So perhaps to get this straight, it is not an X-ray machine, but an X-ray viewing box?

yes! sorry for not specifying!!

Speaking of vintage x-ray machines, one has been sitting in my garage (an Image Intensifier) for at least 20 years as I recall. I have never attempted to fire it up and would probably need to do so with a Variac in order to re-form the electrolytics safely, not to mention the state of the transformer oil.

Not even sure who I could pass it on to for recycling.

eBay? :face_with_raised_eyebrow:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.