Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Led controlling through hyperterminal or serial port
Forum Updated to NodeBB v4.3 + New Features

Led controlling through hyperterminal or serial port

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.5k 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.
  • M Offline
    M Offline
    mallika.k.v
    wrote on last edited by
    #1

    Hi,

    I want to switch on and off the LED and increase and decrease the brightness of the LED through hyperterminal.if i send command 1 then LED should glow.

    how to read a word from a hardware port?
    how to output a word to a hardware port?

    im using outport to output word toa hardware it shows error:outport is not declared in scope.

    please do suggest some ideas to do it.

    thank you in advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What are you using to communicate with your serial port ? What OS are you running ? What version of Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mallika.k.v
        wrote on last edited by
        #3

        windows 7.im using QT evalution version.Im using USB UART bridge.my boss told me to send 5V from hyperterminal or serial port ,then LED should glow which is connected to RS232.

        thank you in advance.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then it sounds like QSerialPort is a good starting point

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SysTech
            wrote on last edited by
            #5

            You can do something like this because some of the serial port signals are voltage driven. Using QSerialPort would allow you to turn those signals on/off.

            You could hook your LED to the TX line and send characters but the pulse rate probably won't give you much "on" time.

            Most serial port signals are at a higher voltage (even as high as 12v) and could provide more current to your LED than you should give it. So do the calc and put in a series resistor to protect your LED and your serial port.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved