Real time change value from USB wireless

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I need to send information from an transmitter with USB computer to an reciever real time.

My project is that i need to test a board with alot of relays on a testing bench through my wireless module, from a computer.

Now my question is, how would i convert whatever the usb is outputting to my microcontroller real time without reprogramming it each time.

Is there any existing software that would help me?

Attachment(s): 

Last Edited: Fri. Oct 16, 2015 - 02:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I read somewhere that using an FTDI chip in the circuit is a good way to convert USB to serial for the microcontroller, is this true? Is there a better way?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I read somewhere that using an FTDI chip in the circuit is a good way to convert USB to serial for the microcontroller, is this true?

A matter of opinion. Technically it works just fine. You need another chip on your board. Cost. Hardware complexity.

Quote:
Is there a better way?

Again a matter of opinion:

An AVR with USB hardware built in + the LUFA USB software stack?

A separate dongle converting USB to serial? (You get one for a few US$ on EBay. This might very well have an FTDI chip on board.)

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

why should you use USB? why not RS232... This way you save the FTDI chip cost..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The reason im not using a cable is because i need to make a custom board to plug the radio module on.
And i use USB.. because most computer have them?

The custom board will have a surface mounted USB, so i can plug the whole board into the computer, it will only be 2x3 inch or so

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Then I think you can use some AVR with USB capabilities.. Anything which ends with "U"... Then you can run the USB stack there and probably get it enumerated as CDC USB device so you can send data to it thru hyperterminal or some other similar interface... but please remember USB is a costly mode of communication that RS232... so check whether it is really required... :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can't use another microcontroller. I just need to make a circuit before the microcontroller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Search EBay for "USB to TTL" for an adaptor. There are loads of them for less than $10. Before buying one, make sure it has TTL level outputs (not RS232!). Then just hook it up to the USART of the AVR.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]