element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Dev Tools
  • Products
  • More
Dev Tools
Forum Control using USB
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Dev Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 79 subscribers
  • Views 365 views
  • Users 0 members are here
Related

Control using USB

Former Member
Former Member over 10 years ago

I'm looking at a small project that would enable me to control my sit / stand desk from my PC rather than from the controller.

 

The controller on the front of the desk has a number of buttons on it, including an up and down button.  Additionally it has a 3 part 7 segment display that shows the height in inches e.g. 27.8.  I'm going to handle this in two stages:

 

1)     I want to be able to move the desk up / down from my PC over USB

2)     I want to retrieve the value displayed on the 3 part display and then pass it to the PC over USB so that it can be displayed (and used) on the PC.

 

I was looking at the FTDI FT245B chip, is that my best choice?  And if so any suggestions on how to then indigrate it to the two push button switches (Up / Down). 

 

Thanks

 

Andrew

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 10 years ago

    Well, that doesn't sound too complex, the electrical interface is already there you just need to "hack" into it with an MCU.

    Why an MCU rather than than an FT245B?

    • An NZ$13 dev kit (like this one) will provide:
      • An MCU with on-board serial/USB functionality for your choice of PC interface
      • A USB connector with suitable IO circuity (protection)
      • A regulator to allow the device to be USB bus powered
      • Points to solder on GPIO lines to the buttons/Read-Out (maybe with some voltage matching circuits)
      • Handle the interface to the desk position on-board (no extra circuits, except maybe voltage matching).
      • Plenty of room for extra features
      • The example one is pretty easy to code via mbed.org, or an USB capable arduino would be excellent

    The buttons will either be pull-up or pull-down (electrically). So your circuity will need to match that.

    Pull (in code) the button's lines up (or down)  to whatever voltage they need when you want to move the desk in that direction, by using an MCUs GPIO lines.

    As for the Read-Out, the 7 Seg display may be driven from a common driver that takes binary in and outputs the segments. In which case you can parallel those lines into the MCU and read them as 1 or 2 bytes. Otherwise it might be some kind of non-volatile encoder/ potentiometer that helps the desk know its position, if you can break that out to the MCU with an appropriate interface, then the MCU can read the position on its own.

     

    Good Luck

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 10 years ago

    Well, that doesn't sound too complex, the electrical interface is already there you just need to "hack" into it with an MCU.

    Why an MCU rather than than an FT245B?

    • An NZ$13 dev kit (like this one) will provide:
      • An MCU with on-board serial/USB functionality for your choice of PC interface
      • A USB connector with suitable IO circuity (protection)
      • A regulator to allow the device to be USB bus powered
      • Points to solder on GPIO lines to the buttons/Read-Out (maybe with some voltage matching circuits)
      • Handle the interface to the desk position on-board (no extra circuits, except maybe voltage matching).
      • Plenty of room for extra features
      • The example one is pretty easy to code via mbed.org, or an USB capable arduino would be excellent

    The buttons will either be pull-up or pull-down (electrically). So your circuity will need to match that.

    Pull (in code) the button's lines up (or down)  to whatever voltage they need when you want to move the desk in that direction, by using an MCUs GPIO lines.

    As for the Read-Out, the 7 Seg display may be driven from a common driver that takes binary in and outputs the segments. In which case you can parallel those lines into the MCU and read them as 1 or 2 bytes. Otherwise it might be some kind of non-volatile encoder/ potentiometer that helps the desk know its position, if you can break that out to the MCU with an appropriate interface, then the MCU can read the position on its own.

     

    Good Luck

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube