Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Recive data from sensor circuit

Recive data from sensor circuit

Scheduled Pinned Locked Moved C#
csharpiothelptutorialquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sebogawa
    wrote on last edited by
    #1

    One night I came up with a random idea to make an ultrasonic underwater exploration robot. This robot will use ultrasonic transducers to communicate with a laptop on the surface of a body of water. I found some test transducers which are water proof and I got a small aquarium tank to test the devices in. Now, I never worked with communications nor have done much analog to digital interface work...long story short I'm a communications newbie who needs a little push in the right direction. What I am asking for is some information or link to a place where I can learn more about how to receive digital output data from my sensor circuit using C#. The output is TTL logic (5v+) and I am not sure how to go about obtaining the data that is being outputted. So I just connect the output to the data line of a USB and open up hyper terminal? Will i receive anything? I apologize for what might be stupid questions. :) Any help would be greatly appreciated.

    C D OriginalGriffO 3 Replies Last reply
    0
    • S sebogawa

      One night I came up with a random idea to make an ultrasonic underwater exploration robot. This robot will use ultrasonic transducers to communicate with a laptop on the surface of a body of water. I found some test transducers which are water proof and I got a small aquarium tank to test the devices in. Now, I never worked with communications nor have done much analog to digital interface work...long story short I'm a communications newbie who needs a little push in the right direction. What I am asking for is some information or link to a place where I can learn more about how to receive digital output data from my sensor circuit using C#. The output is TTL logic (5v+) and I am not sure how to go about obtaining the data that is being outputted. So I just connect the output to the data line of a USB and open up hyper terminal? Will i receive anything? I apologize for what might be stupid questions. :) Any help would be greatly appreciated.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      AFAIK, the serial port is your best bet, interfacing to an inpout.dll ( there's one on CP somewhere )

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      1 Reply Last reply
      0
      • S sebogawa

        One night I came up with a random idea to make an ultrasonic underwater exploration robot. This robot will use ultrasonic transducers to communicate with a laptop on the surface of a body of water. I found some test transducers which are water proof and I got a small aquarium tank to test the devices in. Now, I never worked with communications nor have done much analog to digital interface work...long story short I'm a communications newbie who needs a little push in the right direction. What I am asking for is some information or link to a place where I can learn more about how to receive digital output data from my sensor circuit using C#. The output is TTL logic (5v+) and I am not sure how to go about obtaining the data that is being outputted. So I just connect the output to the data line of a USB and open up hyper terminal? Will i receive anything? I apologize for what might be stupid questions. :) Any help would be greatly appreciated.

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #3

        It may be worth having a look at how external microcontrollers (microchip, atmel etc...) interface with computers to get some pointers. There are lots of examples around. You may find the easiest way could be to connect your hardware to one of those and use that to communicate with the computer via USART/SPI or whatever. It can be done with a USB connection but that is going to be complicated. As Christian said, a serial port connection will probably be the easiest solution.

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        1 Reply Last reply
        0
        • S sebogawa

          One night I came up with a random idea to make an ultrasonic underwater exploration robot. This robot will use ultrasonic transducers to communicate with a laptop on the surface of a body of water. I found some test transducers which are water proof and I got a small aquarium tank to test the devices in. Now, I never worked with communications nor have done much analog to digital interface work...long story short I'm a communications newbie who needs a little push in the right direction. What I am asking for is some information or link to a place where I can learn more about how to receive digital output data from my sensor circuit using C#. The output is TTL logic (5v+) and I am not sure how to go about obtaining the data that is being outputted. So I just connect the output to the data line of a USB and open up hyper terminal? Will i receive anything? I apologize for what might be stupid questions. :) Any help would be greatly appreciated.

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          Direct connection between the actual transducer and teh serial / USB port won't work, unless (very unlikely) it transducer has an AtoD converter and interface built in. What yours provides is a TTL level: 0V or +5V (nominal, above ~3V is allowed) TTL Levels if you need to know or are interested.[^] What you will need to do is to connect the transducer to either an interface board or some microcontroller (try PIC) that can interface directly to serial / USB. You can then use whatever communications protocol you need (and can implement!) Good luch, and have fun!:thumbsup:

          No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          S 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Direct connection between the actual transducer and teh serial / USB port won't work, unless (very unlikely) it transducer has an AtoD converter and interface built in. What yours provides is a TTL level: 0V or +5V (nominal, above ~3V is allowed) TTL Levels if you need to know or are interested.[^] What you will need to do is to connect the transducer to either an interface board or some microcontroller (try PIC) that can interface directly to serial / USB. You can then use whatever communications protocol you need (and can implement!) Good luch, and have fun!:thumbsup:

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

            S Offline
            S Offline
            sebogawa
            wrote on last edited by
            #5

            Thanks again you have all been great help...Once I'm done I will post my work on the site, if its good enough. I'm sure someone somewhere will be interested in underwater ultrasonic communications. : )

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups