Thread: Moving an image using a IR sensor(MFC)?

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    7

    Moving an image using a IR sensor(MFC)?

    Hey guys,I have an IR sensor here and I was wondering would it be posssible to create some sort of mfc program to move an image on the screen with the sensor?

    The sensor I have is the same as this video here and I was thinking of maybe doing a more basic program of the one being shown here
    Capacitive Touch Sense - QuickSense Lunar Landing Demo - YouTube

    My only real experience with mfc has been making a program to read and display values on screen from a serial device.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Personally, I would suggest you set yourself some achieveable intermediate goals.

    For example, a console "diagnostic" program which simply receives information from the sensor, and prints out things like "move left".
    Go through the sensor specs and make sure you can interpret everything it can send correctly.

    Then perhaps think about making a DLL out of that, which provides some added service to your main mfc application.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    12
    Quote Originally Posted by Salem View Post

    For example, a console "diagnostic" program which simply receives information from the sensor, and prints out things like "move left".
    Go through the sensor specs and make sure you can interpret everything it can send correctly.
    Even that is proving difficult for me..numerous errors

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Perhaps you should begin with learning 'C++' then.

    Because just saying "numerous errors" is quite frankly the most useless thing you could have posted.

    Start by reading this -> A development process
    Learn how to write / compile / test in small, easy to manage steps.

    Because writing 100's of lines of code, then posting on a message board "it doesn't work" without posting the code is never going to work for you.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. lab sensor problem in c
    By golden8 in forum C Programming
    Replies: 5
    Last Post: 12-20-2011, 01:55 PM
  2. How to get RSSI value, send to sensor, sensor receive package, repackage it?
    By techissue2008 in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-04-2009, 10:13 AM
  3. Creating a array sensor
    By mikeprogram in forum C++ Programming
    Replies: 1
    Last Post: 12-01-2005, 05:44 PM
  4. OS sensor
    By Queatrix in forum Windows Programming
    Replies: 1
    Last Post: 07-11-2005, 07:00 PM