3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Nunchuk-controlled Helicopter

Step 3Preparing the Logic Analyzer

Preparing the Logic Analyzer
«
  • logo.png
  • demodulator.png
  • connection.png
  • acquisition.png
  • triggers.png
  • ir_signalpng.png
So now, you know how the transmission physically works, and what the demodulator will output. It outputs logic HIGH (5v) when no signal is detected, and logic LOW (0v) when a modulated signal is detected. All right, enough theory. How are we going to record and use this signal ? We need a logic analyzer. Unfortunately, these types of tools don't come cheap (~150$ for the Logic ), but the Arduino community really has a lot to give, and someone named gillham made an Arduino sketch that transforms the Arduino into a SUMP-compatible 1MHz logic analyzer. Yeah, 1MHz isn't brilliant, but hey, it's free, and it will suffice for our light use.

- You have normally already downloaded the modified SUMP client in Step 1. If not, here it is.
- You'll also need the logic_analyzer.pde Arduino sketch
- Connect the IR demodulator's data pin (the one on the left) to the Arduino's pin 8.
- Connect the demodulator's GND (middle pin) to the Arduino's GND
- Connect the demodulator's Vcc (Right pin) to the Arduino's 5v supply.
- Extract the OLS zip, connect your arduino via usb, and execute the run.bat (if you're under windows) or run.sh (if you're on linux).
- Now hit the 'Begin capture' button, select the serial port your arduino is using, choose 115200bps speed
- In the 'device type', choose the "Arduino Generic Logic Analyzer" profile.
- In the 'Acquisition' tab, choose 20kHz sampling rate, check the 'automatic recording size' checkbox.
- In the 'Triggers' tab, enable the triggers, and in all the checkboxes on the bottom, check the top-right one.
- Now click the 'Capture' button and raise the throttle on the heli's remote.
- If you have any problems, post a comment, I'll help you. ;)

Note: You can get a sort of 'manual' on the OLS here , and also, I apologize for the poor image quality, but this is caused because Instructables.com compresses uploaded images. :(

Ok, so everything is ready, let's dive in ! Step 4: Capturing IR pulses...
« Previous StepDownload PDFView All StepsNext Step »
3 comments
Jan 23, 2012. 3:25 PMgl1tch says:
First many thanks on this instructable, wanted to do something similar and do not even know where to start.

At this very step after i started the capture with OLS which is always aborted with the following error.

"Capture aborted! Duplicate key: 0x30!"

And i do not know how to go from here at all :(
I am using a Arduino Deumilanove and the latest arduino IDE v1, and i get the same error rather i am on Windows or Ubuntu. Any thoughts on why this is happening?
Feb 6, 2012. 2:12 AMamquad says:
Had the same problem Found I needed a new Arduino file

Downloaded at https://github.com/gillham/logic_analyzer

Works fine now. Hope this helps others :-)
Feb 11, 2012. 3:11 PMgl1tch says:
Nice, thank you that totally solved the problem =)

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
38
Followers
4
Author:a1r(A1Rstudios.com)
My name is Jonathan Rico, I'm 17, I'm french and I live in Morocco near Casablanca. I'm in Terminale S (French equivalent to 12th grade) at the CNED (homeschool, but controlled by the french governmen...
more »