BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 8:39 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Using 2 BasicAtomPro in //
PostPosted: Sun May 01, 2011 10:47 pm 
Offline
Guru

Joined: Sun Dec 20, 2009 10:52 pm
Posts: 76
Hi Everybody,

I was wondering if one of you had already experienced running 2 BasicAtomPro in // in order to get more power?
If it's possible I would like to have some help to try it myself.

Thanks


Top
 Profile  
 
 Post subject: Re: Using 2 BasicAtomPro in //
PostPosted: Mon May 02, 2011 12:19 am 
Offline
Master

Joined: Sun Aug 17, 2008 5:26 pm
Posts: 798
Location: CA bay Area
Hello, Chris.
By "//" I believe this means "in parallel"? How do you mean? One is master, the other a slave? They share a common job, but over two devices? The possibilities are endless, methinks.
You'll want to be more specific about what you want to do in the end.
Take care.

_________________
kenjj
http://blog.basicmicro.com/
http://kjennejohn.wordpress.com/


Top
 Profile  
 
 Post subject: Re: Using 2 BasicAtomPro in //
PostPosted: Mon May 02, 2011 1:54 am 
Offline
Guru

Joined: Sun Dec 20, 2009 10:52 pm
Posts: 76
Hi Kenji,

Yes, exactly what you said, common job over 2 devices with one master and the other a slave.
My idea is to run a robot with 2 basic atom pro but I don't know where to start. What would be the best way to communicate between them in order to have one sending task to be done by the other one and getting feed back once it's done.
Can you help me on this?

Thanks


Top
 Profile  
 
 Post subject: Re: Using 2 BasicAtomPro in //
PostPosted: Mon May 02, 2011 7:19 am 
Offline
Master

Joined: Tue Nov 21, 2006 9:34 am
Posts: 528
Hi Chris,

There are endless ways for you to do this, depending on your requirements...

Example Task: slave has 3 tasks that can be chosen by master and slave needs to tell master when done.
a) Could connect 4 IO pins between master and slave. On master side 3 are output, 1 input, on Slave side, 3 input, 1 output. When master wants slave to perform a task it raises the appropriate IO pin to high, which the slave sees and when it completes the task it raises it's output pin to high to acknowledge....
b) Like a could use 2 IO pins on master and master could choose which task by using the two IO pins as binary number...
c) Could use hardware serial port to communicate between the two, Master can send out packets with data telling slave what to do. Slave can send data back with information...
d) I2C - Could use I2C, but no slave I2c Support in basic, could probably set up hardware registers to do so...

...

Kurt


Top
 Profile  
 
 Post subject: Re: Using 2 BasicAtomPro in //
PostPosted: Mon May 02, 2011 8:33 am 
Offline
Citizen

Joined: Tue Sep 09, 2008 4:46 pm
Posts: 22
I am using the 2 board concept in my robot. One board uses a Nano 18. Its purpose is to control a 1 pan and 1 pan and scan. One of the pan and scans has 3 sonars the other is used for video. I did it this way because it takes time to move the the servos and was easier to read the sonars. It also saved a birds nest in wiring

The main processor is a Nano 28x. It handles every thing else including wireless remote and autonomy. I use serial to comunicate.'

The nano18 board is custom. Right now I bread board the Nano 28x but I am about ready to order the board for the 28x.

Not hard to do>

Jim


Top
 Profile  
 
 Post subject: Re: Using 2 BasicAtomPro in //
PostPosted: Mon May 02, 2011 10:05 pm 
Offline
Guru

Joined: Sun Dec 20, 2009 10:52 pm
Posts: 76
Thanks Kurt for your advices.
Hi Jim, what you are doing looks like what I had in mind.
I am going to test hardware serial port to communicate. If I have a hard time doing it I will call you for help ;-)

Thanks again to both of you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO