Author Topic: ways of communication with mcu  (Read 2300 times)

0 Members and 1 Guest are viewing this topic.

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
ways of communication with mcu
« on: April 24, 2009, 04:38:20 AM »
is there any other way of communicating with the mcu other than i2c or uart...iam thinking of a computer controlled bot with mcu interface...the problem is i cannot setup a uart to send commands to it...iam thinking of using an indirect communication protocol with the mcu via its adc....i transmit voltages directly to the adc of the mcu via the pc's parallel port..and depending on the no of voltages passed to the mcu ...the mcu will decide wat to do...will this technique be fast enough if i send 4 voltage readings to 4 analog pins of the mcu...

based on these 4 voltage levels i can give 16 commands to the mcu...Will this be reliable..and fast??
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: ways of communication with mcu
« Reply #1 on: April 24, 2009, 04:49:51 AM »
yes, in theory this could work, but how are you planning to get the parallel port to generate these voltages?
Howdy

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: ways of communication with mcu
« Reply #2 on: April 24, 2009, 05:25:12 AM »
lol thats general parallel port interfacing ..i just need to switch on any output pin of the parallel port..thats it...iam not sending any reference voltage ...i just want to see the pattern of the pins which are on...
like

0000=====stop
0001=====go forward...etc etc etc


JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: ways of communication with mcu
« Reply #3 on: April 24, 2009, 05:40:27 AM »
bbut will it be fast enough.. .
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline TrickyNekro

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,207
  • Helpful? 15
  • 1.6L Peugeot 307 tuner
Re: ways of communication with mcu
« Reply #4 on: April 24, 2009, 05:53:11 AM »
USB???
Bluetooth???
Your theory is good.... but..... ok.... a little bulky....
But after all what you need is ladder....
And you can even achieve synchronous com....
It will be as fast as your mcu's adc... so no worries....
Atmel ADC's are fast enough.... :p
For whom the interrupts toll...


P.S. I've been inactive for almost a year... Don't give promises but I'll try to complete my tutorials. I'll let you know when..

Cheers!

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: ways of communication with mcu
« Reply #5 on: April 24, 2009, 09:30:47 AM »
usb and bluetooth use the serial communication protocol...so iam thinking  of using this technique
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline chelmi

  • Supreme Robot
  • *****
  • Posts: 496
  • Helpful? 15
Re: ways of communication with mcu
« Reply #6 on: April 24, 2009, 09:43:00 AM »
You can use digital input of your MCU as a parallel port, just make sure the voltage are compatible.
You will still need some kind of handshake protocol to latch the bits when they are all set.

BTW, why did you rule out serial communication ?

Offline TrickyNekro

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,207
  • Helpful? 15
  • 1.6L Peugeot 307 tuner
Re: ways of communication with mcu
« Reply #7 on: April 24, 2009, 09:51:44 AM »
Get parallel to serial then with a latch....
I don't remember the IC's names I think it's 745HC something...
I'll look into it...
For whom the interrupts toll...


P.S. I've been inactive for almost a year... Don't give promises but I'll try to complete my tutorials. I'll let you know when..

Cheers!

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: ways of communication with mcu
« Reply #8 on: April 24, 2009, 10:56:38 AM »
the computers parallel port are enough...yes i need an encoder and decder ic ...HT14E and HT14D ..iam concerned abt the sspeed and response of the bot though
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline chelmi

  • Supreme Robot
  • *****
  • Posts: 496
  • Helpful? 15
Re: ways of communication with mcu
« Reply #9 on: April 24, 2009, 11:21:03 AM »
iam concerned abt the sspeed and response of the bot though

Unless your dealing with very high speed robot, serial communication a fast enough !
I wouldn't be surprised to learn that the response time of the mechanical part is already several order
of magnitude higher than the communication part.


Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: ways of communication with mcu
« Reply #10 on: April 24, 2009, 11:33:43 AM »
now using serial comm..iam using an indirect comm protocol via the mcu's adc
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline chelmi

  • Supreme Robot
  • *****
  • Posts: 496
  • Helpful? 15
Re: ways of communication with mcu
« Reply #11 on: April 24, 2009, 12:00:46 PM »
now using serial comm..iam using an indirect comm protocol via the mcu's adc

I know, I'm just asking why you are not just using serial instead of such a contraption.

And why ADC and not digital IO?

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: ways of communication with mcu
« Reply #12 on: April 24, 2009, 12:06:33 PM »
digital i/o ?? for input???? will that be reliable...and i cant use serial comm due to some probs
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline chelmi

  • Supreme Robot
  • *****
  • Posts: 496
  • Helpful? 15
Re: ways of communication with mcu
« Reply #13 on: April 24, 2009, 12:10:23 PM »
digital i/o ?? for input???? will that be reliable...and i cant use serial comm due to some probs

Of course it's reliable! Why wouldn't it be?

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: ways of communication with mcu
« Reply #14 on: April 24, 2009, 12:20:21 PM »
digital i/o like using the pind command

but how do u use that value...
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

 


Get Your Ad Here