Skip to main content

Posts

Showing posts with the label picoscope

Scopes and electronics

An oscilloscope is very important for any electronic enthusiast. Recently I have been trying to send IR remote codes from an arduino board to my TV. I was having some trouble with timings and my TV would not respond properly. Without the oscilloscope this would not have been easy to debug. I have been looking for some not very expensive, simple to use oscilloscope that can be connected to my computer, so I can save data. I came upon PicoScope . They have a wide variety of products, but the one that caught my eye is the PicoScope 2205  which came in my budget and good enough for my projects. However it is not available in India. Lucky for me my sister and brother-in-law are in UK! I asked them for the PicoScope 2205 and 2 probes (x1 and x10). Thanks to them I now have an oscilloscope. Contents of PicoScope 2205 and Probes So when I had to find the IR signal coming from my TV remote, I connected the probe to the IR receiver data out pin on the arduino board and st...

InduinoX: IR receiver

From my previous post , you probably understood how IR remotes work in general. Now lets take a look at how we can read the signals coming from various remotes that you might have. Fortunately for us the InduinoX board comes with an IR receiver. And the good news is that  some one already wrote the code  to read IR signal from arduino! Just copy the code from  http://www.arduino.cc/playground/Code/InfraredReceivers , replace the value of IRpin from 2 to A1, because on InduinoX, the IR receiver is connected to analog pin 1. Compile and upload the code to InduinoX. The code basically sets up the serial port to 115200 baud rate, then sets up timers (read this excellent tutorial on PWMs on arduino), finally the code waits on the IR receive pin for the signal to change (the signal changes when a button on a remote is pressed pointing to the IR receiver). Then the code keeps track of the time it takes for the signal to change from high to low and low to high. At the ...