Best hardware approach for complex project? / Bester Hardware-Ansatz für komplexe Projekte?
Verfasst: 04 Mär 2023, 01:20
(Deutsche Übersetzung im nächsten Post)
Hi everyone,
I'm working on a new ft project (pssst... it's a secret ) where I need a lot of I/O ports and some relatively complex interactions between a finite state machine and 3-4 encoder motors which need to stop at precise points.
The hardware will consists of something around the following:
• 6-9 switches
• 3-4 ft analog color sensors
• 3-4 ft motor encoder inputs
• 3-4 PWM ft encoder motor outputs
• 4-6 LED outputs
• One or two I²C displays
Yes, it's a lot, I know... The following approaches are possible based on the controllers I have:
1) Two Arduinos connected via I²C plus H-bridges to drive the motors
This is similar to what I used in the pinball machine, but I didn't need encoder motors or precise positioning there. I suspect this apporach will be not ideal because I'll have to deal with interrupts, counters, etc. and maybe some level converters, but who knows.
2) Use a TX connected to an Arduino via I²C
The TX is already optimized for encoder motors, it's fast to boot and does not need an I²C level converter. And I'm already testing it with an Arduino and it works both ways. I use via I²C to send input signals to the Arduino use it to control the encoder motors. But doing complex logic with Robo Pro and its flowcharts is quite cumbersome and impenetrable for me.
3) Use a TXT (not 4.0) connected to an Arduino via I²C
Same as 2, but with the obvious TXT hardware advantages, WLAN, etc. Seems to need a level converter for the I²C, though. (At least that's what I can infer from this forum, please correct me if I'm wrong here.) An interesting possibility would be to use a C/C++ compiler. I see C# is also possible using Nanoframework. I have lots of backgound with these 3 languages and their environments, but no experience with the specific ft setup, and I reckon it's not the easiest thing to do. However this may be the best approach for me. Or is it?
So my question goes to the several experienced ft technicians among you: Given the options above, what would be the best approach in your opinion? Feel free to ask me anything (except what the project is, hahaha ).
Sorry for the long post... Thanks a lot in advance,
Rubem
Hi everyone,
I'm working on a new ft project (pssst... it's a secret ) where I need a lot of I/O ports and some relatively complex interactions between a finite state machine and 3-4 encoder motors which need to stop at precise points.
The hardware will consists of something around the following:
• 6-9 switches
• 3-4 ft analog color sensors
• 3-4 ft motor encoder inputs
• 3-4 PWM ft encoder motor outputs
• 4-6 LED outputs
• One or two I²C displays
Yes, it's a lot, I know... The following approaches are possible based on the controllers I have:
1) Two Arduinos connected via I²C plus H-bridges to drive the motors
This is similar to what I used in the pinball machine, but I didn't need encoder motors or precise positioning there. I suspect this apporach will be not ideal because I'll have to deal with interrupts, counters, etc. and maybe some level converters, but who knows.
2) Use a TX connected to an Arduino via I²C
The TX is already optimized for encoder motors, it's fast to boot and does not need an I²C level converter. And I'm already testing it with an Arduino and it works both ways. I use via I²C to send input signals to the Arduino use it to control the encoder motors. But doing complex logic with Robo Pro and its flowcharts is quite cumbersome and impenetrable for me.
3) Use a TXT (not 4.0) connected to an Arduino via I²C
Same as 2, but with the obvious TXT hardware advantages, WLAN, etc. Seems to need a level converter for the I²C, though. (At least that's what I can infer from this forum, please correct me if I'm wrong here.) An interesting possibility would be to use a C/C++ compiler. I see C# is also possible using Nanoframework. I have lots of backgound with these 3 languages and their environments, but no experience with the specific ft setup, and I reckon it's not the easiest thing to do. However this may be the best approach for me. Or is it?
So my question goes to the several experienced ft technicians among you: Given the options above, what would be the best approach in your opinion? Feel free to ask me anything (except what the project is, hahaha ).
Sorry for the long post... Thanks a lot in advance,
Rubem