Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Digital Sampling of PWM

Status
Not open for further replies.

2camjohn

Member
I have a LED whos power i want to control by PWM, 1khz. Duty cycle adjustable from 20% - 50%.

This LED points at a sensor.
This sensor is sampled at a rate of 25khz.


Im struggling to get my head around whether the sensor will consider the LED to be a digital series of pulses, or one analog signal.

Can any of the clever Trevors on this forum offer any advice? Websites to look at or whaterver. Its more important to me that I understand whats going on, than whether I get the correct answer.

Cheers
John
 
What sort of sensor is it?, if it will respond to the PWM pulses then those pulses will appear on it's output. You might consider PWMing MUCH higher (say 100KHz) and lowpass filtering the output of the sensor.
 
Hi Nigel,
Thanks for the speedy and sound advice as always.




Its an IR phototransistor.

Unfortunately Im restricted to software changes only right now.




The purpose of the PWM in this situation is to effectively get a lower intensity signal at the reciever, however im starting to think thats a bit of a flawed concept.
 
Last edited:
2camjohn said:
Its an IR phototransistor.

It will respond nicely to the PWM frequency :D

Unfortunately Im restricted to software changes only right now.

Does the word 'stuffed' mean anything to you?.

The purpose of the PWM in this situation is to effectively get a lower intensity signal at the reciever, however im starting to think thats a bit of a flawed concept.

Yes, but why would you want to?, is it for range finding?, easiest method though would be to switch different series resistors in circuit.
 
2camjohn said:
The purpose of the PWM in this situation is to effectively get a lower intensity signal at the reciever, however im starting to think thats a bit of a flawed concept.

I don't understand the point of this. are you overloading the receiver or something? Put a neutral filter in front of it if you are.
 
Status
Not open for further replies.

Latest threads

Back
Top