www.robowars.org

RoboWars Australia Forum Index -> Technical Chat

MicroControllers and Programming
Goto page Previous  1, 2

Post new topic   Reply to topic
  Author    Thread
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

Just use an i2c bus or spi bus for everything. In i2c every device has an address so you can communicate with each one over the same bus so you only need one. Same with spi except you have enable lines which makes things a bit simpler.

You should not need to add more interfaces or chips unless you need more I/O pins imo.

Steve
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com


Last edited by marto on Sat Apr 02, 2011 11:41 am; edited 1 time in total

Post Sat Apr 02, 2011 11:01 am 
 View user's profile Send private message Send e-mail MSN Messenger
dyrodium
Experienced Roboteer


Joined: 24 Aug 2004
Posts: 6476
Location: Sydney


 Reply with quote  

I played with these during my robotics project, I didn't learn the programming side of things but regarding controlling with I2C it was dead easy, easy to address and control.
http://www.sparkfun.com/products/8579
They sell a USB to I2C converter too which works well. Smile
_________________
( •_•)

( •_•)>⌐■-■

(⌐■_■)

YEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH

Post Sat Apr 02, 2011 11:17 am 
 View user's profile Send private message Visit poster's website MSN Messenger
Nick
Experienced Roboteer


Joined: 16 Jun 2004
Posts: 11802
Location: Sydney, NSW


 Reply with quote  

That's another good reason for using I2C; I have one of the Max blinkm boards that can be used as a totem-pole countdown. Keep in mind that I am a complete noob compared to most of the forum members, so this as much a learning exercise as building a practical product.

Post Sat Apr 02, 2011 11:44 am 
 View user's profile Send private message
seanet1310



Joined: 08 Nov 2006
Posts: 1265
Location: Adelaide


 Reply with quote  

There is a lot of info on the net about I2C. Your MCU probably has some libraries if it had a servo one.
A lot have I2C registers that make life somewhat easier.
Best way to learn is jump in with a task
_________________
Remember to trust me, I am an Engineer.

http://www.youtube.com/watch?v=rp8hvyjZWHs

Post Sat Apr 02, 2011 12:36 pm 
 View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Nick
Experienced Roboteer


Joined: 16 Jun 2004
Posts: 11802
Location: Sydney, NSW


 Reply with quote  

If anyone else needs more serial ports then they have, the MAX3100 is an ideal solution - SPI in, RS 232 out. Use some select lines and you could have dozens of serial ports Smile

http://www.maxim-ic.com/datasheet/index.mvp/id/1731

My MBED board even has a library for this chip, but I am still going I2C.

Post Sun Apr 03, 2011 10:30 pm 
 View user's profile Send private message
  Display posts from previous:      

Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 2 of 2

Goto page Previous  1, 2

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Last Thread | Next Thread  >
Powered by phpBB: © 2001 phpBB Group
millenniumFalcon Template By Vereor.