I'm working on a project where I use an LED to blink according to the binary data from an image. On the receiving end, I have an LDR and potentiometer connected to a digital pin of an Arduino Uno. However, the image quality I get when I reprocess the data is pretty poor. I'm considering using a capacitor and a 74HC14 Schmitt trigger to improve the signal. Is that a good idea, or do you have any other suggestions?
2 Answers
Using a capacitor and Schmitt trigger won’t really fix the problem you're facing. The main issue seems to be ambient light affecting your signal, which introduces noise. To tackle this, you should lower your signal rate and make sure to configure the noise floor at the receiver correctly. Implementing CRC and ECC can also greatly help in minimizing errors.
It sounds like you're having trouble with the speed of your light-dependent resistor (LDR). The response time for LDRs is generally high, so you'll likely get better results if you use a phototransistor instead. It might give you a more accurate and quicker response for your setup.
