Moving an image using a IR sensor(MFC)?

This is a discussion on Moving an image using a IR sensor(MFC)? within the C++ Programming forums, part of the General Programming Boards category; Hey guys,I have an IR sensor here and I was wondering would it be posssible to create some sort of ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 08:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21