lurkingdevil
New Member
**broken link removed**
old circuit - **broken link removed**
I'm trying to build a electromagnetic suspension device. The circuit is above.
IR Led beam and photodiode method is used.
New circuit, microcontroller removed but it still isn't stable.
I'm using arduino to control it. The voltage of the photodiode is fed into the arduino's analog pin. The electromagnet is controlled via PWM from arduino.
But I simply can't get it to work. I've tried various simple algorithms but none work. The object vibrates fiercly when held at the balance point. uC Analog to Digital Converter reads 722 when the beam is obstructed, and 20 when there is no obstruction.
If there is no issue with the circuit, then please help me with the program/algorithm I should use. I'm novice at this so my algorithms usually tend to be very simple and maybe not good enough.
About the voltage amplifier, I had first skipped it and connected the uC pin straight to the MOSFET. It worked initially but the MOSFET died soon. The reason is that its not logic level MOSFET. I used it because thats what I had with me. Here is my thread about it.
old circuit - **broken link removed**
I'm trying to build a electromagnetic suspension device. The circuit is above.
IR Led beam and photodiode method is used.
New circuit, microcontroller removed but it still isn't stable.
I'm using arduino to control it. The voltage of the photodiode is fed into the arduino's analog pin. The electromagnet is controlled via PWM from arduino.
But I simply can't get it to work. I've tried various simple algorithms but none work. The object vibrates fiercly when held at the balance point. uC Analog to Digital Converter reads 722 when the beam is obstructed, and 20 when there is no obstruction.
If there is no issue with the circuit, then please help me with the program/algorithm I should use. I'm novice at this so my algorithms usually tend to be very simple and maybe not good enough.
About the voltage amplifier, I had first skipped it and connected the uC pin straight to the MOSFET. It worked initially but the MOSFET died soon. The reason is that its not logic level MOSFET. I used it because thats what I had with me. Here is my thread about it.
Last edited: