Pages: [1]   Go Down
Author Topic: ARDUINO NETWORK TO SHARE THE WORKLOAD?  (Read 558 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,


I'm working on a project that requires to have a cycle time of 10ms (100Hz) to read data from a gyroscope/accelerometer
(MPU 6050) elaborate and control the balance of an inverted pendulum.

Arduino UNO performance are at the limit, if I want to add many more features like:

-communication with pc
-digital I/O
-distance sensors
-etc

To avoid slowing down the cycle, I thought to connect 2/3arduino in I2C network and share the workload, is a good choice?

Or maybe it's better to use a Board more handsome? (like Arduino TWO, or other)

Thanks
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 640
Posts: 50335
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
To avoid slowing down the cycle, I thought to connect 2/3arduino in I2C network and share the workload, is a good choice?
What part of the workload are you planning to share? Adding more Arduinos could be like getting two women pregnant in the hopes of having a baby in 4.5 months instead of 9.

Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 502
Posts: 19085
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I didn't know you could do that.
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 546
Posts: 27363
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, the wonders of technology these days smiley-wink

I have a board with 2 '328Ps, pins to connect SPI-SPI or I2C-I2C, RS232 to outside world if wanted, or connect up to an FTDI or CP2102 module for USB. Plenty of IO this way, and "dual core" once you figure out how to share tasks.

http://www.crossroadsfencing.com/BobuinoRev17/

Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think multiple chips is sort of the point of those IMU boards that people make. Pololu sells one with an ARM Cortex that gives 1 KHz updates for a pretty penny and talks over a TTL serial link at 115200 bps. I'm going to bet that SPI and I2C have much lower overhead. If you already have one Uno doing your sensor fusion or whatever, then have another one running your PID loops and communications. I REALLY like the "two pregnant ladies" analogy, and I plan on using it in the future, but it's my opinion that the "multi-core" approach is actually appropriate for things that have groups of very different tasks that need to mostly run independently.
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2927
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ Nick Gammon... We learned how to do that in Boy Scouts. The really advanced Merit badge was awarded for 3 in 3 month's... <BFG>

Bob
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 546
Posts: 27363
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

3 in 3 months - that's too much smiley-wink
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 502
Posts: 19085
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@ Nick Gammon... We learned how to do that in Boy Scouts.

When you were young, wasn't that a boys-only organization?
Logged


Pages: [1]   Go Up
Jump to: